diff options
author | Fabian Vogt <fabian@ritter-vogt.de> | 2021-03-24 15:11:13 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-26 14:43:47 +0100 |
commit | fe8f103ab3e0eef5b6863da6f02b928af38e7c2d (patch) | |
tree | 9872b36a78af1b66ec82d4d461513bd590461cfc /drivers/usb/gadget | |
parent | 9aee3a23d6455200702f3a57e731fa11e8408667 (diff) | |
download | linux-stable-fe8f103ab3e0eef5b6863da6f02b928af38e7c2d.tar.gz linux-stable-fe8f103ab3e0eef5b6863da6f02b928af38e7c2d.tar.bz2 linux-stable-fe8f103ab3e0eef5b6863da6f02b928af38e7c2d.zip |
fotg210-udc: Call usb_gadget_udc_reset
Notify the UDC core that a bus reset occurred.
Signed-off-by: Fabian Vogt <fabian@ritter-vogt.de>
Link: https://lore.kernel.org/r/20210324141115.9384-6-fabian@ritter-vogt.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/udc/fotg210-udc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c index bbcc92376307..38e24c199136 100644 --- a/drivers/usb/gadget/udc/fotg210-udc.c +++ b/drivers/usb/gadget/udc/fotg210-udc.c @@ -876,6 +876,8 @@ static irqreturn_t fotg210_irq(int irq, void *_fotg210) int_grp2 &= ~int_msk2; if (int_grp2 & DISGR2_USBRST_INT) { + usb_gadget_udc_reset(&fotg210->gadget, + fotg210->driver); value = ioread32(reg); value &= ~DISGR2_USBRST_INT; iowrite32(value, reg); |