[U-Boot] [PATCH] usb: kbd: don't use int xfers when polling via ctrl xfers
Marek Vasut
marex at denx.de
Wed Dec 16 01:42:50 CET 2015
On Wednesday, December 16, 2015 at 12:35:23 AM, Stephen Warren wrote:
> On 11/13/2015 06:16 PM, Marek Vasut wrote:
> > On Friday, November 13, 2015 at 09:34:09 PM, Stephen Warren wrote:
> >> From: Stephen Warren <swarren at nvidia.com>
> >>
> >> When CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP is enabled, use a
> >> GET_REPORT control transfer to retrieve the initial state of the
> >> keyboard. This matches the technique used to poll the keyboard state.
> >> This is useful since it eliminates the remaining use of interrupt
> >> transfers from the USB keyboard driver, which allows it to work with
> >> USB HCD that don't support interrupt transfers.
> >>
> >> Cc: Hans de Goede <hdegoede at redhat.com>
> >> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> >> ---
> >> Are there any disadvantages to using control transfers over interrupt
> >> transfers? I'm not aware of any, but I assume there must be a reason
> >> that U-Boot typically uses interrupt transfers.
> >
> > I initially implemented the control EP polling because I had a keyboard
> > which had issues with interrupt transfers.
> >
> > Reviewed-by: Marek Vasut <marex at denx.de>
>
> Did you intend someone else to apply this?
Is the discussion concluded already? I was under the impression that there
was no general agreement.
Otherwise I can pick this of course.
Best regards,
Marek Vasut
More information about the U-Boot
mailing list