Linux MultiMedia Card development
 help / color / mirror / Atom feed
From: Oleksij Rempel <o.rempel@pengutronix.de>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Heiner Kallweit <hkallweit1@gmail.com>,
	Yang Yingliang <yangyingliang@huawei.com>,
	Ye Bin <yebin10@huawei.com>,
	linux-mmc@vger.kernel.org, kernel@pengutronix.de
Subject: mmc: handling of Under-Voltage Events in eMMC
Date: Fri, 29 Sep 2023 15:00:28 +0200	[thread overview]
Message-ID: <20230929130028.GB2825985@pengutronix.de> (raw)

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 |

             reply	other threads:[~2023-09-29 13:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-29 13:00 Oleksij Rempel [this message]
2023-10-10 14:48 ` mmc: handling of Under-Voltage Events in eMMC Ulf Hansson
2023-11-22 11:22   ` Oleksij Rempel
2023-11-22 12:26     ` Mark Brown
2023-11-30  9:06     ` Ulf Hansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230929130028.GB2825985@pengutronix.de \
    --to=o.rempel@pengutronix.de \
    --cc=hkallweit1@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ulf.hansson@linaro.org \
    --cc=yangyingliang@huawei.com \
    --cc=yebin10@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox