]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: dw-hdmi-qp: Rework DRM InfoFrame handler
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Thu, 29 Jan 2026 12:13:35 +0000 (14:13 +0200)
committerDaniel Stone <daniels@collabora.com>
Fri, 30 Jan 2026 10:04:31 +0000 (10:04 +0000)
commit08116cf29e36968bf57abc2e2f93b5ccf2903e52
treeecec54baaebd0902322ad8468ee86aec317084f2
parent1933d1508a9d56fc08a1586ef244eb5516b271ac
drm/bridge: dw-hdmi-qp: Rework DRM InfoFrame handler

Make use of the recently introduced dw_hdmi_qp_write_infoframe() helper
to simplify the writing of the Dynamic Range and Mastering (DRM)
InfoFrame packet header and body registers.

Moreover, since now having dedicated callbacks per InfoFrame type, move
the implementation to dw_hdmi_qp_bridge_write_hdr_drm_infoframe() and
drop dw_hdmi_qp_config_drm_infoframe().

While at it, also discard the unnecessary infoframe size verification,
as well as the redundant disabling of the packet transmission (already
done by the explicit call to the clear callback).

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Link: https://patch.msgid.link/20260129-dw-hdmi-qp-iframe-v2-4-0157ad05232c@collabora.com
Signed-off-by: Daniel Stone <daniels@collabora.com>
drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c