]> git.baikalelectronics.ru Git - kernel.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)
committerJesse Barnes <jbarnes@hobbes.lan>
Tue, 24 Feb 2009 17:47:46 +0000 (09:47 -0800)
commit8522592b7a5a9d88accb441bcc7b2c8ae49b508d
treeae964f6880e62dd7b233d88933b086b843ff0bdd
parent79f74ae644f3cad068c2fe80467b063f241a2af9
PCI: Enable PCIe AER only after checking firmware support

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>
drivers/pci/pcie/aer/aerdrv_core.c
drivers/pci/pcie/portdrv_pci.c