]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: analogix_dp: Move the color format check to .atomic_check() for Rockchip...
authorDamon Ding <damon.ding@rock-chips.com>
Thu, 9 Apr 2026 06:52:51 +0000 (14:52 +0800)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Thu, 9 Apr 2026 12:10:39 +0000 (14:10 +0200)
commitd3bdde2e0c123ef406be81d1378749362a1ecb30
tree650ba1112062cc9de0c3192bee4e76b5356ce7c4
parent312a86806b742dfd6fc543d8ec02ab15ee68c1a2
drm/bridge: analogix_dp: Move the color format check to .atomic_check() for Rockchip platforms

For Rockchip platforms, the YUV color formats are currently unsupported.
This compatibility check was previously implemented in
&analogix_dp_plat_data.get_modes().

Moving color format check to &drm_connector_helper_funcs.atomic_check()
would get rid of &analogix_dp_plat_data.get_modes() and be more
reasonable than before.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Heiko Stuebner <heiko@sntech.de> # rk3588
Link: https://patch.msgid.link/20260409065301.446670-8-damon.ding@rock-chips.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c