9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Richard Miller <9fans@hamnavoe.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] usb ohci support arrives -- another caution
Date: Wed,  6 Feb 2008 19:08:01 +0000	[thread overview]
Message-ID: <e95bb92ecfd9902e044f7133a7c0cbcd@hamnavoe.com> (raw)
In-Reply-To: <5c86343eccbd58656adc2a53d8c5ebf6@plan9.bell-labs.com>

> 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.


  reply	other threads:[~2008-02-06 19:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-06  1:31 [9fans] usb ohci support arrives geoff
2008-02-06  2:16 ` Michael Andronov
2008-02-06  4:01 ` lucio
2008-02-06 12:55 ` [9fans] usb ohci support arrives -- caution Richard Miller
2008-02-06 16:18 ` [9fans] usb ohci support arrives C H Forsyth
2008-02-06 16:23   ` Juan M. Mendez
2008-02-06 17:23 ` [9fans] usb ohci support arrives -- another caution Richard Miller
2008-02-06 17:58   ` Sape Mullender
2008-02-06 19:08     ` Richard Miller [this message]
2008-02-06 19:23     ` [9fans] VIA VT8237 SATA/RAID i/o errors, dma doesnt work cinap_lenrek
2008-02-06 20:04       ` erik quanstrom
2008-02-06 22:29         ` cinap_lenrek
2008-02-06 22:40           ` erik quanstrom
2008-02-06 23:26             ` cinap_lenrek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e95bb92ecfd9902e044f7133a7c0cbcd@hamnavoe.com \
    --to=9fans@hamnavoe.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).