diff options
| author | Thierry Reding <treding@nvidia.com> | 2025-04-21 11:13:05 -0500 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2025-05-07 17:16:56 +0200 |
| commit | 9ff4fdf4f44b69237c0afc1d3a8dac916ce66f3e (patch) | |
| tree | 8b91935bf68d791258c232ba9f172aa4212cb8ad /drivers/gpu/drm/tegra/hub.h | |
| parent | checkpatch: remove %p4cn (diff) | |
| download | linux-9ff4fdf4f44b69237c0afc1d3a8dac916ce66f3e.tar.gz linux-9ff4fdf4f44b69237c0afc1d3a8dac916ce66f3e.zip | |
drm/tegra: Assign plane type before registration
Changes to a plane's type after it has been registered aren't propagated
to userspace automatically. This could possibly be achieved by updating
the property, but since we can already determine which type this should
be before the registration, passing in the right type from the start is
a much better solution.
Suggested-by: Aaron Kling <webgeek1234@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Cc: stable@vger.kernel.org
Fixes: 473079549f27 ("drm/tegra: dc: Add Tegra186 support")
Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20250421-tegra-drm-primary-v2-1-7f740c4c2121@gmail.com
Diffstat (limited to 'drivers/gpu/drm/tegra/hub.h')
| -rw-r--r-- | drivers/gpu/drm/tegra/hub.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/hub.h b/drivers/gpu/drm/tegra/hub.h index 23c4b2115ed1..a66f18c4facc 100644 --- a/drivers/gpu/drm/tegra/hub.h +++ b/drivers/gpu/drm/tegra/hub.h @@ -80,7 +80,8 @@ void tegra_display_hub_cleanup(struct tegra_display_hub *hub); struct drm_plane *tegra_shared_plane_create(struct drm_device *drm, struct tegra_dc *dc, unsigned int wgrp, - unsigned int index); + unsigned int index, + enum drm_plane_type type); int tegra_display_hub_atomic_check(struct drm_device *drm, struct drm_atomic_state *state); |
