Subject: Re: Possible USB quirk
To: Brad du Plessis <bradd@cat.co.za>
From: Lennart Augustsson <lennart@augustsson.net>
List: tech-kern
Date: 08/21/2003 20:17:27
I guess something like that could be added.
-- Lennart
Brad du Plessis wrote:
>I've managed to get this device (MultiTech MTA128ST-USB) to work by doing the
>following:
>
>In usb_subr.c:
>
>In the function usbd_new_device(..) function call:
>
>err = usbd_reload_device_desc(dev);
>
>Now this returns a SHORT_XFER error, but on printing out the contents of
>"dev->ddesc" I found that the idVendor and idProduct where filled in.
>
>I then add the following little routine after usbd_reload_device_desc():
>
>if ((UGETW(dev->ddesc.idProduct) == 61953)
> &&(UGETW(dev->ddesc.idVendor) == 1760))
> {
> dev->ddesc.bMaxPacketSize = 8;
> err = 0;
> }
>
>And now its detected ok!
>
>I get the following output when I plug in the device (I've added a few
>printouts of my own):
>
>usbd_new_device: adding unit addr=2, rev=110, class=2, subclass=0, protocol=0,
>maxpacket=64, len=18, speed=2
>usbd_transfer_cb: short transfer 8<18
>
>Device loaded: dev looks like this:
>bLength = 18
>bDescriptorType = 1
>bcdUSB = 272
>bDeviceClass = 2
>bDeviceSubClass = 0
>bDeviceProtocol = 0
>bMaxPacketSize = 64
>idVendor = 1760
>idProduct = 61953
>iManufacturer = 1
>iProduct = 2
>iSerialNumber = 3
>bNumConfigurations= 2
>
>umodem0 at uhub0 port 1 configuration 2 interface 0
>
>umodem0: Multi-Tech Systems, Inc. MTA 128ST-USB ISDN Terminal Adapter, rev
>1.10/1.10, addr 2, iclass 2/2
>umodem0: data interface 1, has CM over data, has break
>umodem0: status change notification available
>ucom0 at umodem0
>
>
>Can this be added as a quirk? Can anyone foresee any problems doing this?
>
>Thanks
> Brad
>
>
>