mmc: sdhci-pci: Fix S0i3 for Intel BYT-based controllers
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 14 Feb 2018 13:57:43 +0000 (15:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 06:41:03 +0000 (22:41 -0800)
commit33b42aa617d16436ddbde6d192c6a6c2db566648
tree723b75fb28343f361508d38d0dbf28f70bfd4f75
parente2c3f727021883cf0903196ae2fd55355b98546e
mmc: sdhci-pci: Fix S0i3 for Intel BYT-based controllers

commit f8870ae6e2d6be75b1accc2db981169fdfbea7ab upstream.

Tuning can leave the IP in an active state (Buffer Read Enable bit set)
which prevents the entry to low power states (i.e. S0i3). Data reset will
clear it.

Generally tuning is followed by a data transfer which will anyway sort out
the state, so it is rare that S0i3 is actually prevented.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
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