File: 04-3.17rc6-no_hotplug.patch

package info (click to toggle)
fglrx-driver 1:15.9-4~deb8u1~bpo70+1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy-backports
  • size: 505,568 kB
  • sloc: ansic: 15,231; xml: 4,141; sh: 2,401; makefile: 425
file content (31 lines) | stat: -rw-r--r-- 1,414 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Fix building with Linux 3.17.

diff -Naur fglrx-driver-15.9.orig/common/lib/modules/fglrx/build_mod/firegl_public.c fglrx-driver-15.9/common/lib/modules/fglrx/build_mod/firegl_public.c
--- fglrx-driver-15.9.orig/common/lib/modules/fglrx/build_mod/firegl_public.c	2015-09-09 00:57:14.000000000 +0200
+++ fglrx-driver-15.9/common/lib/modules/fglrx/build_mod/firegl_public.c	2015-09-27 10:39:09.390175314 +0200
@@ -1112,6 +1112,9 @@
     // 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);
+#endif
         PMSG_EVENT(pdev->dev.power.power_state) = state;
     }
     else
diff -Naur fglrx-driver-15.9.orig/common/lib/modules/fglrx/build_mod/kcl_acpi.c fglrx-driver-15.9/common/lib/modules/fglrx/build_mod/kcl_acpi.c
--- fglrx-driver-15.9.orig/common/lib/modules/fglrx/build_mod/kcl_acpi.c	2015-09-09 00:57:14.000000000 +0200
+++ fglrx-driver-15.9/common/lib/modules/fglrx/build_mod/kcl_acpi.c	2015-09-27 10:39:09.390175314 +0200
@@ -847,10 +847,12 @@
    if(tdev != NULL)
    {
       device = (acpi_device_adr(tdev) >> 16) & 0xffff;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0)
       if(PCI_SLOT(pdev->devfn) == device)
       {
          tdev->flags.no_hotplug = true;
       }
+#endif
    }
 #endif
    return 0;