Re: [PATCH v4 10/12] phy: rockchip: samsung-hdptx: Add high color depth management

From: Maxime Ripard
Date: Tue Mar 04 2025 - 03:21:50 EST


On Tue, Mar 04, 2025 at 03:44:09AM +0200, Cristian Ciocaltea wrote:
> @@ -1480,12 +1484,12 @@ static int rk_hdptx_phy_power_off(struct phy *phy)
> static int rk_hdptx_phy_verify_hdmi_config(struct rk_hdptx_phy *hdptx,
> struct phy_configure_opts_hdmi *hdmi)
> {
> - if (!hdmi->tmds_char_rate || hdmi->tmds_char_rate > HDMI20_MAX_RATE)
> - return -EINVAL;
> -
> u32 bit_rate = hdmi->tmds_char_rate / 100;
> int i;
>
> + if (!hdmi->tmds_char_rate || hdmi->tmds_char_rate > HDMI20_MAX_RATE)
> + return -EINVAL;
> +
> for (i = 0; i < ARRAY_SIZE(ropll_tmds_cfg); i++)
> if (bit_rate == ropll_tmds_cfg[i].bit_rate)
> break;

Why is that change needed?

Maxime

Attachment: signature.asc
Description: PGP signature