usb: gadget: net2280: Fix invalid handling of Reset irq
Without this patch, some hosts keep restarting indefinitely the target.
Fixes: ae8e530
(usb: gadget: net2280: Code Cleanup)
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
9267edaf8c
commit
ac9d032e73
|
@ -3320,7 +3320,7 @@ static void handle_stat1_irqs(struct net2280 *dev, u32 stat)
|
|||
if (stat & tmp) {
|
||||
writel(tmp, &dev->regs->irqstat1);
|
||||
if ((((stat & BIT(ROOT_PORT_RESET_INTERRUPT)) &&
|
||||
(readl(&dev->usb->usbstat) & mask)) ||
|
||||
((readl(&dev->usb->usbstat) & mask) == 0)) ||
|
||||
((readl(&dev->usb->usbctl) &
|
||||
BIT(VBUS_PIN)) == 0)) &&
|
||||
(dev->gadget.speed != USB_SPEED_UNKNOWN)) {
|
||||
|
|
Loading…
Reference in New Issue