The panel is used directly, without the panel bridge, so nothing sets its orientation on the connector apart from the workaround in the get_modes() of some panel drivers, which runs too late.
Assisted-by: LLM Signed-off-by: Dmitry Baryshkov <[email protected]> --- drivers/gpu/drm/stm/lvds.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/stm/lvds.c b/drivers/gpu/drm/stm/lvds.c index e72a64f14f47..11d32a8ddc58 100644 --- a/drivers/gpu/drm/stm/lvds.c +++ b/drivers/gpu/drm/stm/lvds.c @@ -975,6 +975,10 @@ static int lvds_attach(struct drm_bridge *bridge, struct drm_encoder *encoder, drm_connector_helper_add(connector, &lvds_conn_helper_funcs); + ret = drm_connector_set_orientation_from_panel(connector, lvds->panel); + if (ret < 0) + return ret; + ret = drm_connector_attach_encoder(connector, encoder); return ret; -- 2.47.3
