]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: replace spin_lock_irqsave with spin_lock and fix warn_on
authorAvinash Patil <patila@marvell.com>
Sat, 18 May 2013 00:50:24 +0000 (17:50 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 May 2013 19:08:56 +0000 (15:08 -0400)
commit43205ddc8f0fccfad63787d3e8a1618996c1a02b
treef32642de79e4e7a11630420e3dc59d69e700f6cc
parent74c8355a1cf1d46e4163b2b975f0b3fd78f3cce9
mwifiex: replace spin_lock_irqsave with spin_lock and fix warn_on

We see this WARN_ON during PCIe unload:
WARNING: at kernel/smp.c:382 smp_call_function_many+0x66/0x1e1()

This happens because we are doing PCI iounmap operations while
holding spinlock via spin_lock_irqsave(). Holding spinlock this
way causes disabling IRQs and hence PCI iounmap shows warning on
irqs_disabled() check.

Use non-irq variant of spin_lock i.e. spin_lock() instead.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/init.c