9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] usb configuration
@ 2014-03-03 13:37 Richard Miller
  2014-03-03 13:45 ` erik quanstrom
  2014-03-03 14:42 ` cinap_lenrek
  0 siblings, 2 replies; 18+ messages in thread
From: Richard Miller @ 2014-03-03 13:37 UTC (permalink / raw)
  To: 9fans

I am curious about this comment:

/n/sources/plan9/sys/src/cmd/usb/lib/dev.c:231,235
	/*
	 * Several hubs are returning descriptors of 17 bytes, not 18.
	 * We accept them and leave number of configurations as zero.
	 * (a get configuration descriptor also fails for them!)
	 */

Does anyone know which particular devices this refers to?  Has anyone tried
issuing the Rgetdesc command with a length of 18 bytes instead of 18+255 bytes
as the existing code does?  The usb specification says a device descriptor
is 18 bytes, so why not read exactly that length?  In the case of the hub in the
iMac keyboard, doing that seems to get rid of the "bug: out of configurations"
message.  I'm inclined to offer that as a correction but not if it would break
any known devices.




^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-03-05  9:29 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-03 13:37 [9fans] usb configuration Richard Miller
2014-03-03 13:45 ` erik quanstrom
2014-03-03 13:52   ` Richard Miller
2014-03-03 14:27     ` erik quanstrom
2014-03-03 14:42 ` cinap_lenrek
2014-03-03 14:56   ` Richard Miller
2014-03-03 15:24     ` cinap_lenrek
2014-03-03 15:32       ` erik quanstrom
2014-03-03 15:37     ` erik quanstrom
2014-03-03 17:29       ` Ramakrishnan Muthukrishnan
2014-03-03 17:32         ` erik quanstrom
2014-03-03 17:41           ` Ramakrishnan Muthukrishnan
2014-03-03 18:24             ` Joseph Thompson
2014-03-03 18:25             ` erik quanstrom
2014-03-04 11:11             ` Nicolas Bercher
2014-03-04 11:28               ` Steve Simon
2014-03-04 17:40                 ` Mark van Atten
2014-03-05  9:29                 ` Nicolas Bercher

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