summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-pci-core.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2016-06-29 16:24:18 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2016-07-25 10:34:35 +0200
commit6132a3bf0711a13bcfc34cafc0a745adf868dfac (patch)
tree7890301bf946d0bdb0d389b3e68ff487bcc3a5c0 /drivers/mmc/host/sdhci-pci-core.c
parent28da35899e6075ad0376f977c23dcefb815e77db (diff)
downloadlinux-stable-6132a3bf0711a13bcfc34cafc0a745adf868dfac.tar.gz
linux-stable-6132a3bf0711a13bcfc34cafc0a745adf868dfac.tar.bz2
linux-stable-6132a3bf0711a13bcfc34cafc0a745adf868dfac.zip
mmc: sdhci: Add sdhci_read_caps()
Add sdhci_read_caps() and __sdhci_read_caps() to make it easier for drivers to fix the version and capabilities registers. Pedantically, the SDHCI specification states that the capabilities registers are valid when the host controller resets the Software Reset For All bit. That requirement has always been satisfied by performing a reset at the start of initialization, and consequently that is now part of the new functions. Although the SDHCI_QUIRK_MISSING_CAPS quirk has not yet been removed, drivers that want to provide their own caps can now use these functions instead of that quirk. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pci-core.c')
0 files changed, 0 insertions, 0 deletions