Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb63ab13 authored by Linas Vepstas's avatar Linas Vepstas Committed by Paul Mackerras
Browse files

[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: default avatarLinas Vepstas <linas@austin.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 173935f3
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -360,6 +360,7 @@ struct pci_dev *of_create_pci_dev(struct device_node *node,
	DBG("    class: 0x%x\n", dev->class);
	DBG("    class: 0x%x\n", dev->class);


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


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