From 5cc184ae32604d18895836c4a0cee4e1b2a75b8a Mon Sep 17 00:00:00 2001 From: Thomas Makin Date: Fri, 16 Oct 2026 09:44:53 -0500 Subject: [PATCH] [wip] testing orientation in tegra-dsi --- drivers/gpu/drm/panel/panel-nx-dsi.c | 2 -- drivers/gpu/drm/tegra/dsi.c | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-nx-dsi.c b/drivers/gpu/drm/panel/panel-nx-dsi.c index 15abe6dde515..adaf997b8fc4 100644 --- a/drivers/gpu/drm/panel/panel-nx-dsi.c +++ b/drivers/gpu/drm/panel/panel-nx-dsi.c @@ -634,8 +634,6 @@ static int nx_panel_get_modes(struct drm_panel *panel, connector->display_info.height_mm = 137; connector->display_info.bpc = 8; - drm_connector_set_panel_orientation(connector, nx->orientation); - return 1; } diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c index 5711ad63d84a..e051fe71d306 100644 --- a/drivers/gpu/drm/tegra/dsi.c +++ b/drivers/gpu/drm/tegra/dsi.c @@ -1074,6 +1074,9 @@ static int tegra_dsi_init(struct host1x_client *client) &tegra_dsi_connector_helper_funcs); dsi->output.connector.dpms = DRM_MODE_DPMS_OFF; + drm_connector_set_orientation_from_panel( + &dsi->output.connector, dsi->output.panel); + drm_simple_encoder_init(drm, &dsi->output.encoder, DRM_MODE_ENCODER_DSI); drm_encoder_helper_add(&dsi->output.encoder,