Skip to content

Commit 48a870a

Browse files
Roger Quadrosnsekhar
authored andcommitted
usb: dwc3: otg: Fix boot hang 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. Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
1 parent 4996a1e commit 48a870a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/usb/dwc3/core.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,6 @@ static irqreturn_t dwc3_otg_irq(int irq, void *_dwc)
806806
irqreturn_t ret = IRQ_NONE;
807807
u32 reg;
808808

809-
spin_lock(&dwc->lock);
810-
811809
reg = dwc3_readl(dwc->regs, DWC3_OEVT);
812810
if (reg) {
813811
dwc->oevt = reg;
@@ -816,8 +814,6 @@ static irqreturn_t dwc3_otg_irq(int irq, void *_dwc)
816814
ret = IRQ_WAKE_THREAD;
817815
}
818816

819-
spin_unlock(&dwc->lock);
820-
821817
return ret;
822818
}
823819

0 commit comments

Comments
 (0)