Hi, I'm working on a project aiming to protect eMMC during power loss. Our hardware setup includes an under-voltage detector, circuits to disable non-critical components, and enough capacitance to allow the CPU to run for 100ms. I've added an interrupt handler to the fixed regulator to emit REGULATOR_EVENT_UNDER_VOLTAGE events, and modified drivers/mmc/host/sdhci.c to receive these events. Currently, the handler only produces debug output. What is the recommended approach for handling under-voltage situations? Should the driver finish ongoing write commands, block new ones, and shut down the eMMC? I'm looking for direction here. Thanks, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |