1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00

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
This commit is contained in:
Hans Petter Selasky 2019-05-06 16:17:38 +00:00
parent 34cb771e01
commit fa23397925
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347188

View File

@ -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);
}