drm: exynos: dsi: Restore proper bridge chain order
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 12 Dec 2022 18:29:23 +0000 (23:59 +0530)
committerInki Dae <inki.dae@samsung.com>
Thu, 26 Jan 2023 06:11:24 +0000 (15:11 +0900)
commit1a1ce789e6c5da5a16d3d17bc228c6ab0b5863ed
treea6748c93618546110243a05815a852709cd33439
parent4aa5fc8dbb85e8e2c486ede4056ca3d4e757c50d
drm: exynos: dsi: Restore proper bridge chain order

Restore the proper bridge chain by finding the previous bridge
in the chain instead of passing NULL.

This establishes a proper bridge chain while attaching downstream
bridges.

Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_dsi.c