]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Use sdhci-caps-mask and sdhci-caps to change the caps read during __sdhci...
authorZach Brown <zach.brown@ni.com>
Wed, 2 Nov 2016 15:26:16 +0000 (10:26 -0500)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 Nov 2016 08:00:48 +0000 (09:00 +0100)
commit9e5621c4c644711c78b92f2bc2c2c671b9a0dd26
treea6d22a150e5aa9f1e78d1cbd4aad66ef57be7030
parent6bf1c15add083d64231cfe30d630b9fff473fc6f
mmc: sdhci: Use sdhci-caps-mask and sdhci-caps to change the caps read during __sdhci_read_caps

The sdhci capabilities register can be incorrect. The sdhci-caps-mask
and sdhci-caps dt properties specify which bits of the register are
incorrect and what their values should be. This patch makes the sdhci
driver use those properties to correct the caps during
__sdhci_read_caps.

During __sdhci_read_caps
Use the sdhci-caps-mask property to turn off the incorrect bits of the
sdhci register after reading them.
Use the sdhci-caps to turn on bits after using sdhci-caps-mask to turn
off the incorrect ones.

Signed-off-by: Zach Brown <zach.brown@ni.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c