]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: fix sysfs rom file creation for BIOS ROM shadows
authorJesse Barnes <jbarnes@virtuousgeek.org>
Sat, 24 Mar 2007 18:03:32 +0000 (11:03 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 May 2007 02:02:35 +0000 (19:02 -0700)
commit7ba31149ce4d5e6d940a39930ac76b3a89a36f96
treebad4181bf7e0f7dc37b69522f0588be9788b269d
parentea4396fb1aca78431de027663443d7e31975028e
PCI: fix sysfs rom file creation for BIOS ROM shadows

At one time, if a BIOS ROM shadow was detected for the boot video
device (stored at offset 0xc0000), we'd set a special resource flag,
IORESOURCE_ROM_SHADOW, so that the sysfs ROM file code could handle
it properly.  That broke along the way somewhere though, so current
kernels will be missing 'rom' files in sysfs if the video device
doesn't have an explicit ROM BAR.

This patch fixes the regression by moving the video fixup quirk to a
little later in the boot cycle (to avoid having its work undone by
PCI resource allocation) and checking in the PCI sysfs code whether
a rom file should be created due to a shadow resource, which is also
moved to a little later in the boot cycle so it will occur after the
video fixup.  Tested and works on my i386 test box.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/i386/pci/fixup.c
drivers/pci/pci-sysfs.c