diff options
author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 2022-11-11 17:10:33 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-18 11:30:37 +0100 |
commit | b8cc6f8c86b7e60d9f5c8f50993e6f52a804e0e9 (patch) | |
tree | b56ab98065b7538dc88aa470444a98ffaa869f4c | |
parent | dc3391d49479bc2bf8a2b88dbf86fdd800882fee (diff) | |
download | linux-stable-b8cc6f8c86b7e60d9f5c8f50993e6f52a804e0e9.tar.gz linux-stable-b8cc6f8c86b7e60d9f5c8f50993e6f52a804e0e9.tar.bz2 linux-stable-b8cc6f8c86b7e60d9f5c8f50993e6f52a804e0e9.zip |
mmc: f-sdh30: Add quirks for broken timeout clock capability
[ Upstream commit aae9d3a440736691b3c1cb09ae2c32c4f1ee2e67 ]
There is a case where the timeout clock is not supplied to the capability.
Add a quirk for that.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
Link: https://lore.kernel.org/r/20221111081033.3813-7-hayashi.kunihiko@socionext.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/mmc/host/sdhci_f_sdh30.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci_f_sdh30.c b/drivers/mmc/host/sdhci_f_sdh30.c index 485f7591fae4..ca9e05440da1 100644 --- a/drivers/mmc/host/sdhci_f_sdh30.c +++ b/drivers/mmc/host/sdhci_f_sdh30.c @@ -199,6 +199,9 @@ static int sdhci_f_sdh30_probe(struct platform_device *pdev) if (reg & SDHCI_CAN_DO_8BIT) priv->vendor_hs200 = F_SDH30_EMMC_HS200; + if (!(reg & SDHCI_TIMEOUT_CLK_MASK)) + host->quirks |= SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK; + ret = sdhci_add_host(host); if (ret) goto err_add_host; |