dnsmasq: move feature detection inside a shell func
[openwrt/openwrt.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 --- 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));
21 +
22 + /* restart schedule */
23 + fotg210->command |= CMD_RUN;
24 + fotg210_writel(fotg210, fotg210->command, &fotg210->regs->command);
25 }
26
27 if (!(temp & (PORT_RESUME|PORT_RESET))) {