Date: Sun, 11 Sep 2005 10:23:59 -0600 From: John-Paul Andrusky <jpandrusky@gmail.com> To: hselasky@c2i.net Cc: freebsd-usb@freebsd.org Subject: Re: Problems with uhid device. Message-ID: <d849f17e0509110923a619cd0@mail.gmail.com> In-Reply-To: <200509041327.45054.hselasky@c2i.net> References: <d849f17e05082307553f67f0ce@mail.gmail.com> <200508261423.46583.hselasky@c2i.net> <1125777448.9511.7.camel@localhost> <200509041327.45054.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Finally got some time to play with it. With the second set of drivers and= =20 and the modifications you suggested below, it all works. Thanks. BTW for any one else who does this, you'll need to use=20 UGETW(ed->wMaxPacketSize) instead of ed->wMaxPacketSize. A temporary patch might be to add something to the file=20 > "/sys/dev/usb/uhid.c" >=20 > Where you find: >=20 > sc->sc_isize =3D hid_report_size(desc, size, hid_input, &sc->sc_iid); > sc->sc_osize =3D hid_report_size(desc, size, hid_output, &sc->sc_oid); > sc->sc_fsize =3D hid_report_size(desc, size, hid_feature, &sc->sc_fid); >=20 > Add here: > if(sc->sc_isize > ed->wMaxPacketSize) > sc->sc_isize =3D ed->wMaxPacketSize; >=20 > Then try again. You should now only see a single interrupt packet with > "maxlen=3D5". >=20 > --HPS >=20 --=20 Cheers, John-Paul Andrusky
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d849f17e0509110923a619cd0>