From 7f7f02e2f79ceb0ee4ba6a8fe877504244754ea9 Mon Sep 17 00:00:00 2001 From: Wesley Cheng Date: Sat, 4 Mar 2023 02:22:42 -0800 Subject: [PATCH] FROMLIST: usb: host: xhci-plat: Set XHCI max interrupters if property is present 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. Signed-off-by: Wesley Cheng Bug: 392112015 Link: https://lore.kernel.org/linux-usb/20250121210518.2436771-5-quic_wcheng@quicinc.com/ Change-Id: Ie33699fc4cf2171404e0b108bd51f329b820be0e Signed-off-by: Wesley Cheng --- drivers/usb/host/xhci-plat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index e6660472501e..c11e34b7bf32 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -267,6 +267,8 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s device_property_read_u32(tmpdev, "imod-interval-ns", &xhci->imod_interval); + device_property_read_u16(tmpdev, "num-hc-interrupters", + &xhci->max_interrupters); } /*