Skip to content

Commit

Permalink
tifm: clear interrupt mask bits before setting them on adapter init
Browse files Browse the repository at this point in the history
This should improve reliability of detection of cards already in socket on
driver load.

Signed-off-by: Alex Dubov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
oakad authored and Linus Torvalds committed Mar 11, 2008
1 parent eebbe9c commit e4c70e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/misc/tifm_7xx1.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ static int tifm_7xx1_probe(struct pci_dev *dev,
if (rc)
goto err_out_irq;

writel(TIFM_IRQ_ENABLE | TIFM_IRQ_SOCKMASK((1 << fm->num_sockets) - 1),
fm->addr + FM_CLEAR_INTERRUPT_ENABLE);
writel(TIFM_IRQ_ENABLE | TIFM_IRQ_SOCKMASK((1 << fm->num_sockets) - 1),
fm->addr + FM_SET_INTERRUPT_ENABLE);
return 0;
Expand Down

0 comments on commit e4c70e8

Please sign in to comment.