]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/rcar-du: Write DPTSR only if the second source exists
authorTomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Tue, 17 Dec 2024 05:31:36 +0000 (07:31 +0200)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Tue, 17 Dec 2024 13:12:35 +0000 (15:12 +0200)
commitbb5f268b7662469b47e9b518c2353803bc7f4ec9
tree91efc2832bbf2bdcbcb92bd8900a46da84554a7f
parent6389e616fae8a101ce00068f7690461ab57b29d8
drm/rcar-du: Write DPTSR only if the second source exists

Currently the driver always writes DPTSR when setting up the hardware.
However, writing the register is only meaningful when the second source
for a plane is used, and the register is not even documented for SoCs
that do not have the second source.

So move the write behind a condition.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> # On R-Car M3-N
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241217-rcar-gh-dsi-v5-2-e77421093c05@ideasonboard.com
drivers/gpu/drm/renesas/rcar-du/rcar_du_group.c