OSDN Git Service

wilc1000: Fix spurious "FW not responding" error
authorDavid Mosberger-Tang <davidm@egauge.net>
Wed, 8 Dec 2021 06:27:55 +0000 (06:27 +0000)
committerKalle Valo <kvalo@kernel.org>
Tue, 14 Dec 2021 18:45:27 +0000 (20:45 +0200)
commit73bbef64bca781bbfa1abe07eb86b733c5b4f7da
tree63cf1e60a747fbf9e5be6a3cacf4767dc626fbf6
parentdde02213fa64ac7f99eb65cd51f9e04812d8bc40
wilc1000: Fix spurious "FW not responding" error

When deinitializing the driver, one or more "FW not responding" error
appears on the console.  This appears to be due to wilc_wlan_stop()
disabling host/WILC1000 communication, but then right afterwards, it
tries to release the bus with chip-sleep enabled.  The problem is
enabling the chip-sleep cannot success once host/WILC1000
communication is disabled.  Fix by only releasing the bus.

Signed-off-by: David Mosberger-Tang <davidm@egauge.net>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20211208062747.3405221-1-davidm@egauge.net
drivers/net/wireless/microchip/wilc1000/wlan.c