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)
commit0d1b57c1f04cad448eec54dc8de6da3777d3a28d
tree2830729b8841d818d31f6d3207df66a9272c058e
parentb2a878de11251b06be144b5905e37dd0dc0b0104
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