projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5ca4c3
)
mmc: rtsx: Add MMC_CAP2_NO_SDIO flag
author
Ricky Wu
<ricky_wu@realtek.com>
Wed, 30 Dec 2020 09:04:01 +0000
(17:04 +0800)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 1 Feb 2021 10:54:44 +0000
(11:54 +0100)
Added flag MMC_CAP2_NO_SDIO to mmc->caps2
Card Reader not support SDIO
Signed-off-by: Ricky Wu <ricky_wu@realtek.com>
Link:
https://lore.kernel.org/r/20201230090401.12627-2-ricky_wu@realtek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/rtsx_pci_sdmmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/rtsx_pci_sdmmc.c
b/drivers/mmc/host/rtsx_pci_sdmmc.c
index
e6f5bbc
..
446efbb
100644
(file)
--- a/
drivers/mmc/host/rtsx_pci_sdmmc.c
+++ b/
drivers/mmc/host/rtsx_pci_sdmmc.c
@@
-1425,7
+1425,8
@@
static void realtek_init_host(struct realtek_pci_sdmmc *host)
MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25;
if (pcr->rtd3_en)
mmc->caps = mmc->caps | MMC_CAP_AGGRESSIVE_PM;
- mmc->caps2 = MMC_CAP2_NO_PRESCAN_POWERUP | MMC_CAP2_FULL_PWR_CYCLE;
+ mmc->caps2 = MMC_CAP2_NO_PRESCAN_POWERUP | MMC_CAP2_FULL_PWR_CYCLE |
+ MMC_CAP2_NO_SDIO;
mmc->max_current_330 = 400;
mmc->max_current_180 = 800;
mmc->ops = &realtek_pci_sdmmc_ops;