mediatek: add new dts files for mt7622 to v4.14
[oweals/openwrt.git] / target / linux / gemini / patches-4.14 / 0032-usb-host-fotg2-restart-hcd-after-port-reset.patch
1 From 731a2896e11b4e6a8d252e6c14edb1b09dbfcd46 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 1/2] 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 ---
11  drivers/usb/host/fotg210-hcd.c | 4 ++++
12  1 file changed, 4 insertions(+)
13
14 --- a/drivers/usb/host/fotg210-hcd.c
15 +++ b/drivers/usb/host/fotg210-hcd.c
16 @@ -1658,6 +1658,10 @@ static int fotg210_hub_control(struct us
17                         /* see what we found out */
18                         temp = check_reset_complete(fotg210, wIndex, status_reg,
19                                         fotg210_readl(fotg210, status_reg));
20 +
21 +                       /* restart schedule */
22 +                       fotg210->command |= CMD_RUN;
23 +                       fotg210_writel(fotg210, fotg210->command, &fotg210->regs->command);
24                 }
25  
26                 if (!(temp & (PORT_RESUME|PORT_RESET))) {