]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/tegra: Assign plane type before registration
authorThierry Reding <treding@nvidia.com>
Mon, 21 Apr 2025 16:13:05 +0000 (11:13 -0500)
committerThierry Reding <treding@nvidia.com>
Wed, 7 May 2025 15:16:56 +0000 (17:16 +0200)
commit9ff4fdf4f44b69237c0afc1d3a8dac916ce66f3e
tree8b91935bf68d791258c232ba9f172aa4212cb8ad
parenta6c0a91ccb257eaec2aee080df06863ce7601315
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
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/hub.c
drivers/gpu/drm/tegra/hub.h