1 From b9d300b5aea18f2e992201d182d939030130aab2 Mon Sep 17 00:00:00 2001
2 From: Hans Ulli Kroll <ulli.kroll@googlemail.com>
3 Date: Sat, 14 Apr 2018 18:49:57 +0200
4 Subject: [PATCH 17/18] usb: host: fotg2: restart hcd after port reset
6 on Gemini SoC FOTG2 stalls after port reset
9 Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
10 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 drivers/usb/host/fotg210-hcd.c | 4 ++++
13 1 file changed, 4 insertions(+)
15 diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c
16 index 5abb07f4136f..d15e835c4b1f 100644
17 --- a/drivers/usb/host/fotg210-hcd.c
18 +++ b/drivers/usb/host/fotg210-hcd.c
19 @@ -1633,6 +1633,10 @@ static int fotg210_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
20 /* see what we found out */
21 temp = check_reset_complete(fotg210, wIndex, status_reg,
22 fotg210_readl(fotg210, status_reg));
24 + /* restart schedule */
25 + fotg210->command |= CMD_RUN;
26 + fotg210_writel(fotg210, fotg210->command, &fotg210->regs->command);
29 if (!(temp & (PORT_RESUME|PORT_RESET))) {