mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
firewire: nosy: fix IRQ handler for card ejection
Untested, I don't have a PCILynx CardBus card. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
55e77c06c6
commit
165476671f
@ -444,6 +444,10 @@ irq_handler(int irq, void *device)
|
||||
|
||||
pci_int_status = reg_read(lynx, PCI_INT_STATUS);
|
||||
|
||||
if (pci_int_status == ~0)
|
||||
/* Card was ejected. */
|
||||
return IRQ_NONE;
|
||||
|
||||
if ((pci_int_status & PCI_INT_INT_PEND) == 0)
|
||||
/* Not our interrupt, bail out quickly. */
|
||||
return IRQ_NONE;
|
||||
|
Loading…
Reference in New Issue
Block a user