Skip to content

Commit

Permalink
mmc: core: Do not evaluate HS400 capabilities if bus has no MMC capab…
Browse files Browse the repository at this point in the history
…ility

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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
  • Loading branch information
tq-steina authored and storulf committed Jul 12, 2022
1 parent f9e5b33 commit 6f34a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/core/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6f34a4e

Please sign in to comment.