OSDN Git Service

drm: atmel_hlcdc: Enable the crtc vblank prior to crtc usage.
authorDan Sneddon <dan.sneddon@microchip.com>
Wed, 2 Jun 2021 16:08:45 +0000 (09:08 -0700)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 19 Jun 2021 20:23:03 +0000 (22:23 +0200)
commite484028bf39c0c87c499dc782dc9cd3bb72c0ab5
tree6665d772aa263815d55dbd9571a0eb3b0de9665a
parent9984d6664ce9dcbbc713962539eaf7636ea246c2
drm: atmel_hlcdc: Enable the crtc vblank prior to crtc usage.

'commit eec44d44a3d2 ("drm/atmel: Use drm_atomic_helper_commit")'
removed the home-grown handling of atomic commits and exposed an issue
in the crtc atomic commit handling where vblank is expected to be
enabled but hasn't yet, causing kernel warnings during boot.  This patch
cleans up the crtc vblank handling thus removing the warning on boot.

Fixes: eec44d44a3d2 ("drm/atmel: Use drm_atomic_helper_commit")

Signed-off-by: Dan Sneddon <dan.sneddon@microchip.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210602160846.5013-1-dan.sneddon@microchip.com
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c