Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4c70e85 authored by Alex Dubov's avatar Alex Dubov Committed by Linus Torvalds
Browse files

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



This should improve reliability of detection of cards already in socket on
driver load.

Signed-off-by: default avatarAlex Dubov <oakad@yahoo.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent eebbe9ca
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;