Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac9d032e authored by Ricardo Ribalda Delgado's avatar Ricardo Ribalda Delgado Committed by Felipe Balbi
Browse files

usb: gadget: net2280: Fix invalid handling of Reset irq



Without this patch, some hosts keep restarting indefinitely the target.

Fixes: ae8e530a (usb: gadget: net2280: Code Cleanup)
Signed-off-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 9267edaf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {