mmc: sdhci-pxav2: add register workaround for PXA168 silicon bug
authorDoug Brown <doug@schmorgal.com>
Mon, 16 Jan 2023 19:43:56 +0000 (11:43 -0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Jan 2023 10:56:41 +0000 (11:56 +0100)
commit7f7a201ad1fcd916526d10b21685690a35aa8d7a
tree976e576c53a02db25c314f751f746ed2623c7528
parente764395080184544aa963b0dead24c01d1ca3b0e
mmc: sdhci-pxav2: add register workaround for PXA168 silicon bug

The PXA168 has a documented silicon bug that results in a data abort
exception when accessing the SDHCI_HOST_VERSION register on SDH2 and
SDH4 through a 16-bit read. Implement the workaround described in the
errata, which performs a 32-bit read from a lower address instead. This
is safe to use on all four SDH peripherals.

Signed-off-by: Doug Brown <doug@schmorgal.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20230116194401.20372-4-doug@schmorgal.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pxav2.c