drm/radeon/pm: don't allow debugfs/sysfs access when PX card is off (v2)
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 19 May 2014 23:21:29 +0000 (19:21 -0400)
committerChristian König <christian.koenig@amd.com>
Tue, 20 May 2014 12:42:08 +0000 (14:42 +0200)
commit4f2f203976964e267dc477de6648bdb3acd2b74b
tree6d68df256f8cda359ddf9c78805d161cfca33e27
parent24f47acc78b0ab5e2201f859fe1f693ae90c7c83
drm/radeon/pm: don't allow debugfs/sysfs access when PX card is off (v2)

When the PX card is off don't try and access it. Avoid hw access
to the card while it's off (e.g., reading back invalid temperature).

v2: be less strict

bug:
https://bugzilla.kernel.org/show_bug.cgi?id=76321

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/radeon/radeon_pm.c