[PATCH 7/9] usb: host: ehci-platform: Set the FIFO threshold on NSP

Florian Fainelli florian.fainelli at broadcom.com
Wed Oct 21 10:28:16 PDT 2026


The NSP SDK programs the EHCI INSNREG01 FIFO threshold to 0x00800040.
This is the same setting already applied by ehci-platform for the
brcm,xgs-iproc-ehci compatible to avoid problems with large transfers.

Apply the existing workaround to the NSP compatible as well.

Signed-off-by: Florian Fainelli <florian.fainelli at broadcom.com>
---
 drivers/usb/host/ehci-platform.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c
index f61f095cedab..9b7188d9c288 100644
--- a/drivers/usb/host/ehci-platform.c
+++ b/drivers/usb/host/ehci-platform.c
@@ -77,7 +77,8 @@ static int ehci_platform_reset(struct usb_hcd *hcd)
 	if (pdata->no_io_watchdog)
 		ehci->need_io_watchdog = 0;
 
-	if (of_device_is_compatible(pdev->dev.of_node, "brcm,xgs-iproc-ehci"))
+	if (of_device_is_compatible(pdev->dev.of_node, "brcm,xgs-iproc-ehci") ||
+	    of_device_is_compatible(pdev->dev.of_node, "brcm,nsp-ehci"))
 		ehci_writel(ehci, BCM_USB_FIFO_THRESHOLD,
 			    &ehci->regs->brcm_insnreg[1]);
 
-- 
2.53.0




More information about the linux-phy mailing list