mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Avoid re-initializing XHCI HC during removal
@ 2023-05-31 22:27 Wesley Cheng
  2023-05-31 22:27 ` [PATCH v3 1/2] usb: host: xhci: Do not re-initialize the XHCI HC if being removed Wesley Cheng
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Wesley Cheng @ 2023-05-31 22:27 UTC (permalink / raw)
  To: mathias.nyman, gregkh; +Cc: linux-kernel, linux-usb, Wesley Cheng

There is an extra amount of overhead being adding to XHCI HCD removal
cases when the HCD needs to undergo a runtime resume.  The xhc_reinit
logic will attempt to restart the HC if there is a HCE observed during
resume.  However, in the removal case, this is not required as the
XHCI stop/halt will execute the same operations.  In addition, it isn't
needed that the HC be placed back into the running state if it is being
removed.

Changes in v3:
- Update xhci-plat to set the removal flag before issuing the runtime PM
get

Changes in v2:
- Fixed spacing issue

Wesley Cheng (2):
  usb: host: xhci: Do not re-initialize the XHCI HC if being removed
  usb: host: xhci-plat: Set XHCI_STATE_REMOVING before resuming XHCI HC

 drivers/usb/host/xhci-plat.c | 2 +-
 drivers/usb/host/xhci.c      | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-26 12:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-31 22:27 [PATCH v3 0/2] Avoid re-initializing XHCI HC during removal Wesley Cheng
2023-05-31 22:27 ` [PATCH v3 1/2] usb: host: xhci: Do not re-initialize the XHCI HC if being removed Wesley Cheng
2023-05-31 22:27 ` [PATCH v3 2/2] usb: host: xhci-plat: Set XHCI_STATE_REMOVING before resuming XHCI HC Wesley Cheng
2023-06-21 19:46 ` [PATCH v3 0/2] Avoid re-initializing XHCI HC during removal Wesley Cheng
2023-06-26 12:36   ` Mathias Nyman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®