mmc: sdhci-pci: Read card detect from ACPI for Intel Merrifield
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 13 Oct 2021 20:17:18 +0000 (23:17 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 14 Oct 2021 11:20:17 +0000 (13:20 +0200)
commit6ab4e2eb5e956a61e4d53cea3ab8c866ba79a830
tree2ce623dc6b08c9f52b30411bda68ce5e1f8b9ffe
parent4217d07b9fb328751f877d3bd9550122014860a2
mmc: sdhci-pci: Read card detect from ACPI for Intel Merrifield

Intel Merrifield platform had been converted to use ACPI enumeration.
However, the driver missed an update to retrieve card detect GPIO.
Fix it here.

Unfortunately we can't rely on CD GPIO state because there are two
different PCB designs in the wild that are using the opposite card
detection sense and there is no way to distinguish those platforms,
that's why ignore CD GPIO completely and use it only as an event.

Fixes: 4590d98f5a4f ("sfi: Remove framework for deprecated firmware")
BugLink: https://github.com/edison-fw/meta-intel-edison/issues/135
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20211013201723.52212-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pci-core.c