Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: host: fotg2: restart hcd after port reset

On the Gemini SoC the FOTG2 stalls after port reset
so restart the HCD after each port reset.

Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20190810150458.817-1-linus.walleij@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hans Ulli Kroll and committed by
Greg Kroah-Hartman
77775888 54364278

+4
+4
drivers/usb/host/fotg210-hcd.c
··· 1629 1629 /* see what we found out */ 1630 1630 temp = check_reset_complete(fotg210, wIndex, status_reg, 1631 1631 fotg210_readl(fotg210, status_reg)); 1632 + 1633 + /* restart schedule */ 1634 + fotg210->command |= CMD_RUN; 1635 + fotg210_writel(fotg210, fotg210->command, &fotg210->regs->command); 1632 1636 } 1633 1637 1634 1638 if (!(temp & (PORT_RESUME|PORT_RESET))) {