Re: [RFC/PATCH 2/2] usb: ehci: Add support for SINGLE_STEP_SET_FEATURE test of EHSET

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 14, 2013 at 10:10:23AM -0400, Alan Stern wrote:
> On Tue, 13 Aug 2013, Jack Pham wrote:
> 
> > > > In addition, we may want some of the work (though at this point I'm
> > > > not still clear on exactly what parts) to be moved into usbcore.
> > 
> > +1. I am open to suggestions on how best to achieve this.  I have a
> > another patch in the for doing the same 15-second delay in xHCI but am
> > hesitant to submit it just yet, pending ideas on a better way to do it
> > in the common HCD core.
> 
> Well, here's one possibility, not fully thought out.  Suppose there was
> a way to tell the HCD to carry out _just_ the Setup stage of a control
> transfer.  Or to omit the Setup stage and go directly to the Data
> stage.  Then the SINGLE_STEP_GET_DEVICE_DESCRIPTOR test could be
> implemented very simply by submitting two URBs with a delay between.

Ok, but that would be in the form of a hook from usbcore to the HCD
driver or an URB flag right?  In both ehci-hcd and xhci-hcd, setup
transfers are handled in their entirety and my work was simply
duplicating those functions to be able to split them up.  To do this in
a generic fashion would still need HCD-specific implementation.  But it
would at least still allow moving the "submit setup urb", "wait", and
"submit data/status urb" steps into usbcore instead, which is much
cleaner.

Jack
-- 
Employee of Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux