]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: Enable PCIe AER only after checking firmware support
authorAndrew Patterson <andrew.patterson@hp.com>
Fri, 20 Feb 2009 23:04:59 +0000 (16:04 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Mar 2009 00:52:56 +0000 (17:52 -0700)
commit2f14915a7ca6811ad438c96b32bad42afb9937e8
tree932ae0755129918f3bffc76263aaaee02e0cdd79
parentac1a22e11aceacf014c6de2cbe306fc7309800d4
PCI: Enable PCIe AER only after checking firmware support

commit 1f9f13c8d59c1d8da1a602b71d1ab96d1d37d69e upstream.

The PCIe port driver currently sets the PCIe AER error reporting bits for
any root or switch port without first checking to see if firmware will grant
control. This patch moves setting these bits to the AER service driver
aer_enable_port routine.  The bits are then set for the root port and any
downstream switch ports after the check for firmware support (aer_osc_setup)
is made. The patch also unsets the bits in a similar fashion when the AER
service driver is unloaded.

Reviewed-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@hobbes.lan>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pcie/aer/aerdrv_core.c
drivers/pci/pcie/portdrv_pci.c