Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Mar 2004 17:39:31 +1100 (EST)
From:      Tony Maher <tonymaher@optushome.com.au>
To:        julian@elischer.org, marcus@marcuscom.com
Cc:        matt@xtaz.net
Subject:   Re: usb moused no longer starts
Message-ID:  <200403200639.i2K6dVFg000688@k9.a1.asic.gov.au>
In-Reply-To: <Pine.BSF.4.21.0403192154500.5587-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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
@@ -1124,13 +1124,13 @@
 	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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403200639.i2K6dVFg000688>