Skip to content

Commit

Permalink
[POWERPC] Fix PCI device channel state initialization
Browse files Browse the repository at this point in the history
Initialize the pci device pci channel state. This is critical
for having the pci_channel_offline() routine (in pci.h) to
function correctly.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Linas Vepstas authored and Paul Mackerras committed Dec 20, 2006
1 parent 173935f commit bb63ab1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/kernel/pci_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ struct pci_dev *of_create_pci_dev(struct device_node *node,
DBG(" class: 0x%x\n", dev->class);

dev->current_state = 4; /* unknown power state */
dev->error_state = pci_channel_io_normal;

if (!strcmp(type, "pci") || !strcmp(type, "pciex")) {
/* a PCI-PCI bridge */
Expand Down

0 comments on commit bb63ab1

Please sign in to comment.