[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFo3SnqvxdD4C-ESFERPJNfRXWKxzX1Hh573DsxvVdPdnQ@mail.gmail.com>
Date: Wed, 20 Aug 2025 13:52:38 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Oleksij Rempel <o.rempel@...gutronix.de>
Cc: kernel@...gutronix.de, linux-kernel@...r.kernel.org,
linux-mmc@...r.kernel.org, Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Mark Brown <broonie@...nel.org>, "Rafael J. Wysocki" <rafael@...nel.org>, Søren Andersen <san@...v.dk>,
Christian Loehle <christian.loehle@....com>, Adrian Hunter <adrian.hunter@...el.com>,
Avri Altman <Avri.Altman@...disk.com>
Subject: Re: [PATCH v8 2/2] mmc: core: add undervoltage handler for MMC/eMMC devices
[...]
> @@ -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
Powered by blists - more mailing lists