mmc: sdhci: Deal with failure case in sdhci_suspend_host
authorAaron Lu <aaron.lu@amd.com>
Wed, 4 Jan 2012 02:07:43 +0000 (10:07 +0800)
committerChris Ball <cjb@laptop.org>
Thu, 12 Jan 2012 20:17:08 +0000 (15:17 -0500)
If there are errors happened in sdhci_suspend_host, handle it so that
when the function returns with an error, the host's behaviour is the
same before this function call, e.g. card detection is enabled and
tuning timer is active, etc.

Signed-off-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Aaron Lu <aaron.lu@amd.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c

Simple merge