From: Patrick Delaunay Date: Fri, 2 Aug 2019 14:33:42 +0200 Subject: [U-Boot] [PATCH 5/5] usb: host: dwc2: add trace to have clean usb start In-Reply-To: <1564749223-29298-1-git-send-email-patrick.delaunay@st.com> References: <1564749223-29298-1-git-send-email-patrick.delaunay@st.com> Message-ID: <1564749223-29298-6-git-send-email-patrick.delaunay@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Solve issue for the display of "usb start" command on stm32mp1 because one carriage return is missing in DWC2 probe. STM32MP> usb start starting USB... Bus usb-otg at 49000000: Bus usbh-ehci at 5800d000: USB EHCI 1.00 after the patch: STM32MP> usb start starting USB... Bus usb-otg at 49000000: USB DWC2 Bus usbh-ehci at 5800d000: USB EHCI 1.00 Signed-off-by: Patrick Delaunay --- drivers/usb/host/dwc2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 1639bf2..7c1af0a 100644 --- a/drivers/usb/host/dwc2.c +++ b/drivers/usb/host/dwc2.c @@ -1216,6 +1216,8 @@ static int dwc2_init_common(struct udevice *dev, struct dwc2_priv *priv) if (readl(®s->gintsts) & DWC2_GINTSTS_CURMODE_HOST) mdelay(1000); + printf("USB DWC2\n"); + return 0; } -- 2.7.4