]> git.baikalelectronics.ru Git - kernel.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)
commit6cf61284962d1bcc6dde47aeb7264c4f3d823bc6
tree2d6340879808a9f46a985ab9022955f49d555efb
parentc5095e90f9ece9652f0dc94acc5cfe3f8df2902b
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: 1361b0e40c4b ("mmc: sdhci-of-esdhc: add erratum eSDHC-A001 and A-008358 support")
Fixes: e443debab239 ("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