Commit 9ee01f01ea645cbf844cdb955d302e71117f6526
Committed by
Sekhar Nori
1 parent
f0f5bb8362
Exists in
ti-lsk-linux-4.1.y
and in
5 other branches
usb: dwc3: gadget: remove unnecessary _irqsave()
We *know* our threads executes with our IRQs disabled. We really don't need to use the _irqsave() variant of spin_lock(). Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff
drivers/usb/dwc3/gadget.c
... | ... | @@ -2740,16 +2740,15 @@ |
2740 | 2740 | static irqreturn_t dwc3_thread_interrupt(int irq, void *_dwc) |
2741 | 2741 | { |
2742 | 2742 | struct dwc3 *dwc = _dwc; |
2743 | - unsigned long flags; | |
2744 | 2743 | irqreturn_t ret = IRQ_NONE; |
2745 | 2744 | int i; |
2746 | 2745 | |
2747 | - spin_lock_irqsave(&dwc->lock, flags); | |
2746 | + spin_lock(&dwc->lock); | |
2748 | 2747 | |
2749 | 2748 | for (i = 0; i < dwc->num_event_buffers; i++) |
2750 | 2749 | ret |= dwc3_process_event_buf(dwc, i); |
2751 | 2750 | |
2752 | - spin_unlock_irqrestore(&dwc->lock, flags); | |
2751 | + spin_unlock(&dwc->lock); | |
2753 | 2752 | |
2754 | 2753 | return ret; |
2755 | 2754 | } |