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>