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 --- a/drivers/usb/host/fotg210-hcd.c
16 +++ b/drivers/usb/host/fotg210-hcd.c
17 @@ -1633,6 +1633,10 @@ static int fotg210_hub_control(struct us
18 /* see what we found out */
19 temp = check_reset_complete(fotg210, wIndex, status_reg,
20 fotg210_readl(fotg210, status_reg));
22 + /* restart schedule */
23 + fotg210->command |= CMD_RUN;
24 + fotg210_writel(fotg210, fotg210->command, &fotg210->regs->command);
27 if (!(temp & (PORT_RESUME|PORT_RESET))) {