Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2018 13:30:35 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r331357 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201803221330.w2MDUZTD082002@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Mar 22 13:30:35 2018
New Revision: 331357
URL: https://svnweb.freebsd.org/changeset/base/331357

Log:
  The pci_disable_device() function is also expected to clear the PCI
  busmaster. This fixes LinuxKPI compliancy with Linux.
  
  MFC after:	1 week
  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	Thu Mar 22 12:58:49 2018	(r331356)
+++ head/sys/compat/linuxkpi/common/include/linux/pci.h	Thu Mar 22 13:30:35 2018	(r331357)
@@ -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?201803221330.w2MDUZTD082002>