OSDN Git Service

drm/exynos: set power state variable after enabling clocks and power
authorRahul Sharma <rahul.sharma@samsung.com>
Mon, 23 Jun 2014 05:32:21 +0000 (11:02 +0530)
committerInki Dae <inki.dae@samsung.com>
Tue, 24 Jun 2014 02:25:57 +0000 (11:25 +0900)
commitb4bfa3c7d0a464a468615e4c6e06b92387115a04
treed905c9c1aa972cdd0e2760a10291c760c56cdfa8
parentd9b68d89c2562814aaf67b890709f5aea4f7bf28
drm/exynos: set power state variable after enabling clocks and power

Power state variable holds the state of the mixer device.
Power on and power off functions are toggling these variable
at wrong place.

State variable should be changed to true only after Runtime
PM and clocks are enabled. Else it may result to a situation
where mixer registers are accessed with device power enabled.
Similar logic for poweroff sequence.

Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_mixer.c