mmc: handling of Under-Voltage Events in eMMC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 |



[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux