Skip to content

Commit a66c275

Browse files
Roger QuadrosFelipe Balbi
authored andcommitted
usb: dwc3: gadget: Fix BUG in RT config
Using spin_lock() in hard irq handler is pointless and causes a BUG() in RT (real-time) configuration so get rid of it. The reason it's pointless is because the driver is basically accessing register which is, anyways, atomic. Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
1 parent b431ba8 commit a66c275

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/usb/dwc3/gadget.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,8 +2665,6 @@ static irqreturn_t dwc3_interrupt(int irq, void *_dwc)
26652665
int i;
26662666
irqreturn_t ret = IRQ_NONE;
26672667

2668-
spin_lock(&dwc->lock);
2669-
26702668
for (i = 0; i < dwc->num_event_buffers; i++) {
26712669
irqreturn_t status;
26722670

@@ -2675,8 +2673,6 @@ static irqreturn_t dwc3_interrupt(int irq, void *_dwc)
26752673
ret = status;
26762674
}
26772675

2678-
spin_unlock(&dwc->lock);
2679-
26802676
return ret;
26812677
}
26822678

0 commit comments

Comments
 (0)