Add pci_enable_device()/pci_disable_device. In the past, drivers often worked
without this, but it is now required in order to route PCI interrupts
correctly.
Evan Paul Fletcher found this problem with 2.6.9-rc1-mm4 and X.org 6.8.0
and verified that this patch fixes it.
Signed-off-by: Bjorn Helgaas <[EMAIL PROTECTED]>
===== drivers/char/drm/drm_drv.h 1.47 vs edited =====
--- 1.47/drivers/char/drm/drm_drv.h 2004-09-08 03:41:23 -06:00
+++ edited/drivers/char/drm/drm_drv.h 2004-09-13 12:27:16 -06:00
@@ -443,6 +443,8 @@
}
up( &dev->struct_sem );
+ pci_disable_device( dev->pdev );
+
return 0;
}
@@ -492,6 +494,9 @@
return -EPERM;
dev->device = MKDEV(DRM_MAJOR, dev->minor );
dev->name = DRIVER_NAME;
+
+ if ((retcode = pci_enable_device(pdev)))
+ return retcode;
dev->pdev = pdev;
#ifdef __alpha__
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel