ath6kl: Use a mutex_lock to avoid race in diabling and handling irq
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Wed, 4 Jan 2012 10:27:19 +0000 (15:57 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 9 Jan 2012 14:20:11 +0000 (16:20 +0200)
commit9d82682d45ef7407474e0ae043a587cb33a7fa26
tree979005036a5315bcb99ea7b8ab92d9e7d46a8b56
parent982767b8c94482b4b7f694e2ab2074c95fbf3e0e
ath6kl: Use a mutex_lock to avoid race in diabling and handling irq

Currently this race is handled but in a messy way an atomic
variable is being checked in a loop which sleeps upto ms
in every iteration. Remove this logic and use a mutex
to make sure irq is not disabled when irq handling is in
progress.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/sdio.c