Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70f3a9ca authored by Felipe Balbi's avatar Felipe Balbi
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
parent e6e709b7
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;
}