[PATCH] xserver: Unclaim PCI slot if driver probing fails.
Matthias Hopf
mhopf at suse.de
Wed Jul 1 06:38:41 PDT 2009
At SUSE we try to use fbdev if possible, so if we cannot use a native
driver we want to use the fbdev driver, and fail back to vesa if fbdev
fails (e.g. if the mode on the kernel parameter line failed to set).
This doesn't work with the current xserver, after the first driver has
been probed, the pci slot remains claimed. Apparently this was never
thought to be an issue, because functions for unclaiming pci slots are
missing.
This patch unclaims a pci slot by setting its bus type to BUS_NONE, so
it doesn't match any more. I don't remove the allocation slot at the
moment, because I'm unsure that there are no references left (and this
is unlikely to be a regularly called function).
This fixes Novell bug #511529.
Thoughts?
Matthias
--
Matthias Hopf <mhopf at suse.de> __ __ __
Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ mat at mshopf.de
Phone +49-911-74053-715 __) |_| __) |__ R & D www.mshopf.de
More information about the xorg-devel
mailing list