From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] usb ohci support arrives -- another caution From: Richard Miller <9fans@hamnavoe.com> Date: Wed, 6 Feb 2008 19:08:01 +0000 In-Reply-To: <5c86343eccbd58656adc2a53d8c5ebf6@plan9.bell-labs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 49afaba2-ead3-11e9-9d60-3106f5b1d025 > Yes, the mouse driver should get the configuration descriptor and > interpret it. In the meantime, the quick and dirty fix is to change lines 164,165 in /sys/src/cmd/usb/misc/usbmouse.c from fprint(2, "Send ep %d 10 r %d to %s\n", ep, nbuts, ctlfile); fprint(ctlfd, ctlmsgfmt, ep, nbuts); to fprint(2, "Send ep %d 10 r %d to %s\n", ep, 5, ctlfile); fprint(ctlfd, ctlmsgfmt, ep, 5); so the usb packet size will be big enough for both sorts of mouse. This was not a problem with the old usbuhci driver, which quietly enforced a minimum usb packet size of 8.