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>