usb: host: dwc2: add trace to have clean usb start
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 27 Apr 2020 13:30:01 +0000 (15:30 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 28 Apr 2020 11:52:52 +0000 (13:52 +0200)
Solve issue for the display of "usb start" command on stm32mp1
because one carriage return is missing in DWC2 probe.

Before the patch:

STM32MP> usb start
starting USB...
Bus usb-otg@49000000:    Bus usbh-ehci@5800d000:   USB EHCI 1.00

after the patch:

STM32MP> usb start
starting USB...
Bus usb-otg@49000000: USB DWC2
Bus usbh-ehci@5800d000: USB EHCI 1.00

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/usb/host/dwc2.c

index 640ae3e73005a7027143d6c1abb3e76bb93bb2b9..f25ed2dab06800cf954d86752ac0dbf33fa14956 100644 (file)
@@ -1219,6 +1219,8 @@ static int dwc2_init_common(struct udevice *dev, struct dwc2_priv *priv)
        if (readl(&regs->gintsts) & DWC2_GINTSTS_CURMODE_HOST)
                mdelay(1000);
 
+       printf("USB DWC2\n");
+
        return 0;
 }