Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2018 18:53:58 +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-11@freebsd.org
Subject:   svn commit: r331802 - stable/11/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201803301853.w2UIrwt8088880@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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