drm/radeon/kms/pm: restore default power state on exit
Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
79daedc942
commit
58e21dff53
4 changed files with 25 additions and 1 deletions
|
@ -125,6 +125,15 @@ int radeon_pm_init(struct radeon_device *rdev)
|
|||
|
||||
void radeon_pm_fini(struct radeon_device *rdev)
|
||||
{
|
||||
if (rdev->pm.state != PM_STATE_DISABLED) {
|
||||
/* cancel work */
|
||||
cancel_delayed_work_sync(&rdev->pm.idle_work);
|
||||
/* reset default clocks */
|
||||
rdev->pm.state = PM_STATE_DISABLED;
|
||||
rdev->pm.planned_action = PM_ACTION_DEFAULT;
|
||||
radeon_pm_set_clocks(rdev);
|
||||
}
|
||||
|
||||
if (rdev->pm.i2c_bus)
|
||||
radeon_i2c_destroy(rdev->pm.i2c_bus);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue