Skip to contentSkip to conversation

wifi: libertas: fix bug in Marvell Libertas driver

PATCH Superseded Jakov Novak 1 participant 2 messages Apr 15 Marvell libertas wireless driver

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover wifi: libertas: fix bug in Marvell Libertas driver

Please ignore the previous email. I sent the wrong patch.

Jakov Novak (1):
wifi: libertas: add wake_up() call to properly notify fw_wq during
disconnect

 drivers/net/wireless/marvell/libertas/if_usb.c | 1 -
 1 file changed, 1 deletion(-)
Signature · 1 line
2.53.0
#1 lore raw

PATCH v2 1/1 wifi: libertas: add wake_up() call to properly notify fw_wq during disconnect

This is necessary because the thread would be stuck if the firmware is not fully loaded before the if_usb_disconnect function is called. In that case if_usb_prog_firmware would be stuck in wait_event_interruptible and lbs_remove_card would also be stuck waiting for firmware loading to be done which was the original bug reported.

Fixes 954ee164f4f4 ("[PATCH] libertas: reorganize and simplify init sequence")
Reported-and-tested-by [email protected]
---
 drivers/net/wireless/marvell/libertas/if_usb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/marvell/libertas/if_usb.c +1 -0
index 245c902a7e42..8a6bf1365cfa 100644
@@ -310,7 +310,6 @@ static void if_usb_disconnect(struct usb_interface *intf)
 	struct lbs_private *priv = cardp->priv;
 
 	cardp->surprise_removed = 1;
+	wake_up(&cardp->fw_wq);
 
 	if (priv) {

lbs_stop_card(priv);

Signature · 1 line
2.53.0