usb moused no longer starts

Julian Elischer julian at elischer.org
Fri Mar 19 21:57:01 PST 2004



On Fri, 19 Mar 2004, Joe Marcus Clarke wrote:

> On Fri, 2004-03-19 at 14:54, Tony Maher wrote:
> > Julian,
> > 
> > > julian at elischer.org wrote on Sat Mar 20 06:08:47 2004
> > > there were small changes to usb_subr.c
> > > can you see what happens if you back that file back 2 days
> > 
> > Reverting back to 1.59 fixes the problem.
> 
> To add to this, it looks like moused is started before the mouse
> attachment actually completes.  This is what I see when I unplug then
> plug back in my mouse:
> 
> ums0: at uhub1 port 1 (addr 2) disconnected
> ums0: detached
> moused: unable to open /dev/ums0: No such file or directory
> ums0: Microsoft Microsoft 5-Button Mouse with IntelliEye(TM), rev
> 1.10/3.00, addr 2, iclass 3/1
> ums0: 5 buttons and Z dir.
> 

try the following reversion 
(add this to 1.61)

(apply by hand)

Index: usb_subr.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/usb/usb_subr.c,v
retrieving revision 1.61
diff -u -r1.61 usb_subr.c
--- usb_subr.c  19 Mar 2004 08:19:52 -0000      1.61
+++ usb_subr.c  20 Mar 2004 05:54:40 -0000
@@ -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);
 }
julian at jules:

> Joe
> 
> > 
> > --
> > tonym
> > _______________________________________________
> > freebsd-current at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
> -- 
> PGP Key : http://www.marcuscom.com/pgp.asc
> 
> 
> 




More information about the freebsd-current mailing list