|
@@ -2677,11 +2677,12 @@ irqreturn_t xhci_irq(struct usb_hcd *hcd)
|
|
|
struct xhci_hcd *xhci = hcd_to_xhci(hcd);
|
|
|
union xhci_trb *event_ring_deq;
|
|
|
irqreturn_t ret = IRQ_NONE;
|
|
|
+ unsigned long flags;
|
|
|
dma_addr_t deq;
|
|
|
u64 temp_64;
|
|
|
u32 status;
|
|
|
|
|
|
- spin_lock(&xhci->lock);
|
|
|
+ spin_lock_irqsave(&xhci->lock, flags);
|
|
|
/* Check if the xHC generated the interrupt, or the irq is shared */
|
|
|
status = readl(&xhci->op_regs->status);
|
|
|
if (status == ~(u32)0) {
|
|
@@ -2754,7 +2755,7 @@ irqreturn_t xhci_irq(struct usb_hcd *hcd)
|
|
|
ret = IRQ_HANDLED;
|
|
|
|
|
|
out:
|
|
|
- spin_unlock(&xhci->lock);
|
|
|
+ spin_unlock_irqrestore(&xhci->lock, flags);
|
|
|
|
|
|
return ret;
|
|
|
}
|