mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
49e1179b16
commit
e254a4b45f
1 changed files with 2 additions and 1 deletions
|
@ -1943,7 +1943,8 @@ static void pci_remove(struct pci_dev *dev)
|
|||
struct fw_ohci *ohci;
|
||||
|
||||
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);
|
||||
|
||||
/* FIXME: Fail all pending packets here, now that the upper
|
||||
|
|
Loading…
Reference in a new issue