]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xhci: support setting interrupt moderation IMOD for secondary interrupters
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 5 Sep 2024 14:33:00 +0000 (17:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 May 2025 07:44:06 +0000 (09:44 +0200)
commitebb7195dac403f7c77ac860206e12de789a3eb5a
treeda51a755345cae6efd7003dddca89d3033a35d2c
parentcc64775afb2775a9e8f4289909eff7940283110e
xhci: support setting interrupt moderation IMOD for secondary interrupters

[ Upstream commit 9c0c11bb87b09a8b7cdc21ca1090e7b36abe9d09 ]

Allow creators of seconday interrupters to specify the interrupt
moderation interval value in nanoseconds when creating the interrupter.

If not sure what value to use then use the xhci driver default
xhci->imod_interval

Suggested-by: Wesley Cheng <quic_wcheng@quicinc.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240905143300.1959279-13-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: bea5892d0ed2 ("xhci: Limit time spent with xHC interrupts disabled during bus resume")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h