projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47a255f
)
mmc: rtsx_usb_sdmmc: Print debug-messages at power-on/off errors
author
Ulf Hansson
<ulf.hansson@linaro.org>
Tue, 10 Jun 2025 11:16:24 +0000
(13:16 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Tue, 24 Jun 2025 10:43:26 +0000
(12:43 +0200)
It should be useful to know when we fail to power-on/off a card. Let's
therefore print debug-messages when this happens.
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-3-ulf.hansson@linaro.org
drivers/mmc/host/rtsx_usb_sdmmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/rtsx_usb_sdmmc.c
b/drivers/mmc/host/rtsx_usb_sdmmc.c
index
6f3cfa4
..
0e2aac8
100644
(file)
--- a/
drivers/mmc/host/rtsx_usb_sdmmc.c
+++ b/
drivers/mmc/host/rtsx_usb_sdmmc.c
@@
-1023,10
+1023,14
@@
static int sd_set_power_mode(struct rtsx_usb_sdmmc *host,
if (power_mode == MMC_POWER_OFF) {
err = sd_power_off(host);
+ if (err)
+ dev_dbg(sdmmc_dev(host), "power-off (err = %d)\n", err);
pm_runtime_put_noidle(sdmmc_dev(host));
} else {
pm_runtime_get_noresume(sdmmc_dev(host));
err = sd_power_on(host);
+ if (err)
+ dev_dbg(sdmmc_dev(host), "power-on (err = %d)\n", err);
}
host->power_mode = power_mode;