]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Config orientation property if panel provides it
authorHsin-Yi Wang <hsinyi@chromium.org>
Thu, 9 Jun 2022 07:27:23 +0000 (15:27 +0800)
committerDouglas Anderson <dianders@chromium.org>
Tue, 21 Jun 2022 15:52:59 +0000 (08:52 -0700)
commit7d8e6f600e6142e7f85b2d6debc78b691ae75af6
treeae11deafb2794a428fe46a3b14b98a80bb02df39
parent4df7f0b066b0eab040cbd60685d83ff8c28bc99d
drm: Config orientation property if panel provides it

Panel orientation property should be set before drm_dev_register().
Some drm driver calls drm_dev_register() in .bind(). However, most
panels sets orientation property relatively late, mostly in .get_modes()
callback, since this is when they are able to get the connector and
binds the orientation property to it, though the value should be known
when the panel is probed.

In drm_bridge_connector_init(), if a bridge is a panel bridge, use it to
set the connector's panel orientation property.

Suggested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
[dianders: fixed space vs. tab indentation]
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220609072722.3488207-9-hsinyi@chromium.org
drivers/gpu/drm/bridge/panel.c
drivers/gpu/drm/drm_bridge_connector.c
include/drm/drm_bridge.h