From: Jesse Barnes Date: Fri, 5 Nov 2010 19:16:36 +0000 (-0400) Subject: PCI: read current power state at enable time X-Git-Tag: v2.6.37-rc2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97c145f7c87453cec90e91238fba5fe2c1561b32;p=pandora-kernel.git PCI: read current power state at enable time When we enable a PCI device, we avoid doing a lot of the initial setup work if the device's enable count is non-zero. If we don't fetch the power state though, we may later fail to set up MSI due to the unknown status. So pick it up before we short circuit the rest due to a pre-existing enable or mismatched enable/disable pair (as happens with VGA devices, which are special in a special way). Tested-by: Jesse Brandeburg Reported-by: Dave Airlie Tested-by: Dave Airlie Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed