mmc: host: SD detection flow optimization
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Fri, 11 May 2012 09:43:52 +0000 (17:43 +0800)
committerbuildbot <buildbot@intel.com>
Wed, 30 May 2012 13:07:44 +0000 (06:07 -0700)
commit1c525e8b86f40bf4dc42c0e8bca27a057ff4137e
tree339a5437d12d9b5fd7abc3e657590f88df2356d9
parentb2d24cb362137c1eda0248cfbb174d31d409e1df
mmc: host: SD detection flow optimization

BZ: 38199

With continously insert/remove a SD card on Tablet, Fabric error
or kernel panic can happen, which would hang up the system.

As original design, when there happens error during sending command
to device, host controller needs to be reset to go back to a clean
state. This patch will change this. If there error is NOMEDIA, means
SD card is removed, host controller will not be reset until SD card
is plugged again. This makes sense.

This patch cannot workaround Fabric error, but seems can reduce the
kernel panic

Change-Id: I543b118305ee535fbdd9e03f15628b8622edcaa4
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/50108
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/mmc/host/sdhci-pci.c
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h