svn commit: r347793 - stable/11/sys/compat/linuxkpi/common/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Thu May 16 17:03:17 UTC 2019


Author: hselasky
Date: Thu May 16 17:03:16 2019
New Revision: 347793
URL: https://svnweb.freebsd.org/changeset/base/347793

Log:
  MFC r347188:
  Disabling a PCI device should only disable busmaster in the LinuxKPI.
  
  As Linux comment for this function point:
  Signal to the system that the PCI device is not in use by the system
  anymore. This only involves disabling PCI bus-mastering, if active.
  
  Build tested drm-current-kmod prior to commit.
  
  Submitted by:		slavash@
  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	Thu May 16 17:02:31 2019	(r347792)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/pci.h	Thu May 16 17:03:16 2019	(r347793)
@@ -342,8 +342,6 @@ static inline void
 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);
 }
 


More information about the svn-src-all mailing list