[haiku-bugs] Re: [Haiku] #9311: usb_midi fix to handle more "Class-Compliant" devices

  • From: "phoudoin" <trac@xxxxxxxxxxxx>
  • Date: Wed, 09 Jan 2013 15:02:07 -0000

#9311: usb_midi fix to handle more "Class-Compliant" devices
---------------------------+-------------------------
   Reporter:  Pete         |      Owner:  mmlr
       Type:  bug          |     Status:  new
   Priority:  normal       |  Milestone:  R1
  Component:  Drivers/USB  |    Version:  R1/alpha4.1
 Resolution:               |   Keywords:
 Blocked By:               |   Blocking:
Has a Patch:  1            |   Platform:  All
---------------------------+-------------------------

Comment (by phoudoin):

 I wonder if in fact the root issue is not deeper, in the USB stack itself.
 There is absolutely no reason to pass the bulk request with 2048 size
 while the stack knows that this endpoint only support 4 bytes max per
 request.

 Clamping it in usb_midi is one way, but maybe it's in the stack itself
 that it should be done. In particular because the USB stack's queue_bulk()
 never required to pass a buffer no bigger than the endpoint's max packet
 size...

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9311#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: