]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: Don't reset WILC CPU disgracefully
authorAdham Abozaeid <adham.abozaeid@microchip.com>
Fri, 9 Aug 2019 18:25:18 +0000 (18:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2019 14:35:39 +0000 (16:35 +0200)
commit32bd848f63c9d62dcb9cbba9ce77a72f74f4feb2
tree2830729b8841d818d31f6d3207df66a9272c058e
parentd8a8e230a152df5cdce370333d4b77808a487cd9
staging: wilc1000: Don't reset WILC CPU disgracefully

Send abort request to WILC from wilc_wlan_stop instead of resetting the
CPU.
The abort request was being sent from wilc_wlan_cleanup after the CPU
was reset which wasn't the correct order. The abort request handler
in the chip will take care of resetting the CPU.

Signed-off-by: Adham Abozaeid <adham.abozaeid@microchip.com>
Link: https://lore.kernel.org/r/20190809182510.22443-2-adham.abozaeid@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_netdev.c
drivers/staging/wilc1000/wilc_wlan.c
drivers/staging/wilc1000/wilc_wlan.h