[packages/xorg-driver-video-fglrx] - workaround for EXPORT_SYMBOL_GPL(pci_ignore_hotplug) - rel 3

baggins baggins at pld-linux.org
Sat Jul 11 12:54:30 CEST 2015


commit 32485702f638dd08da7d14506e6591d99cb0d6b5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jul 11 12:54:02 2015 +0200

    - workaround for EXPORT_SYMBOL_GPL(pci_ignore_hotplug)
    - rel 3

 linux-3.17.patch             | 12 ++++++++++--
 xorg-driver-video-fglrx.spec |  2 +-
 2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/xorg-driver-video-fglrx.spec b/xorg-driver-video-fglrx.spec
index 2194860..6e625db 100644
--- a/xorg-driver-video-fglrx.spec
+++ b/xorg-driver-video-fglrx.spec
@@ -31,7 +31,7 @@ exit 1
 %define		betaver		1.0
 #define		rel		0.beta%{betaver}.3
 
-%define		rel		2
+%define		rel		3
 %define		pname		xorg-driver-video-fglrx
 Summary:	Linux Drivers for AMD/ATI graphics accelerators
 Summary(pl.UTF-8):	Sterowniki do akceleratorów graficznych AMD/ATI
diff --git a/linux-3.17.patch b/linux-3.17.patch
index 7fbe1a2..46612ec 100644
--- a/linux-3.17.patch
+++ b/linux-3.17.patch
@@ -1,12 +1,20 @@
 diff -uNr 14.9/common/lib/modules/fglrx/build_mod/firegl_public.c 14.9/common/lib/modules/fglrx/build_mod/firegl_public.c
 --- 14.9/common/lib/modules/fglrx/build_mod/firegl_public.c	2014-09-09 16:10:17.000000000 +0200
 +++ 14.9/common/lib/modules/fglrx/build_mod/firegl_public.c	2014-09-26 19:01:44.000000000 +0200
-@@ -1093,6 +1093,9 @@
+@@ -1093,6 +1093,17 @@
      // directly here to allow suspend/resume without X server start. 
          firegl_pci_save_state((KCL_PCI_DevHandle)pdev, privdev);
          pci_disable_device(pdev);
 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)
-+	pci_ignore_hotplug(pdev);
++//	pci_ignore_hotplug(pdev);
++{
++	struct pci_dev *bridge = dev->bus->self;
++
++	dev->ignore_hotplug = 1;
++	/* Propagate the "ignore hotplug" setting to the parent bridge. */
++	if (bridge)
++		bridge->ignore_hotplug = 1;
++}
 +#endif
          PMSG_EVENT(pdev->dev.power.power_state) = state;
      }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xorg-driver-video-fglrx.git/commitdiff/32485702f638dd08da7d14506e6591d99cb0d6b5



More information about the pld-cvs-commit mailing list