From ab822fada31cffc20107091ba0b32d57622534aa Mon Sep 17 00:00:00 2001 From: hselasky Date: Thu, 22 Mar 2018 13:30:35 +0000 Subject: [PATCH] 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 --- sys/compat/linuxkpi/common/include/linux/pci.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index d5d621cd1a3e..25f55bcafb94 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -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