Skip to content

Commit

Permalink
usb: dwc3: gadget: remove unnecessary _irqsave()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Balbi committed Sep 28, 2015
1 parent e6e709b commit 70f3a9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -2642,16 +2642,15 @@ static irqreturn_t dwc3_process_event_buf(struct dwc3 *dwc, u32 buf)
static irqreturn_t dwc3_thread_interrupt(int irq, void *_dwc)
{
struct dwc3 *dwc = _dwc;
unsigned long flags;
irqreturn_t ret = IRQ_NONE;
int i;

spin_lock_irqsave(&dwc->lock, flags);
spin_lock(&dwc->lock);

for (i = 0; i < dwc->num_event_buffers; i++)
ret |= dwc3_process_event_buf(dwc, i);

spin_unlock_irqrestore(&dwc->lock, flags);
spin_unlock(&dwc->lock);

return ret;
}
Expand Down

0 comments on commit 70f3a9c

Please sign in to comment.