summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorMike Mason <mmlnx@us.ibm.com>2009-07-31 00:42:39 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-09-09 22:29:41 +0200
commit6e19314cc98ab9ccc22c30d1c414984ac6de5ce2 (patch)
tree2e83662e5e8cc1a0c30bba06008fe1b955c94cd5 /arch/powerpc/kernel
parentPCI: document PCIe fundamental reset interfaces (diff)
downloadlinux-6e19314cc98ab9ccc22c30d1c414984ac6de5ce2.tar.xz
linux-6e19314cc98ab9ccc22c30d1c414984ac6de5ce2.zip
PCI/powerpc: support PCIe fundamental reset
By default, the EEH framework on powerpc does what's known as a "hot reset" during recovery of a PCI Express device. We've found a case where the device needs a "fundamental reset" to recover properly. The current PCI error recovery and EEH frameworks do not support this distinction. The attached patch makes changes to EEH to utilize the new bit field. Signed-off-by: Mike Mason <mmlnx@us.ibm.com> Signed-off-by: Richard Lary <rlary@us.ibm.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/pci_64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c
index 9e8902fa14c7..b6e9ea45a719 100644
--- a/arch/powerpc/kernel/pci_64.c
+++ b/arch/powerpc/kernel/pci_64.c
@@ -143,6 +143,7 @@ struct pci_dev *of_create_pci_dev(struct device_node *node,
dev->dev.bus = &pci_bus_type;
dev->devfn = devfn;
dev->multifunction = 0; /* maybe a lie? */
+ dev->needs_freset = 0; /* pcie fundamental reset required */
dev->vendor = get_int_prop(node, "vendor-id", 0xffff);
dev->device = get_int_prop(node, "device-id", 0xffff);