OSDN Git Service

mmc: sdhci-acpi: Ensure connected devices are powered when probing
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 19 May 2016 13:25:42 +0000 (15:25 +0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 12 Aug 2016 00:14:47 +0000 (08:14 +0800)
commit06577863402afedc5c47a1fe5dd3adfd1b0fe5f5
tree216d143faf412d7f2f5cf104077f01ecaa171ae5
parentf43f9aa7216def847045593a5a353db0abc4a9da
mmc: sdhci-acpi: Ensure connected devices are powered when probing

Some devices connected to the SDHCI controller may have separate enabling
lines that are controlled through GPIO. These devices need to be powered
on and enabled before probing. This is to ensure all devices connected can
be seen by the controller.

Note, for "stable" this patch depends on the following change:
commit 78a898d0e395 ("ACPI / PM: Export acpi_device_fix_up_power()")

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reported-and-tested-by: Laszlo Fiat <laszlo.fiat@gmail.com>
Cc: <stable@vger.kernel.org> # 4.5+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reported-by: Laszlo Fiat <laszlo.fiat@gmail.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=112571
Link: http://lkml.kernel.org/r/CA+7w51inLtQSr656bJvOjGG9oQWKYPXH+xxDPJKbeJ=CcrkS9Q@mail.gmail.com
drivers/mmc/host/sdhci-acpi.c