Sfoglia il codice sorgente

usb: dwc2: gadget: fix enumeration issues

Excessive debug messages might cause timing issues that prevent correct
usb enumeration. This patch hides information about USB bus reset to let
driver enumerate fast enough to avoid making host angry. This fixes
endless enumeration and usb reset loop observed with some Linux hosts.

Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Marek Szyprowski 10 anni fa
parent
commit
9599815de6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/usb/dwc2/gadget.c

+ 1 - 1
drivers/usb/dwc2/gadget.c

@@ -2327,7 +2327,7 @@ irq_retry:
 
 
 		u32 usb_status = readl(hsotg->regs + GOTGCTL);
 		u32 usb_status = readl(hsotg->regs + GOTGCTL);
 
 
-		dev_info(hsotg->dev, "%s: USBRst\n", __func__);
+		dev_dbg(hsotg->dev, "%s: USBRst\n", __func__);
 		dev_dbg(hsotg->dev, "GNPTXSTS=%08x\n",
 		dev_dbg(hsotg->dev, "GNPTXSTS=%08x\n",
 			readl(hsotg->regs + GNPTXSTS));
 			readl(hsotg->regs + GNPTXSTS));