]> git.baikalelectronics.ru Git - kernel.git/commit
wl12xx: Power off after flushing work
authorIdo Yariv <ido@wizery.com>
Wed, 11 Jan 2012 07:42:40 +0000 (09:42 +0200)
committerLuciano Coelho <coelho@ti.com>
Wed, 15 Feb 2012 06:38:28 +0000 (08:38 +0200)
commitac1c2fc196f1ccaf53c86552e25ccea5d75aa961
tree585296f78c132e320471a0d5acc022fef8fcc288
parent7e0ed2519fd991cd8a681aa090eddf944b58fe4b
wl12xx: Power off after flushing work

When stopping plt, the chip is powered off before all current work items
are flushed and interrupts are disabled. This might introduce a race in
which the driver tries to communicate with a powered off chip.

Fix this by powering off the device only after interrupts are disabled
and all work items are flushed.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c