diff options
author | Guennadi Liakhovetski | 2012-09-17 10:45:10 +0200 |
---|---|---|
committer | Chris Ball | 2012-09-19 10:29:45 +0200 |
commit | bec9d4e5939987053169a9bb48fc58b6a2d3e237 (patch) | |
tree | e5a018e18cc34cebe2248c4b169988ebaaa33890 /drivers/mmc/core/mmc_ops.c | |
parent | mmc: davinci_mmc: convert to DMA engine API (diff) | |
download | kernel-qcow2-linux-bec9d4e5939987053169a9bb48fc58b6a2d3e237.tar.gz kernel-qcow2-linux-bec9d4e5939987053169a9bb48fc58b6a2d3e237.tar.xz kernel-qcow2-linux-bec9d4e5939987053169a9bb48fc58b6a2d3e237.zip |
mmc: sdhci: Test cd-gpio instead of SDHCI presence when probing
Previously to this patch, an SDHCI platform that uses a GPIO for
card detection instead of the internal SDHCI_CARD_PRESENT bit on
the presence register would fail to detect a new card.
Some drivers worked around this in various ways: esdhc-imx defines
an IO accessor to fake the presence bit being true, s3c turns on
polling (which stops the SDHCI driver from checking the bit) after
a card's inserted. But none of this should be necessary; the real
fix is to check whether we're using a GPIO and avoid relying on
the presence bit if so, as this patch implements.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core/mmc_ops.c')
0 files changed, 0 insertions, 0 deletions