Skip to contentSkip to conversation

p54usb: stop USB core interference in exit path

PATCH In review Christian Lamparter 2 participants 2 messages Mar 5, 2009 – Mar 14, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 2/7 p54usb: stop USB core interference in exit path

The patch fixes a problem when the (Soft)LED stayed on after the module was unloaded. It turned out that the USB core disables all endpoints before calling the disconnect method. So it was impossible to switch off the radio & LEDs.

---

drivers/net/wireless/p54/p54usb.c +1 -0
diff -Nurp a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c
@@ -1024,6 +1024,7 @@ static struct usb_driver p54u_driver = {
 	.disconnect = p54u_disconnect,
 	.pre_reset = p54u_pre_reset,
 	.post_reset = p54u_post_reset,
+	.soft_unbind = 1,
 };
 
 static int __init p54u_init(void)
#1 lore raw
Quoted 3 lines · Christian Lamparter

The patch fixes a problem when the (Soft)LED stayed on after the module was unloaded. It turned out that the USB core disables all endpoints before calling the disconnect method. So it was impossible to switch off the radio & LEDs.

Please use shorter line length in the commit log.

Signature · 1 line
Kalle Valo