Skip to content
Commit 97c145f7 authored by Jesse Barnes's avatar Jesse Barnes
Browse files

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: default avatarJesse Brandeburg <jesse.brandeburg@gmail.com>
Reported-by: default avatarDave Airlie <airlied@linux.ie>
Tested-by: default avatarDave Airlie <airlied@linux.ie>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 3b519e4e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment