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

From: Ray Chi
Date: Tue Aug 16 2022 - 06:27:01 EST


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(+)

--
2.37.1.595.g718a3a8f04-goog