aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/socfpga-a10.c
diff options
context:
space:
mode:
authorEvan Green <[email protected]>2018-05-25 19:25:23 +0000
committerUlf Hansson <[email protected]>2018-05-29 10:24:26 +0000
commit52af318c93e970d26c5522eab23ef84fdcb417e1 (patch)
treef971ff2041bde54c46d870236872cc977acb0722 /drivers/fpga/socfpga-a10.c
parentmmc: sdhci-*: Don't emit error msg if sdhci_add_host() fails (diff)
downloadkernel-52af318c93e970d26c5522eab23ef84fdcb417e1.tar.gz
kernel-52af318c93e970d26c5522eab23ef84fdcb417e1.zip
mmc: Allow non-sleeping GPIO cd
This change uses the appropriate _cansleep or non-sleeping API for reading GPIO card detect state. This allows users with GPIOs that never sleep to avoid a warning when certain quirks are present. The sdhci controller has an SDHCI_QUIRK_NO_CARD_NO_RESET, which indicates that a controller will not reset properly if no card is inserted. With this quirk enabled, mmc_get_cd_gpio is called in several places with a spinlock held and interrupts disabled. gpiod_get_raw_value_cansleep is not happy with this situation, and throws out a warning. For boards that a) use controllers that have this quirk, and b) wire card detect up to a GPIO that doesn't sleep, this is a spurious warning. This change silences that warning, at the cost of pushing this problem down to users that have sleeping GPIOs and controllers with this quirk. Signed-off-by: Evan Green <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/fpga/socfpga-a10.c')
0 files changed, 0 insertions, 0 deletions