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>
This commit is contained in:
parent
9aee3a23d6
commit
fe8f103ab3
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue