mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
mmc: f-sdh30: Add quirks for broken timeout clock capability
[ Upstream commit aae9d3a440
]
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>
This commit is contained in:
parent
55513864b4
commit
c490e8c3d5
1 changed files with 3 additions and 0 deletions
|
@ -168,6 +168,9 @@ static int sdhci_f_sdh30_probe(struct platform_device *pdev)
|
||||||
if (reg & SDHCI_CAN_DO_8BIT)
|
if (reg & SDHCI_CAN_DO_8BIT)
|
||||||
priv->vendor_hs200 = F_SDH30_EMMC_HS200;
|
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);
|
ret = sdhci_add_host(host);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto err_add_host;
|
goto err_add_host;
|
||||||
|
|
Loading…
Reference in a new issue