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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jun 2014 18:54:09 +0000 (11:54 -0700)
commite1467c25cde8d158656eb86960472d4e03e6d71b
tree023aead4d11c3d5c4ca964eb28dd9fef92773e9c
parent425bd7a111a4b7bf15c099c2146bc3efcbabcc73
drm/radeon/pm: don't allow debugfs/sysfs access when PX card is off (v2)

commit 4f2f203976964e267dc477de6648bdb3acd2b74b upstream.

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>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_pm.c