mbox series

[0/2] usb: xhci: improve HCD page size & IMODI

Message ID 20241025112701.303035-1-niklas.neronin@linux.intel.com (mailing list archive)
Headers show
Series usb: xhci: improve HCD page size & IMODI | expand

Message

Niklas Neronin Oct. 25, 2024, 11:26 a.m. UTC
Improves HCD page size validation and move it into its own function.
This function is built so that the page size can be set to any valid value.

Improve the interrupt moderation interval (IMODI), by removing the error
case, and instead setting the IMODI to the closes valid value.

All patches were applied and tested on v6.12-rc4.

Niklas Neronin (2):
  usb: xhci: improve HCD page size validation and setting
  usb: xhci: improve xhci_set_interrupter_moderation()

 drivers/usb/host/xhci-mem.c | 45 ++++++++++++++++++++-----------------
 drivers/usb/host/xhci.c     | 25 +++++++++++----------
 drivers/usb/host/xhci.h     | 13 ++++++-----
 3 files changed, 46 insertions(+), 37 deletions(-)