Skip to content

Commit 73bbef6

Browse files
dmosbergerKalle Valo
authored andcommitted
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
1 parent dde0221 commit 73bbef6

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/wireless/microchip/wilc1000

1 file changed

+2
-1
lines changed

drivers/net/wireless/microchip/wilc1000/wlan.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,8 @@ int wilc_wlan_stop(struct wilc *wilc, struct wilc_vif *vif)
12241224

12251225
ret = 0;
12261226
release:
1227-
release_bus(wilc, WILC_BUS_RELEASE_ALLOW_SLEEP);
1227+
/* host comm is disabled - we can't issue sleep command anymore: */
1228+
release_bus(wilc, WILC_BUS_RELEASE_ONLY);
12281229

12291230
return ret;
12301231
}

0 commit comments

Comments
 (0)