wl1271: sdio: claim host only when doing IO
commit49063a0d0b65e40ece846a744cb10cbdf295515d
authorOhad Ben-Cohen <ohad@wizery.com>
Tue, 7 Sep 2010 01:24:21 +0000 (7 04:24 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 14 Sep 2010 20:03:42 +0000 (14 16:03 -0400)
tree0591acdf65898dc9f3fa6dd33052b52c2521468d
parent1d7e1e6b1b8ed456e7678130ad17086a5f5b3286
wl1271: sdio: claim host only when doing IO

Do not maintain a persistent sdio_claim_host state. Instead,
claim host before doing IO and release host soon after.

This fixes several mmc deadlock scenarios, e.g. during
suspend/resume.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Acked-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl12xx/wl1271_sdio.c