]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
PCI: return error on failure to read PCI ROMs
authorTimothy S. Nelson <wayland@wayland.id.au>
Thu, 29 Jan 2009 19:12:47 +0000 (06:12 +1100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 5 Feb 2009 00:58:41 +0000 (16:58 -0800)
commit97c44836cdec1ea713a15d84098a1a908157e68f
treebc544c64ed8eeb3feb2f0b210ae7db04a40e1bae
parent3419c75e15f82c3ab09bd944fddbde72c9e4b3ea
PCI: return error on failure to read PCI ROMs

This patch makes the ROM reading code return an error to user space if
the size of the ROM read is equal to 0.

The patch also emits a warnings if the contents of the ROM are invalid,
and documents the effects of the "enable" file on ROM reading.

Signed-off-by: Timothy S. Nelson <wayland@wayland.id.au>
Acked-by: Alex Villacis-Lasso <a_villacis@palosanto.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Documentation/filesystems/sysfs-pci.txt
arch/ia64/sn/kernel/io_acpi_init.c
arch/ia64/sn/kernel/io_init.c
drivers/pci/pci-sysfs.c
drivers/pci/rom.c
include/linux/pci.h