From: Solomon Peachy Date: Wed, 28 Aug 2013 00:29:47 +0000 (-0400) Subject: cw1200: Prevent a lock-related hang in the cw1200_spi driver X-Git-Tag: v3.12-rc2~14^2~65^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85ba8f529c57ac6e2fca9be0d9e17920a1afb2e8;p=pandora-kernel.git cw1200: Prevent a lock-related hang in the cw1200_spi driver The cw1200_spi driver tries to mirror the cw1200_sdio driver's lock API, which relies on sdio_claim_host/sdio_release_host to serialize hardware operations across multiple threads. Unfortunately the implementation was flawed, as it lacked a way to wake up the lock requestor when there was contention, often resulting in a hang. This problem was uncovered while trying to fix the spi-transfers-in-interrupt-context BUG() corrected in the previous patch. Many thanks to Dave Sizeburns for his assistance in fixing this. Signed-off-by: Solomon Peachy Signed-off-by: John W. Linville --- Reading git-diff-tree failed