]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00170944 [MX6Q MMC]suspend/resume crash
authorTony Lin <tony.lin@freescale.com>
Tue, 27 Dec 2011 05:47:09 +0000 (13:47 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:42 +0000 (08:33 +0200)
commit0800a4d944befa8b82b04eae2446c3a91bba7393
treeec0ba1aae9ea8bd89aff8a0e91c4c4c49a177808
parent42a3e8a625c03cbddb7d5781e5f3a1f998f27ec8
ENGR00170944 [MX6Q MMC]suspend/resume crash

if the system suspend in the process of data transfer, current request
is broken by the suspend request, thus there're sd/mmc requests error logs.

to prevent this error, add a claim host in suspend function and release it
in resume function to make sure the request is finished before entering suspend
and next request could be started after resuming.

Signed-off-by: Tony Lin <tony.lin@freescale.com>
drivers/mmc/host/sdhci.c