MMC: Tell emmc chip state to SCU via new field in Dekker mutex
authorSamu Onkalo <samu.onkalo@intel.com>
Fri, 27 Apr 2012 07:37:09 +0000 (10:37 +0300)
committerbuildbot <buildbot@intel.com>
Sun, 29 Apr 2012 19:43:16 +0000 (12:43 -0700)
commit03a672a46d11a73c0cd11011c8d98fd4431cd531
tree6d8d69a298140fca7e5bc38ae7689f610787457f
parent9e1f4398b6b3d9155fa9df0763bc29bb73d7a2f6
MMC: Tell emmc chip state to SCU via new field in Dekker mutex

BZ33846

SCU may access emmc while the kernel is between device suspend-resume
state. During that period the emmc chip is detached. SCU accesses fails
since the SCU doesn't power on the chip.
SCU must know the status of the emmc chip. Easiest way
is to pass the information from the kernel driver to SCU.

New field in the emmc dekker mutex may be updated only when
IA has successfully locked the mutex.

Change-Id: I9b9569d1b8d9f84fb9cf1b6ba96db99a65c08d4e
Signed-off-by: Samu Onkalo <samu.onkalo@intel.com>
Reviewed-on: http://android.intel.com:8080/46579
Reviewed-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
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.c
include/linux/mmc/sdhci.h