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)
committerSimone Willett <swillett@nvidia.com>
Sun, 1 Jul 2012 15:15:23 +0000 (08:15 -0700)
commit960ebf205a48d3abf8a037a2dd80420fc229bce2
treeecc859b29a3225695e8140b50a6060bfb330d8dc
parenteae1303e1c61ecb5ae1da10a4e4b59a551db0123
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>
(cherry picked from commit 38a60ea2e7b33ab33ee11d6ef527f259edb102cf)

Bug 984811

Change-Id: I532c3914cecf63291a23baa669c650b4ac5448e4
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/106351
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
drivers/mmc/host/sdhci.c