]> git.ipfire.org Git - thirdparty/linux.git/commit
mmc: rtsx_usb_sdmmc: Fix error-path in sd_set_power_mode()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 10 Jun 2025 11:16:23 +0000 (13:16 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Jun 2025 10:43:26 +0000 (12:43 +0200)
commit47a255f7d2eabee06cfbf5b1c2379749442fd01d
treee3c95d662f02d3fa2736a0a2c7da9099445e227e
parent30fa7d53afd405fdac68b629f4ed8d14fe37b550
mmc: rtsx_usb_sdmmc: Fix error-path in sd_set_power_mode()

In the error path of sd_set_power_mode() we don't update host->power_mode,
which could lead to an imbalance of the runtime PM usage count. Fix this by
always updating host->power_mode.

Reviewed-by: Avri Altman <avri.altman@sandisk.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Ricky Wu <ricky_wu@realtek.com>
Link: https://lore.kernel.org/r/20250610111633.504366-2-ulf.hansson@linaro.org
drivers/mmc/host/rtsx_usb_sdmmc.c