drm: bridge: samsung-dsim: fix blanking packet size calculation
authorLucas Stach <l.stach@pengutronix.de>
Fri, 26 May 2023 03:05:53 +0000 (22:05 -0500)
committerNeil Armstrong <neil.armstrong@linaro.org>
Fri, 26 May 2023 07:20:40 +0000 (09:20 +0200)
commita617b33f7e513f25becf843bc97f8f1658c16337
treed3b5c8d0357dc90b32e8cc27e3703ce9484aab91
parent1a56fcf08ae463a4564d111356091b2bdb6c7bce
drm: bridge: samsung-dsim: fix blanking packet size calculation

Scale the blanking packet sizes to match the ratio between HS clock
and DPI interface clock. The controller seems to do internal scaling
to the number of active lanes, so we don't take those into account.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Adam Ford <aford173@gmail.com>
Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Tested-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> # imx8mm-icore
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230526030559.326566-2-aford173@gmail.com
drivers/gpu/drm/bridge/samsung-dsim.c