]> www.infradead.org Git - users/willy/xarray.git/commit
mmc: core: Add support for graceful host removal for SD
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 7 Apr 2025 15:27:55 +0000 (17:27 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 14 May 2025 14:59:16 +0000 (16:59 +0200)
commitdfc29a10c43d3f2aec853c9bf8b0d9e8f0251a2f
tree2b38e21807122855d3a53bea373da70c0cd9dd2a
parent5b793522904e315c7bd3c4c9db96b1ab98cd9714
mmc: core: Add support for graceful host removal for SD

An mmc host driver may allow to unbind from its corresponding host device.
If an SD card is attached to the host, the mmc core will just try to cut
the power for it, without obeying to the SD spec that potentially may
damage the card.

Let's fix this problem by implementing a graceful power-down of the card at
host removal.

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20250407152759.25160-6-ulf.hansson@linaro.org
drivers/mmc/core/sd.c