gemini: Add v4.19 kernel patches
[openwrt/staging/stintel.git] / target / linux / gemini / patches-4.19 / 0017-usb-host-fotg2-restart-hcd-after-port-reset.patch
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
5
6 on Gemini SoC FOTG2 stalls after port reset
7 rerstart the hcd.
8
9 Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
10 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
11 ---
12 drivers/usb/host/fotg210-hcd.c | 4 ++++
13 1 file changed, 4 insertions(+)
14
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));
23 +
24 + /* restart schedule */
25 + fotg210->command |= CMD_RUN;
26 + fotg210_writel(fotg210, fotg210->command, &fotg210->regs->command);
27 }
28
29 if (!(temp & (PORT_RESUME|PORT_RESET))) {
30 --
31 2.19.2
32