]> 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)
commitae0b8b5333f490386d3064e78c57294ef78683b5
tree6d68df256f8cda359ddf9c78805d161cfca33e27
parent72ac9e6dd6713495cad0258b8fb4efb37269e74d
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