]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite96dfed1c4b1172b2345dca5e9e1c5410567792b
tree6d68df256f8cda359ddf9c78805d161cfca33e27
parent4fc55df850f095db07edd62397fe8d2f45b34afc
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