ia64/PCI: Set IORESOURCE_ROM_SHADOW only for the default VGA device
authorSander Eikelenboom <linux@eikelenboom.it>
Fri, 14 Feb 2014 18:55:13 +0000 (11:55 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 14 Feb 2014 20:25:45 +0000 (13:25 -0700)
commit058a2e1bb065f143a291fa0df88274cecd228f28
tree0761623c9598f983fcd4c913dd9bf669dd048979
parentd8801e4df91ee788486a11b36f45aa04784f7b4a
ia64/PCI: Set IORESOURCE_ROM_SHADOW only for the default VGA device

Setting the IORESOURCE_ROM_SHADOW flag on a VGA card other than the primary
prevents it from reading its own ROM.  It will get the content of the
shadow ROM at C000 instead, which is of the primary VGA card and the driver
of the secondary card will bail out.

Fix this by checking if the arch code or vga-arbitration has already
determined the vga_default_device, if so only apply the fix to this primary
video device and let the comment reflect this.

[bhelgaas: add subject, split x86 & ia64 into separate patches,
include vgaarb.h]
Signed-off-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/ia64/pci/fixup.c
This page took 0.024447 seconds and 5 git commands to generate.