Explorar o código

[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 <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Linas Vepstas %!s(int64=18) %!d(string=hai) anos
pai
achega
bb63ab1351
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      arch/powerpc/kernel/pci_64.c

+ 1 - 0
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 */