]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: do not enable card detect interrupt for gpio cd type
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 19 Feb 2020 08:22:40 +0000 (16:22 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Mar 2020 13:35:41 +0000 (14:35 +0100)
commitf914092aa374f14f8a97a0a70555909d02caa108
tree950b4683c6bf1c3435e4f4d81917c69e91494526
parent884c503b2955f7e6b718d16ac030de1cb64fdbaa
mmc: sdhci: do not enable card detect interrupt for gpio cd type

Except SDHCI_QUIRK_BROKEN_CARD_DETECTION and MMC_CAP_NONREMOVABLE,
we also do not need to handle controller native card detect interrupt
for gpio cd type.
If we wrong enabled the card detect interrupt for gpio case, it will
cause a lot of unexpected card detect interrupts during data transfer
which should not happen.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/1582100563-20555-2-git-send-email-haibo.chen@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c