linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mmc: handling of Under-Voltage Events in eMMC
@ 2023-09-29 13:00 Oleksij Rempel
  2023-10-10 14:48 ` Ulf Hansson
  0 siblings, 1 reply; 5+ messages in thread
From: Oleksij Rempel @ 2023-09-29 13:00 UTC (permalink / raw)
  To: Ulf Hansson; +Cc: Heiner Kallweit, Yang Yingliang, Ye Bin, linux-mmc, kernel

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 |

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-11-30  9:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-29 13:00 mmc: handling of Under-Voltage Events in eMMC Oleksij Rempel
2023-10-10 14:48 ` Ulf Hansson
2023-11-22 11:22   ` Oleksij Rempel
2023-11-22 12:26     ` Mark Brown
2023-11-30  9:06     ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).