mmc: reset eMMC when switching partition from RPMB to user
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Tue, 21 Feb 2012 02:36:29 +0000 (10:36 +0800)
committerbuildbot <buildbot@intel.com>
Thu, 23 Feb 2012 18:57:48 +0000 (10:57 -0800)
commit6485a36b9499caeade9343a21da1ba5097bc9497
tree7c33c2af8b0c20f7a31ffefbd05764dc8cb0e160
parent4b0209808af851e6699d40486f3d57f4e28515dd
mmc: reset eMMC when switching partition from RPMB to user

BZ: 24218

If RPMB partition is not programmed with authentication key, after
a read operation, switching partition from RPMB back to user will
be failed and got a datatimeout interrupt.

This patch will reset eMMC device if encounter such error

Change-Id: Ie16db67835ce6f7fb81e3631c504ccb490023654
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/35980
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/mmc/card/block.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/host/sdhci.c