Re: USB -> PS/2

From: Walter C. Pelissero (walter_at_pelissero.de)
Date: 08/31/03

  • Next message: Walter C. Pelissero: "Re: USB -> PS/2"
    Date: Sun, 31 Aug 2003 15:12:28 +0200
    To: Bruce M Simpson <bms@spc.org>
    
    

    Ok, today I spent some time deciphering the ums log and came up
    with this patch.

    --- /sys/dev/usb/ums.c Wed Nov 6 21:23:50 2002
    +++ ums.c Sun Aug 31 15:08:52 2003
    @@ -428,10 +428,8 @@
             }
     
             ibuf = sc->sc_ibuf;
    - if (sc->sc_iid) {
    - if (*ibuf++ != sc->sc_iid)
    - return;
    - }
    + if (sc->sc_iid)
    + ibuf++;
     
             dx = hid_get_data(ibuf, &sc->sc_loc_x);
             dy = -hid_get_data(ibuf, &sc->sc_loc_y);

    Unfortunately my knowledge (or rather lack of it) of the USB/UMS
    driver doesn't give me very much confidence that I didn't break
    something else.

    What was that conditional return suposed to protect from?
    Is it safe to remove it?

    The PS/2 mouse works now and the USB one as well.

    Cheers,

    -- 
    walter pelissero
    http://www.pelissero.de
    Bruce M Simpson writes:
     > On Sat, Aug 30, 2003 at 01:51:27PM +0200, Walter C. Pelissero wrote:
     > > I just bought a USB -> PS/2 keyboard and mouse converter for my
     > > laptop.  It's a Sitecom brand and it gets recognised as MCT Corp.
     > 
     > I had similar problems with a Tangtop USB->PS/2 k+m adapter.
     > 
     > In the end it turned out that this device was causing uhci to report
     > an error, even though the movement data coming in looked fine. I never
     > got round to fixing it.
     > 
     > Perhaps you could try throwing all the debug switches on in the usb drivers
     > and usbd and seeing if you get similar behaviour?
     > 
     > Thanks for the patch, this was the other thing that needed fixing!
     > 
     > BMS
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Walter C. Pelissero: "Re: USB -> PS/2"

    Relevant Pages

    • Re: USB -> PS/2
      ... with this patch. ... Unfortunately my knowledge of the USB/UMS ... > Perhaps you could try throwing all the debug switches on in the usb drivers ... this was the other thing that needed fixing! ...
      (freebsd-questions)
    • Re: [PATCH] USB: add driver for LabJack USB DAQ devices
      ... linux-usb-devel for new usb drivers. ... This driver adds support for LabJack U3 and UE9 USB DAQ devices. ... Patch against stable 2.6.19 kernel. ...
      (Linux-Kernel)
    • Re: 2.6.7, amd64: PS/2 Mouse detection doesnt work
      ... > Build the USB drivers into the kernel, ... I tried the patch: Seems to work. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: External Storage Woes
      ... I believe I read of problems with usb drivers in the ms kb, ... problem is relevent ms will provide a specific patch - gratis - ...
      (microsoft.public.win2000.hardware)