projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
173935f
)
[POWERPC] Fix PCI device channel state initialization
author
Linas Vepstas
<linas@austin.ibm.com>
Tue, 19 Dec 2006 20:00:34 +0000
(14:00 -0600)
committer
Paul Mackerras
<paulus@samba.org>
Wed, 20 Dec 2006 05:37:49 +0000
(16:37 +1100)
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>
arch/powerpc/kernel/pci_64.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/kernel/pci_64.c
b/arch/powerpc/kernel/pci_64.c
index a6b7692c72690bc592e1429d08a921e23f9ed946..73c59ec4912059d5693f8026a95ff946c4701e9d 100644
(file)
--- 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 */