[PATCH] USB: net2280: check for shared IRQs
This patch (as670) adds a check for whether a shared IRQ was actually generated by the net2280 device. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
317e83b842
commit
658ad5e001
|
@ -2742,6 +2742,10 @@ static irqreturn_t net2280_irq (int irq, void *_dev, struct pt_regs * r)
|
|||
{
|
||||
struct net2280 *dev = _dev;
|
||||
|
||||
/* shared interrupt, not ours */
|
||||
if (!(readl(&dev->regs->irqstat0) & (1 << INTA_ASSERTED)))
|
||||
return IRQ_NONE;
|
||||
|
||||
spin_lock (&dev->lock);
|
||||
|
||||
/* handle disconnect, dma, and more */
|
||||
|
|
Loading…
Reference in New Issue