]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dpu: Disable autorefresh in command mode
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Tue, 12 Jan 2021 19:26:30 +0000 (20:26 +0100)
committerRob Clark <robdclark@chromium.org>
Sun, 31 Jan 2021 19:34:35 +0000 (11:34 -0800)
commitd861e9e9627859efee3da72fbf52baecf49b97db
treef4dda80b6b583d9be1b7f5baf9b6023f3ddf5424
parenta343c2489276b61ebdf09be4974f50f01110cc49
drm/msm/dpu: Disable autorefresh in command mode

When a command mode display is used, it may be retaining the bootloader
configuration which, in most of the cases, enables the autorefresh
feature in order to keep the splash up.

Since there is no autorefresh management in this driver, wire up the
autorefresh ops in the dpu_hw_pingpong and disable the feature when
preparing for cmd commit: instead of disabling it when initializing
the command mode, this road was chosen as to open future possibility
of enabling and managing the autorefresh feature in the driver.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.h