]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: xhci: simplify Isochronous Scheduling Threshold handling
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Wed, 19 Nov 2025 14:24:13 +0000 (16:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2025 13:53:01 +0000 (14:53 +0100)
commitf724e34719f03133e6c1ebf7386070f0b9a3209f
tree8c4504beffae4619b79e42b72846044dd3e424f5
parentedab00902be0001b65be934ce3e748fcc36cc220
usb: xhci: simplify Isochronous Scheduling Threshold handling

The IST is represented by bits 2:0, with bit 3 indicating the unit of
measurement, Frames or Microframes. Introduce xhci_ist_microframes(),
which returns the IST value in Microframes, simplifying the code and
reducing duplication.

Improve documentation in xhci-caps.h to clarify the IST register specifics,
including the unit conversion details. These change removes the need to
explain it each time the IST values is retrieved.

Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://patch.msgid.link/20251119142417.2820519-20-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-caps.h
drivers/usb/host/xhci-ring.c