Commit 000ab7da authored by Wesley Cheng's avatar Wesley Cheng Committed by Greg Kroah-Hartman
Browse files

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.

Tested-by: default avatarPuma Hsu <pumahsu@google.com>
Tested-by: default avatarDaehwan Jung <dh10.jung@samsung.com>
Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20250409194804.3773260-5-quic_wcheng@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fce57295
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
	}

	/*