Re: [PATCH 4/5] mmc: core: Add support for graceful host removal for eMMC
From: Wolfram Sang
Date: Mon Mar 31 2025 - 04:25:32 EST
On Thu, Mar 20, 2025 at 03:00:35PM +0100, Ulf Hansson wrote:
> An mmc host driver may allow to unbind from its corresponding host device.
> If an eMMC card is attached to the host, the mmc core will just try to cut
> the power for it, without obeying to the eMMC spec.
>
> Potentially this may damage the card and it may also prevent us from
> successfully doing a re-initialization of it, which would typically happen
> if/when we try to re-bind the mmc host driver.
>
> To fix these problems, let's implement a graceful power-down of the card at
> host removal.
>
> Reported-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
Reviewed-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
Tested-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature