OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9e5b33
)
mmc: core: Do not evaluate HS400 capabilities if bus has no MMC capability
author
Alexander Stein
<alexander.stein@ew.tq-group.com>
Tue, 14 Jun 2022 11:39:05 +0000
(13:39 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Tue, 12 Jul 2022 10:25:38 +0000
(12:25 +0200)
If 'no-mmc' is set but 'no-mmc-hs400' is not, this warning is raised.
Specifying 'no-mmc' should be enough though.
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link:
https://lore.kernel.org/r/20220614113905.1458715-1-alexander.stein@ew.tq-group.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/host.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/host.c
b/drivers/mmc/core/host.c
index
2ed2b4d
..
0fd91f7
100644
(file)
--- a/
drivers/mmc/core/host.c
+++ b/
drivers/mmc/core/host.c
@@
-599,7
+599,7
@@
static int mmc_validate_host_caps(struct mmc_host *host)
}
if (caps2 & (MMC_CAP2_HS400_ES | MMC_CAP2_HS400) &&
- !(caps & MMC_CAP_8_BIT_DATA)) {
+ !(caps & MMC_CAP_8_BIT_DATA)
&& !(caps2 & MMC_CAP2_NO_MMC)
) {
dev_warn(dev, "drop HS400 support since no 8-bit bus\n");
host->caps2 = caps2 & ~MMC_CAP2_HS400_ES & ~MMC_CAP2_HS400;
}