drm/imx/ipuv3: Fix front porch adjustment upon hactive aligning
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Mon, 15 May 2023 07:21:37 +0000 (09:21 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 28 Jul 2023 15:20:26 +0000 (17:20 +0200)
commitee31742bf17636da1304af77b2cb1c29b5dda642
treed8d8ed45b1e2689d4a76552208851048a25a86da
parent2dedcf414bb01b8d966eb445db1d181d92304fb2
drm/imx/ipuv3: Fix front porch adjustment upon hactive aligning

When hactive is not aligned to 8 pixels, it is aligned accordingly and
hfront porch needs to be reduced the same amount. Unfortunately the front
porch is set to the difference rather than reducing it. There are some
Samsung TVs which can't cope with a front porch of instead of 70.

Fixes: 94dfec48fca7 ("drm/imx: Add 8 pixel alignment fix")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20230515072137.116211-1-alexander.stein@ew.tq-group.com
[p.zabel@pengutronix.de: Fixed subject]
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230515072137.116211-1-alexander.stein@ew.tq-group.com
drivers/gpu/drm/imx/ipuv3/ipuv3-crtc.c