The pci_disable_device() function is also expected to clear the PCI

busmaster. This fixes LinuxKPI compliancy with Linux.

MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2018-03-22 13:30:35 +00:00
parent 1ac2776bbb
commit 555deb3c96

View File

@ -343,6 +343,7 @@ pci_disable_device(struct pci_dev *pdev)
pci_disable_io(pdev->dev.bsddev, SYS_RES_IOPORT);
pci_disable_io(pdev->dev.bsddev, SYS_RES_MEMORY);
pci_disable_busmaster(pdev->dev.bsddev);
}
static inline int