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 <quic_wcheng@quicinc.com>

Bug: 392112015
Link: https://lore.kernel.org/linux-usb/20250121210518.2436771-5-quic_wcheng@quicinc.com/
Change-Id: Ie33699fc4cf2171404e0b108bd51f329b820be0e
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
This commit is contained in:
Wesley Cheng
2023-03-04 02:22:42 -08:00
committed by Neill Kapron
parent cca9824fd1
commit 7f7f02e2f7
+2
View File
@@ -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);
}
/*