Skip to content

Commit 4996a1e

Browse files
Roger Quadrosnsekhar
authored andcommitted
usb: dwc3: gadget: Fix BUG in RT config
commit a66c275 upstream. 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> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
1 parent 65a4890 commit 4996a1e

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
@@ -2775,8 +2775,6 @@ static irqreturn_t dwc3_interrupt(int irq, void *_dwc)
27752775
int i;
27762776
irqreturn_t ret = IRQ_NONE;
27772777

2778-
spin_lock(&dwc->lock);
2779-
27802778
for (i = 0; i < dwc->num_event_buffers; i++) {
27812779
irqreturn_t status;
27822780

@@ -2785,8 +2783,6 @@ static irqreturn_t dwc3_interrupt(int irq, void *_dwc)
27852783
ret = status;
27862784
}
27872785

2788-
spin_unlock(&dwc->lock);
2789-
27902786
return ret;
27912787
}
27922788

0 commit comments

Comments
 (0)