mmc: panic_ops: fix emmc write when in kernel panic mode
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Fri, 4 May 2012 05:59:32 +0000 (13:59 +0800)
committerbuildbot <buildbot@intel.com>
Tue, 8 May 2012 12:00:30 +0000 (05:00 -0700)
commit22680b90854f6f6c775df9a32d14cd09c39fc269
treeeb27dae087a10e4cd413ceea00882c163d96b3fb
parent539eaa322004a7b2a61e75812cb9fc342d380229
mmc: panic_ops: fix emmc write when in kernel panic mode

BZ: 33786

CLV cannot save kernel panic log and logcat log after kernel happened.
It because eMMC card has switched to DDR mode but host is still in DDR
mode after kenel panic happens. So change eMMC card to SDR mode only after
kernel panic happened.

Change-Id: I40768128598fc2a4afdeb341837da360997d50f7
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/47372
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/core/mmc_panic_ops.c