]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm: lcdif: Determine bus format and flags in ->atomic_check()
authorLiu Ying <victor.liu@nxp.com>
Wed, 10 May 2023 09:24:47 +0000 (17:24 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 26 May 2023 17:07:30 +0000 (19:07 +0200)
commit5befcdcaf062abcd362c2e761b069424d9e3b2a4
treef851042cbd299cb063d503f8080717a2c5bd140f
parent3f07432025890f1a49c30132420fb0e623a84a20
drm: lcdif: Determine bus format and flags in ->atomic_check()

Instead of determining LCDIF output bus format and bus flags in
->atomic_enable(), do that in ->atomic_check().  This is a
preparation for the upcoming patch to check consistent bus format
and bus flags across all first downstream bridges in ->atomic_check().
New lcdif_crtc_state structure is introduced to cache bus format
and bus flags states in ->atomic_check() so that they can be read
in ->atomic_enable().

Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230510092450.4024730-4-victor.liu@nxp.com
drivers/gpu/drm/mxsfb/lcdif_kms.c