Re: [PATCH v8 2/2] mmc: core: add undervoltage handler for MMC/eMMC devices
From: Ulf Hansson
Date: Wed Aug 20 2025 - 07:54:04 EST
[...]
> @@ -2212,6 +2219,13 @@ static int mmc_shutdown(struct mmc_host *host)
> {
> int err = 0;
>
> + /*
> + * In case of undervoltage, the card will be powered off (removed) by
> + * _mmc_handle_undervoltage()
> + */
> + if (!host->card || mmc_card_removed(host->card))
There is no need to check for host->card here, as the shutdown ops
can't be called unless it exists.
> + return 0;
> +
[...]
Kind regards
Uffe