Skip to contentSkip to conversation

zd1211rw: Reset device in the probe call

PATCH In review Daniel Drake 2 participants 3 messages Jan 29, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zd1211rw: Reset device in the probe call

From: Ulrich Kunitz <[email protected]>

This resets the device in the probe call. It does work with 2.6.19.2 including the softmac patches. It might fix the reboot/reset problems a lot of people reported.

---
 zd_usb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/wireless/zd1211rw/zd_usb.c +2 -0
Index: linux/drivers/net/wireless/zd1211rw/zd_usb.c
===================================================================
@@ -922,6 +922,8 @@ static int probe(struct usb_interface *i
 		goto error;
 	}
 
+	usb_reset_device(interface_to_usbdev(intf));
+
 	netdev = zd_netdev_alloc(intf);
 	if (netdev == NULL) {
 		r = -ENOMEM;
#1 lore raw
Quoted 5 lines · Daniel Drake

From: Ulrich Kunitz <[email protected]>

This resets the device in the probe call. It does work with 2.6.19.2 including the softmac patches. It might fix the reboot/reset problems a lot of people reported.

Looks like you sent this one twice. Is this just a duplicate? Or did you mean to send a different patch?

John

Signature · 2 lines
John W. Linville
[email protected]
#2 lore raw
Quoted 2 lines · John W. Linville

Looks like you sent this one twice. Is this just a duplicate? Or did you mean to send a different patch?

Sent twice by accident. Ignore the duplicate and you have the whole series.

Thanks,
Daniel