Re: [PATCH v10 01/69] video/hdmi: Introduce HDMI version enum

[email protected] Fri, 31 Jul 2026 16:25:03 +0000
Newsgroups dev.linux.lists.linux-sunxi,org.freedesktop.lists.dri-devel
Message-ID <[email protected]>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The `hdmi_version` enum includes `HDMI_VERSION_2_2`, but there is no HDMI 2.2 specification.
--

--- Patch [1]: [PATCH v10 01/69] video/hdmi: Introduce HDMI version enum ---
commit 15fb027a48288332d9771472bd4b270e1f7f2d4b
Author: Cristian Ciocaltea <[email protected]>

video/hdmi: Introduce HDMI version enum

This commit introduces an enum to represent various HDMI specification
versions. It is intended to be used by upcoming changes to associate
HDMI connectors and bridges with a maximum supported version.

> diff --git a/include/linux/hdmi.h b/include/linux/hdmi.h
> index 8dab78e1f61bd..b80a5ee63bb23 100644
> --- a/include/linux/hdmi.h
> +++ b/include/linux/hdmi.h
[ ... ]
> @@ -27,6 +27,18 @@
>  #include <linux/types.h>
>  #include <linux/device.h>
>  
> +enum hdmi_version {
> +	HDMI_VERSION_UNKNOWN,
> +	HDMI_VERSION_1_0,
> +	HDMI_VERSION_1_1,
> +	HDMI_VERSION_1_2,
> +	HDMI_VERSION_1_3,
> +	HDMI_VERSION_1_4,
> +	HDMI_VERSION_2_0,
> +	HDMI_VERSION_2_1,
> +	HDMI_VERSION_2_2,

[Severity: Low]
This isn't a bug, but is HDMI_VERSION_2_2 intended to be here?

The latest major specification family released by the HDMI Forum is 2.1, and
there is no HDMI 2.2 specification.

Could this have been conflated with HDCP 2.2, which is frequently used
alongside HDMI 2.0/2.1? Including a non-existent version could lead to
incorrect capability reporting if drivers attempt to set it as a maximum
supported version.

> +};
> +
>  enum hdmi_packet_type {
>  	HDMI_PACKET_TYPE_NULL = 0x00,
>  	HDMI_PACKET_TYPE_AUDIO_CLOCK_REGEN = 0x01,

-- 
Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=1