From: Andrew Patterson Date: Fri, 20 Feb 2009 23:04:59 +0000 (-0700) Subject: PCI: Enable PCIe AER only after checking firmware support X-Git-Tag: v2.6.27.20~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f14915a7ca6811ad438c96b32bad42afb9937e8;p=pandora-kernel.git 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 Signed-off-by: Andrew Patterson Signed-off-by: Jesse Barnes Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed