drm/msm: dpu: Add ->enabled to dpu_encoder_virt
authorSean Paul <seanpaul@chromium.org>
Fri, 16 Nov 2018 18:42:21 +0000 (13:42 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 11 Dec 2018 18:10:11 +0000 (13:10 -0500)
commitfba7427eb594964726ab92bde7b9c20c995b4685
treef9cb82339010e17c5cb1a4230cf0aa006969c969
parent585b3f9472eea88b82f9cde6a3129fd0c36e7e67
drm/msm: dpu: Add ->enabled to dpu_encoder_virt

Add a bool to dpu_encoder_virt to track whether the encoder is enabled
or not. Repurpose the enc_lock mutex to ensure that it is consistent
with the hw state.

Changes in v2:
- None

Cc: Jeykumar Sankaran <jsanka@codeaurora.org>
Reviewed-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c