Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2004 21:56:55 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        matt@xtaz.net
Subject:   Re: usb moused no longer starts
Message-ID:  <Pine.BSF.4.21.0403192154500.5587-100000@InterJet.elischer.org>
In-Reply-To: <1079726488.780.28.camel@gyros>

next in thread | previous in thread | raw e-mail | index | archive | help


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@jules:

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0403192154500.5587-100000>