Skip to content

Provide a hook to check port init status

Ray Chi linux-usb lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: core: add a hook to check port init statusdrivers/usb/core/hub.c include/linux/usb/hcd.h+22 -01 reply
2/2usb: xhci: add check_init_status hook supportdrivers/usb/host/xhci.c drivers/usb/host/xhci.h+18 -02 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] Provide a hook to check port init status

Currently, only usbcore knows port init status even if the result is bad, so it will keep doing USB enumeration and other drivers can't do anything. Add the hook to let other drivers know the status and do error handling.

Ray Chi (2):
usb: core: add a hook to check port init status
usb: xhci: add check_init_status hook support

 drivers/usb/core/hub.c  | 14 ++++++++++++++
 drivers/usb/host/xhci.c | 17 +++++++++++++++++
 drivers/usb/host/xhci.h |  1 +
 include/linux/usb/hcd.h |  8 ++++++++
 4 files changed, 40 insertions(+)
Signature · 1 line
2.37.1.595.g718a3a8f04-goog