Skip to content

Commit 83a590f

Browse files
author
Desnes Nunes
committed
usb: host: xhci-plat: Set XHCI max interrupters if property is present
JIRA: https://issues.redhat.com/browse/RHEL-116016 commit 000ab7d Author: Wesley Cheng <quic_wcheng@quicinc.com> Date: Wed, 9 Apr 2025 12:47:37 -0700 Some platforms may want to limit the number of XHCI interrupters allocated. This is passed to xhci-plat as a device property. Ensure that this is read and the max_interrupters field is set. Tested-by: Puma Hsu <pumahsu@google.com> Tested-by: Daehwan Jung <dh10.jung@samsung.com> Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com> Acked-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20250409194804.3773260-5-quic_wcheng@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Desnes Nunes <desnesn@redhat.com>
1 parent d660a84 commit 83a590f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/usb/host/xhci-plat.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
267267

268268
device_property_read_u32(tmpdev, "imod-interval-ns",
269269
&xhci->imod_interval);
270+
device_property_read_u16(tmpdev, "num-hc-interrupters",
271+
&xhci->max_interrupters);
270272
}
271273

272274
/*

0 commit comments

Comments
 (0)