]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mmc: sdhci-of-esdhc: fix P2020 errata handling
authorYangbo Lu <yangbo.lu@nxp.com>
Mon, 16 Dec 2019 03:18:42 +0000 (11:18 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 18 Dec 2019 13:25:23 +0000 (14:25 +0100)
commitfe0acab448f68c3146235afe03fb932e242ec94c
tree2d6340879808a9f46a985ab9022955f49d555efb
parent2c92dd20304f505b6ef43d206fff21bda8f1f0ae
mmc: sdhci-of-esdhc: fix P2020 errata handling

Two previous patches introduced below quirks for P2020 platforms.
- SDHCI_QUIRK_RESET_AFTER_REQUEST
- SDHCI_QUIRK_BROKEN_TIMEOUT_VAL

The patches made a mistake to add them in quirks2 of sdhci_host
structure, while they were defined for quirks.
host->quirks2 |= SDHCI_QUIRK_RESET_AFTER_REQUEST;
host->quirks2 |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;

This patch is to fix them.
host->quirks |= SDHCI_QUIRK_RESET_AFTER_REQUEST;
host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;

Fixes: 05cb6b2a66fa ("mmc: sdhci-of-esdhc: add erratum eSDHC-A001 and A-008358 support")
Fixes: a46e42712596 ("mmc: sdhci-of-esdhc: add erratum eSDHC5 support")
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191216031842.40068-1-yangbo.lu@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-esdhc.c