]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
wl12xx: Cleanup PLT mode when module is removed
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Fri, 14 Jan 2011 11:48:46 +0000 (12:48 +0100)
committerLuciano Coelho <coelho@ti.com>
Mon, 24 Jan 2011 20:16:09 +0000 (22:16 +0200)
commit4ae3fa87854862d1724bf8f2f1e1b9b088fa53d7
tree15bc5b66e5f6d870d1c9a0b724e362ea39eb84ea
parent1d4801f2689dc2618fdb5e83d4cb7743747491ed
wl12xx: Cleanup PLT mode when module is removed

PLT mode start/stop is controlled from userspace. When removing module, the
PLT mode state is however not checked, and not cleared. There is the possibility
of some unwanted state to left linger and there is even the possiblity of a
kernel crash if for instance IRQ work is running when the module is removed.

Fix this by stopping PLT mode on module removal, if still running.

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c