Skip to content

Commit

Permalink
firewire: nosy: fix IRQ handler for card ejection
Browse files Browse the repository at this point in the history
Untested, I don't have a PCILynx CardBus card.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
  • Loading branch information
Stefan Richter committed Jul 27, 2010
1 parent 55e77c0 commit 1654766
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/firewire/nosy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1654766

Please sign in to comment.