acrn-kernel/drivers/pci
Linas Vepstas 82081797b7 [PATCH] pci: initialize struct pci_dev.error_state
The pci channel state is currently uninitialized, thus there are two ways
of indicating that "everything's OK": 0 and 1.  This is a bit of a burden.

If a devce driver wants to check if the pci channel is in a working or a
disconnected state, the driver writer must perform checks similar to

   if((pdev->error_state != 0) &&
      (pdev->error_state != pci_channel_io_normal)) {
         whatever();
   }

which is rather akward.  The first check is needed because stuct pci_dev is
inited to all-zeros.  The scond is needed because the error recovery will
set the state to pci_channel_io_normal (which is not zero).

This patch fixes this awkwardness.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-07-10 13:24:21 -07:00
..
hotplug [PATCH] don't select CONFIG_HOTPLUG 2006-07-10 13:24:12 -07:00
pcie
.gitignore
Kconfig
Makefile
access.c
bus.c [PATCH] 64bit resource: change pci core and arch code to use resource_size_t 2006-06-27 09:24:00 -07:00
hotplug.c
msi-altix.c
msi-apic.c
msi.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
msi.h
pci-acpi.c
pci-driver.c
pci-sysfs.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
pci.c [PATCH] 64bit resource: fix up printks for resources in pci core and hotplug drivers 2006-06-27 09:23:58 -07:00
pci.h [PATCH] 64bit resource: change pci core and arch code to use resource_size_t 2006-06-27 09:24:00 -07:00
probe.c [PATCH] pci: initialize struct pci_dev.error_state 2006-07-10 13:24:21 -07:00
proc.c [PATCH] 64bit resource: change pci core and arch code to use resource_size_t 2006-06-27 09:24:00 -07:00
quirks.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
remove.c
rom.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
search.c
setup-bus.c [PATCH] 64bit resource: fix up printks for resources in pci core and hotplug drivers 2006-06-27 09:23:58 -07:00
setup-irq.c
setup-res.c [PATCH] 64bit resource: change pci core and arch code to use resource_size_t 2006-06-27 09:24:00 -07:00
syscall.c