]> git.baikalelectronics.ru Git - kernel.git/commit
drm: dw-hdmi: Implement the mode_fixup drm helper
authorRomain Perier <romain.perier@collabora.com>
Fri, 7 Apr 2017 12:17:43 +0000 (14:17 +0200)
committerArchit Taneja <architt@codeaurora.org>
Mon, 10 Apr 2017 09:23:10 +0000 (14:53 +0530)
commit56a9e21538d7063078a1546e8f6f12470373f879
tree675363e71ebf934eed8ca9810043a2de0322f097
parent0d3d5617b3502b60901845ab4ce106a48763ca73
drm: dw-hdmi: Implement the mode_fixup drm helper

This helper is supposed to validate or reject the modeline before it
applied by the mode setting. Currently this function has been dropped,
it was previously set to a dummy function that always returned true. For
both cases, this means that userspace can ask for a bad modeline that
will be always accepted.

On some platforms, like Rockchip, the drm dw_hdmi-rockchip variant driver
already implements the atomic_check drm helper, so mode_fixup cannot be
handled and implemented there (as drm_atomic_helper relies on either
atomic_check or mode_fixup).

This commit implements this helper. It only checks that this mode is
correct from the connector point of view.

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Romain Perier <romain.perier@collabora.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170407121743.4142-1-romain.perier@collabora.com
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c