Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/5] usb: xhci: bandwidth accounting fixes and cleanup
@ 2026-10-06 15:24 Niklas Neronin
  2026-10-06 15:24 ` [PATCH 1/5] usb: xhci: clear stale bandwidth data after hibernation Niklas Neronin
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Niklas Neronin @ 2026-10-06 15:24 UTC (permalink / raw)
  To: mathias.nyman; +Cc: linux-usb, Niklas Neronin

This series contains a small collection of xhci fixes and cleanups.

The main fix addresses a regression where software tracked bandwidth
information could survive hibernation resume after the S4 resume path was
optimized. This could result in incorrect bandwidth accounting when devices
were rediscovered after resume.

While investigating bandwidth accounting, I found a few additional issues:
* Fix endpoint resource accounting on virtual device allocation failure
  for controllers using XHCI_EP_LIMIT_QUIRK.
* Remove a redundant TT active endpoint update during virtual device
  cleanup.
* Correct an endianness conversion for a 32-bit slot context field.
* Remove two unused xhci structures.

Niklas Neronin (5):
  usb: xhci: clear stale bandwidth data after hibernation
  usb: xhci: correct num_active_eps accounting on allocation failure
  usb: xhci: remove redundant TT active EP update from
    xhci_free_virt_device()
  usb: xhci: correct variable size conversion
  usb: xhci: remove unused structs

 drivers/usb/host/xhci-mem.c   | 22 +++++++++++++++-------
 drivers/usb/host/xhci-trace.h |  2 +-
 drivers/usb/host/xhci.c       |  6 ++++++
 drivers/usb/host/xhci.h       | 12 ------------
 4 files changed, 22 insertions(+), 20 deletions(-)

-- 
2.50.1


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

end of thread, other threads:[~2026-10-07  9:28 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 15:24 [PATCH 0/5] usb: xhci: bandwidth accounting fixes and cleanup Niklas Neronin
2026-10-06 15:24 ` [PATCH 1/5] usb: xhci: clear stale bandwidth data after hibernation Niklas Neronin
2026-10-06 16:12   ` Michal Pecio
2026-10-06 16:22   ` sashiko-bot
2026-10-06 15:24 ` [PATCH 2/5] usb: xhci: correct num_active_eps accounting on allocation failure Niklas Neronin
2026-10-06 16:29   ` sashiko-bot
2026-10-06 16:33   ` Michal Pecio
2026-10-06 21:02     ` Michal Pecio
2026-10-07  9:28       ` Neronin, Niklas
2026-10-06 15:24 ` [PATCH 3/5] usb: xhci: remove redundant TT active EP update from xhci_free_virt_device() Niklas Neronin
2026-10-06 16:41   ` sashiko-bot
2026-10-06 15:24 ` [PATCH 4/5] usb: xhci: correct variable size conversion Niklas Neronin
2026-10-06 16:46   ` sashiko-bot
2026-10-06 15:24 ` [PATCH 5/5] usb: xhci: remove unused structs Niklas Neronin
2026-10-06 16:47   ` sashiko-bot

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