From: Ray Chi <raychi@google.com>
To: gregkh@linuxfoundation.org, mathias.nyman@intel.com,
stern@rowland.harvard.edu
Cc: badhri@google.com, albertccwang@google.com,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Ray Chi <raychi@google.com>
Subject: [PATCH 0/2] Provide a hook to check port init status
Date: Tue, 16 Aug 2022 16:38:52 +0800 [thread overview]
Message-ID: <20220816083854.1491886-1-raychi@google.com> (raw)
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
next reply other threads:[~2022-08-16 10:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-16 8:38 Ray Chi [this message]
2022-08-16 8:38 ` [PATCH 1/2] usb: core: add a hook to check port init status Ray Chi
2022-08-16 13:53 ` Alan Stern
2022-08-16 8:38 ` [PATCH 2/2] usb: xhci: add check_init_status hook support Ray Chi
2022-08-16 8:57 ` Greg KH
2022-08-22 15:42 ` Ray Chi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220816083854.1491886-1-raychi@google.com \
--to=raychi@google.com \
--cc=albertccwang@google.com \
--cc=badhri@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).