Skip to content

Commit ac9d032

Browse files
ribaldaFelipe Balbi
authored and
Felipe Balbi
committed
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 <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent 9267eda commit ac9d032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/gadget/udc/net2280.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3320,7 +3320,7 @@ static void handle_stat1_irqs(struct net2280 *dev, u32 stat)
33203320
if (stat & tmp) {
33213321
writel(tmp, &dev->regs->irqstat1);
33223322
if ((((stat & BIT(ROOT_PORT_RESET_INTERRUPT)) &&
3323-
(readl(&dev->usb->usbstat) & mask)) ||
3323+
((readl(&dev->usb->usbstat) & mask) == 0)) ||
33243324
((readl(&dev->usb->usbctl) &
33253325
BIT(VBUS_PIN)) == 0)) &&
33263326
(dev->gadget.speed != USB_SPEED_UNKNOWN)) {

0 commit comments

Comments
 (0)