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:
hselasky 2018-03-22 13:30:35 +00:00
parent 289be8516c
commit ab822fada3

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