From: Linas Vepstas Date: Tue, 19 Dec 2006 20:00:34 +0000 (-0600) Subject: [POWERPC] Fix PCI device channel state initialization X-Git-Tag: upstream/snapshot3+hdmi~36512^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb63ab13515951f4d09b16c9e8bd6e50b0f20d1e;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [POWERPC] Fix PCI device channel state initialization 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 Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index a6b7692..73c59ec 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c @@ -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 */