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

Commit e254a4b4 authored by Kristian Høgsberg's avatar Kristian Høgsberg Committed by Stefan Richter
Browse files

firewire: Clear all interrupt bits before shutting down.



Some flaky controllers doesn't honor the masterIntEnable bits
and can generate bus reset events even if that bit is cleared.

Signed-off-by: default avatarKristian Høgsberg <krh@redhat.com>
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 49e1179b
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1943,7 +1943,8 @@ static void pci_remove(struct pci_dev *dev)
	struct fw_ohci *ohci;
	struct fw_ohci *ohci;


	ohci = pci_get_drvdata(dev);
	ohci = pci_get_drvdata(dev);
	reg_write(ohci, OHCI1394_IntMaskClear, OHCI1394_masterIntEnable);
	reg_write(ohci, OHCI1394_IntMaskClear, ~0);
	flush_writes(ohci);
	fw_core_remove_card(&ohci->card);
	fw_core_remove_card(&ohci->card);


	/* FIXME: Fail all pending packets here, now that the upper
	/* FIXME: Fail all pending packets here, now that the upper