]> 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)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:10:26 +0000 (14:10 +0200)
commit827757cfedf68124f1868bbff9c26d35c9f14b7e
treeec0ba1aae9ea8bd89aff8a0e91c4c4c49a177808
parent55c3eb9962498403d5a7974843f00bb366674206
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