]> git.baikalelectronics.ru Git - kernel.git/commit
wl1271: sdio: claim host only when doing IO
authorOhad Ben-Cohen <ohad@wizery.com>
Tue, 7 Sep 2010 01:24:21 +0000 (04:24 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 14 Sep 2010 20:03:42 +0000 (16:03 -0400)
commit60cbe0557b404a1b9046ed1a10fd0b31e105374f
tree0591acdf65898dc9f3fa6dd33052b52c2521468d
parentb4c98adfe3fdeee9d67c8c7ff8007e5736888b40
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