forked from Minki/linux
mmc: sdhci-esdhc-imx: use the correct host caps for MMC_CAP_8_BIT_DATA
MMC_CAP_8_BIT_DATA belongs to struct mmc_host, not struct sdhci_host.
So correct it here.
Fixes: 1ed5c3b22f
("mmc: sdhci-esdhc-imx: Propagate ESDHC_FLAG_HS400* only on 8bit bus")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Cc: stable@vger.kernel.org
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1667893503-20583-1-git-send-email-haibo.chen@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
162503fd1c
commit
f002f45a00
@ -1672,14 +1672,14 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev)
|
|||||||
if (imx_data->socdata->flags & ESDHC_FLAG_ERR004536)
|
if (imx_data->socdata->flags & ESDHC_FLAG_ERR004536)
|
||||||
host->quirks |= SDHCI_QUIRK_BROKEN_ADMA;
|
host->quirks |= SDHCI_QUIRK_BROKEN_ADMA;
|
||||||
|
|
||||||
if (host->caps & MMC_CAP_8_BIT_DATA &&
|
if (host->mmc->caps & MMC_CAP_8_BIT_DATA &&
|
||||||
imx_data->socdata->flags & ESDHC_FLAG_HS400)
|
imx_data->socdata->flags & ESDHC_FLAG_HS400)
|
||||||
host->mmc->caps2 |= MMC_CAP2_HS400;
|
host->mmc->caps2 |= MMC_CAP2_HS400;
|
||||||
|
|
||||||
if (imx_data->socdata->flags & ESDHC_FLAG_BROKEN_AUTO_CMD23)
|
if (imx_data->socdata->flags & ESDHC_FLAG_BROKEN_AUTO_CMD23)
|
||||||
host->quirks2 |= SDHCI_QUIRK2_ACMD23_BROKEN;
|
host->quirks2 |= SDHCI_QUIRK2_ACMD23_BROKEN;
|
||||||
|
|
||||||
if (host->caps & MMC_CAP_8_BIT_DATA &&
|
if (host->mmc->caps & MMC_CAP_8_BIT_DATA &&
|
||||||
imx_data->socdata->flags & ESDHC_FLAG_HS400_ES) {
|
imx_data->socdata->flags & ESDHC_FLAG_HS400_ES) {
|
||||||
host->mmc->caps2 |= MMC_CAP2_HS400_ES;
|
host->mmc->caps2 |= MMC_CAP2_HS400_ES;
|
||||||
host->mmc_host_ops.hs400_enhanced_strobe =
|
host->mmc_host_ops.hs400_enhanced_strobe =
|
||||||
|
Loading…
Reference in New Issue
Block a user