mmc: sdhci-pci: Fix initialization of some SD cards for Intel BYT-based controllers
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 31 Mar 2021 08:17:52 +0000 (11:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 May 2021 12:47:14 +0000 (14:47 +0200)
commit6c43290972ed6951ab471f8a42226b055ecda481
tree460062e7f701c698ac56ee5e791dd96584d035cc
parent01db7cb746f09c12b832bdc49a670a142eba23d4
mmc: sdhci-pci: Fix initialization of some SD cards for Intel BYT-based controllers

commit 2970134b927834e9249659a70aac48e62dff804a upstream.

Bus power may control card power, but the full reset done by SDHCI at
initialization still may not reset the power, whereas a direct write to
SDHCI_POWER_CONTROL can. That might be needed to initialize correctly, if
the card was left powered on previously.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210331081752.23621-1-adrian.hunter@intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-pci-core.c