usb: gadget: net2280: Fix invalid handling of Reset irq
PATCH 1/1 usb: gadget: net2280: Fix invalid handling of Reset irq
Without this patch, some hosts keeps restarting indefinitely the target.
Bug added on ae8e530a7e5d87592cb23996bee7fd6f1eb202ed usb: gadget:
net2280: Code Cleanup
Signed-off-by Ricardo Ribalda Delgado <[email protected]>
--- drivers/usb/gadget/udc/net2280.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/udc/net2280.c +1 -1
@@ -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 )) {
Signature · 1 line
2.1.0
Quoted 4 lines · Ricardo Ribalda Delgado
Without this patch, some hosts keeps restarting indefinitely the target.
Bug added on
ae8e530a7e5d87592cb23996bee7fd6f1eb202edusb: gadget:
net2280: Code Cleanup
this should be just above you Signed-off-by on the form:
Fixes ae8e530 (usb: gadget: net2280: Code Cleanup)
Quoted 22 lines
Signed-off-by Ricardo Ribalda Delgado <[email protected]>--- drivers/usb/gadget/udc/net2280.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/gadget/udc/net2280.c +1
-1@@ -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 )) {Signature · 1 line
2.1.0
Signature · 1 line
balbi