]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: Propagate the "ignore hotplug" setting to parent
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Apr 2015 14:23:36 +0000 (16:23 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 4 Jul 2015 03:02:18 +0000 (23:02 -0400)
commit2ee2391a5317f2425f935acf0ab5a53e31ac9014
tree2a382cd6e42ab8563da0a1d8e8658cdafa5d1060
parent652b1cd11c8ffc0a49a4ee810b00b5f002dac843
PCI: Propagate the "ignore hotplug" setting to parent

[ Upstream commit 0824965140fff1bf640a987dc790d1594a8e0699 ]

Refine the mechanism introduced by commit f244d8b623da ("ACPIPHP / radeon /
nouveau: Fix VGA switcheroo problem related to hotplug") to propagate the
ignore_hotplug setting of the device to its parent bridge in case hotplug
notifications related to the graphics adapter switching are given for the
bridge rather than for the device itself (they need to be ignored in both
cases).

Link: https://bugzilla.kernel.org/show_bug.cgi?id=61891
Link: https://bugs.freedesktop.org/show_bug.cgi?id=88927
Fixes: b440bde74f04 ("PCI: Add pci_ignore_hotplug() to ignore hotplug events for a device")
Reported-and-tested-by: tiagdtd-lava <tiagdtd-lava@yahoo.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: stable@vger.kernel.org # v3.17+
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/pci/pci.c
include/linux/pci.h