diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2006-04-14 16:44:11 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-04-27 13:28:58 -0400 |
commit | 658ad5e001a17be5fadaa8d57d1aa7f7c62628c1 (patch) | |
tree | e592a1b9fc5d87a3912ada621b76a4897804cd74 /drivers/usb | |
parent | 317e83b842ba39776054219ae29844127876416a (diff) |
[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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/net2280.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index c842b194cf0f..b2d507f16b85 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c | |||
@@ -2742,6 +2742,10 @@ static irqreturn_t net2280_irq (int irq, void *_dev, struct pt_regs * r) | |||
2742 | { | 2742 | { |
2743 | struct net2280 *dev = _dev; | 2743 | struct net2280 *dev = _dev; |
2744 | 2744 | ||
2745 | /* shared interrupt, not ours */ | ||
2746 | if (!(readl(&dev->regs->irqstat0) & (1 << INTA_ASSERTED))) | ||
2747 | return IRQ_NONE; | ||
2748 | |||
2745 | spin_lock (&dev->lock); | 2749 | spin_lock (&dev->lock); |
2746 | 2750 | ||
2747 | /* handle disconnect, dma, and more */ | 2751 | /* handle disconnect, dma, and more */ |