drm/omap: plane: Fix zpos initial value mismatch
authorMaxime Ripard <maxime@cerno.tech>
Mon, 21 Feb 2022 09:59:00 +0000 (10:59 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 25 Feb 2022 16:55:12 +0000 (17:55 +0100)
commitf6e63222c0a042098eaeea58f66116902208e2f5
tree6e1001f67b70f1a5025a74d48042a51a033e2193
parent80253168dbfd256bca97cf7f13312863c5a7f2e5
drm/omap: plane: Fix zpos initial value mismatch

While the omap_plane_init() function calls
drm_plane_create_zpos_property() with an initial value of 0,
omap_plane_reset() will force it to another value depending on the plane
type.

Fix the discrepancy by setting the initial zpos value to the same value
in the drm_plane_create_zpos_property() call.

Reviewed-by: Tomi Valkeinen <tomba@kernel.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220221095918.18763-5-maxime@cerno.tech
drivers/gpu/drm/omapdrm/omap_plane.c