* [PATCH] wilc1000: Fix spurious "FW not responding" error
@ 2021-12-08 6:27 David Mosberger-Tang
2021-12-14 18:45 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: David Mosberger-Tang @ 2021-12-08 6:27 UTC (permalink / raw)
To: Ajay Singh
Cc: Claudiu Beznea, Kalle Valo, David S. Miller, Jakub Kicinski,
linux-wireless, netdev, linux-kernel, David Mosberger-Tang
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>
---
drivers/net/wireless/microchip/wilc1000/wlan.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/microchip/wilc1000/wlan.c b/drivers/net/wireless/microchip/wilc1000/wlan.c
index f1e4ac3a2ad5..5d7f5b52f6de 100644
--- a/drivers/net/wireless/microchip/wilc1000/wlan.c
+++ b/drivers/net/wireless/microchip/wilc1000/wlan.c
@@ -1224,7 +1224,8 @@ int wilc_wlan_stop(struct wilc *wilc, struct wilc_vif *vif)
ret = 0;
release:
- release_bus(wilc, WILC_BUS_RELEASE_ALLOW_SLEEP);
+ /* host comm is disabled - we can't issue sleep command anymore: */
+ release_bus(wilc, WILC_BUS_RELEASE_ONLY);
return ret;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] wilc1000: Fix spurious "FW not responding" error
2021-12-08 6:27 [PATCH] wilc1000: Fix spurious "FW not responding" error David Mosberger-Tang
@ 2021-12-14 18:45 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2021-12-14 18:45 UTC (permalink / raw)
To: David Mosberger-Tang
Cc: Ajay Singh, Claudiu Beznea, Kalle Valo, David S. Miller,
Jakub Kicinski, linux-wireless, netdev, linux-kernel,
David Mosberger-Tang
David Mosberger-Tang <davidm@egauge.net> wrote:
> 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>
Patch applied to wireless-drivers-next.git, thanks.
73bbef64bca7 wilc1000: Fix spurious "FW not responding" error
--
https://patchwork.kernel.org/project/linux-wireless/patch/20211208062747.3405221-1-davidm@egauge.net/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-14 18:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-08 6:27 [PATCH] wilc1000: Fix spurious "FW not responding" error David Mosberger-Tang
2021-12-14 18:45 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.