Re: usb moused no longer starts

From: Julian Elischer <julian_at_elischer.org>
Date: Fri, 19 Mar 2004 21:56:55 -0800 (PST)
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
_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);
 }
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
> 
> 
> 
Received on Fri Mar 19 2004 - 20:57:01 UTC

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