mbox series

[0/2] Provide a hook to check port init status

Message ID 20220816083854.1491886-1-raychi@google.com (mailing list archive)
Headers show
Series Provide a hook to check port init status | expand

Message

Ray Chi Aug. 16, 2022, 8:38 a.m. UTC
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(+)