diff options
author | Jia-Ju Bai <[email protected]> | 2016-01-04 16:14:29 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2016-01-24 20:51:34 -0800 |
commit | e3e2e36c106a1e4212c65ba5b5d2bcb3455cb354 (patch) | |
tree | 1d83057e3a7220ed224503dc24cecd93cd9aff94 /tools/perf/scripts/python/compaction-times.py | |
parent | d8ff463a4ef22f090df21a3c5b34b336e80b72ca (diff) |
ehci-hcd: Disable memory-write-invalidate when the driver is removed
The driver calls pci_set_mwi to enable memory-write-invalidate when it
is initialized, but does not call pci_clear_mwi when it is removed. Many
other drivers calls pci_clear_mwi when pci_set_mwi is called, such as
r8169, 8139cp and e1000.
This patch adds a function "ehci_pci_remove" to remove the pci driver.
This function calls pci_clear_mwi and usb_hcd_pci_remove, which can
fix the problem.
Signed-off-by: Jia-Ju Bai <[email protected]>
Acked-by: Alan Stern <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions