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)
commit38a60ea2e7b33ab33ee11d6ef527f259edb102cf
treeebbac61ed86c4401ee602da0b632cb5556edd67c
parent3f514291df96e0a34bc61c7c456ca1d3fdc1f1bb
mmc: sdhci: Deal with failure case in sdhci_suspend_host

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