Skip to content

usb: core: return -EAGAIN on usb_* functions reentrance

Peter Mamonov barebox 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2input: usb_kbd: skip poll on -EAGAIN errordrivers/input/usb_kbd.c+5 -20 replies
2/2usb: core: return -EAGAIN on usb_* functions reentrancedrivers/usb/core/usb.c include/usb/usb.h+40 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] usb: core: return -EAGAIN on usb_* functions reentrance

The second patch of this patch set adds reentrance detection to the the following functions: usb_submit_int_msg, usb_control_msg and usb_bulk_msg. These functions will return -EAGAIN if reentered. Other public usb_* functions call one of these three functions. This patch enables one to use regular *delay() functions throughout the ehci-hcd.c.

The first patch adds check for -EAGAIN return value to the usb keyboard driver. The driver will skip keyboard poll upon getting this error value from either usb_submit_int_msg() or usb_get_report() functions.

Peter Mamonov (2):
input: usb_kbd: skip poll on -EAGAIN error
usb: core: return -EAGAIN on usb_* functions reentrance

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox