]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
fotg210-udc: Call usb_gadget_udc_reset
authorFabian Vogt <fabian@ritter-vogt.de>
Wed, 24 Mar 2021 14:11:13 +0000 (15:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Mar 2021 13:43:47 +0000 (14:43 +0100)
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>
drivers/usb/gadget/udc/fotg210-udc.c

index bbcc923763070c7a3069a12591cb4741477d8419..38e24c199136ab7895f1b0217b055fecc1e85fdf 100644 (file)
@@ -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);