svn commit: r331802 - stable/11/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Fri Mar 30 18:53:59 UTC 2018
Author: hselasky
Date: Fri Mar 30 18:53:58 2018
New Revision: 331802
URL: https://svnweb.freebsd.org/changeset/base/331802
Log:
MFC r331357:
The pci_disable_device() function is also expected to clear the PCI
busmaster. This fixes LinuxKPI compliancy with Linux.
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/compat/linuxkpi/common/include/linux/pci.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/compat/linuxkpi/common/include/linux/pci.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/pci.h Fri Mar 30 18:53:12 2018 (r331801)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/pci.h Fri Mar 30 18:53:58 2018 (r331802)
@@ -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
More information about the svn-src-all
mailing list