projects/linux·commit e4c70e85

tifm: clear interrupt mask bits before setting them on adapter init

e4c70e85 · Alex Dubov <[email protected]> · 2008-03-10 11:43:41 -07:00

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]>
Commit
e4c70e8521c893fa96b14ed5d90d52fa37ac1dec
Parents
eebbe9ca

Changes

1 files changed · +2 −0

FileStatusAddDelContent
drivers/misc/tifm_7xx1.cmodified+2−0View file

drivers/misc/tifm_7xx1.c

View file
diff --git a/drivers/misc/tifm_7xx1.c b/drivers/misc/tifm_7xx1.c
index 63a089b..67503ea 100644
--- a/drivers/misc/tifm_7xx1.c
+++ b/drivers/misc/tifm_7xx1.c
@@ -368,6 +368,8 @@ static int tifm_7xx1_probe(struct pci_dev *dev,
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;