Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2019 15:37:50 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r347708 - stable/12/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201905161537.x4GFbot3040652@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu May 16 15:37:49 2019
New Revision: 347708
URL: https://svnweb.freebsd.org/changeset/base/347708

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/12/sys/compat/linuxkpi/common/include/linux/pci.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linuxkpi/common/include/linux/pci.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/pci.h	Thu May 16 15:36:56 2019	(r347707)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/pci.h	Thu May 16 15:37:49 2019	(r347708)
@@ -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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905161537.x4GFbot3040652>