Author: hselasky
Date: Mon May  6 16:17:38 2019
New Revision: 347188
URL: https://svnweb.freebsd.org/changeset/base/347188

Log:
  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.
  
  MFC after:            1 week
  Submitted by:         slavash@
  Sponsored by:         Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/pci.h

Modified: head/sys/compat/linuxkpi/common/include/linux/pci.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/pci.h Mon May  6 16:10:26 
2019        (r347187)
+++ head/sys/compat/linuxkpi/common/include/linux/pci.h Mon May  6 16:17:38 
2019        (r347188)
@@ -353,8 +353,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);
 }
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to