Re: usb moused no longer starts

From: Tony Maher <tonymaher_at_optushome.com.au>
Date: Sat, 20 Mar 2004 17:39:31 +1100 (EST)
> From julian at elischer.org wrote on Sat Mar 20 17:11:40 2004

> try the following reversion 
> (add this to 1.61)
>
> (apply by hand)
> <patch deleted>

This fixed the problem for me.

thanks
--
tonym

--- usb_subr.c.1.61	Fri Mar 19 21:28:00 2004
+++ usb_subr.c	Sat Mar 20 17:15:47 2004
_at__at_ -1124,13 +1124,13 _at__at_
 	DPRINTF(("usbd_new_device: new dev (addr %d), dev=%p, parent=%p\n",
 		 addr, dev, parent));
 
-	usbd_add_dev_event(USB_EVENT_DEVICE_ATTACH, dev);
-
 	err = usbd_probe_and_attach(parent, dev, port, addr);
 	if (err) {
 		usbd_remove_device(dev, up);
 		return (err);
   	}
+
+	usbd_add_dev_event(USB_EVENT_DEVICE_ATTACH, dev);
 
   	return (USBD_NORMAL_COMPLETION);
 }
Received on Fri Mar 19 2004 - 22:35:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:48 UTC