FAILED: patch "[PATCH] drm/bridge: analogix-anx78xx: Fix drm_dp_link helper removal" failed to apply to 5.5-stable tree
Subsystems (4)
[email protected]
maintainerThe patch below does not apply to the 5.5-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 3e138a63d6674a4567a018a31e467567c40b14d5 Mon Sep 17 00:00:00 2001
From: Torsten Duwe <[email protected]>
Date: Tue, 18 Feb 2020 16:57:44 +0100
Subject: [PATCH] drm/bridge: analogix-anx78xx: Fix drm_dp_link helper removal
drm_dp_link_rate_to_bw_code and ...bw_code_to_link_rate simply divide by and multiply with 27000, respectively. Avoid an overflow in the u8 dpcd[0] and the multiply+divide alltogether.
drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c +2 -3
@@ -722,10 +722,9 @@ static int anx78xx_dp_link_training(struct anx78xx *anx78xx)if (err)return err; - dpcd[0 ] =drm_dp_max_link_rate (anx78xx->dpcd); - dpcd[0 ] =drm_dp_link_rate_to_bw_code (dpcd[0 ]); err =regmap_write (anx78xx->map[I2C_IDX_TX_P0 ], -SP_DP_MAIN_LINK_BW_SET_REG , dpcd[0 ]); +SP_DP_MAIN_LINK_BW_SET_REG , + anx78xx->dpcd[DP_MAX_LINK_RATE ]);if (err)return err;
Sasha Levin
maintainerQuoted 21 lines · On Wed, Apr 15, 2020 at 01:30:33PM +0200, [email protected] wrote:
The patch below does not apply to the 5.5-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From
3e138a63d6674a4567a018a31e467567c40b14d5Mon Sep 17 00:00:00 2001
From: Torsten Duwe <[email protected]>
Date: Tue, 18 Feb 2020 16:57:44 +0100
Subject: [PATCH] drm/bridge: analogix-anx78xx: Fixdrm_dp_linkhelper removal
drm_dp_link_rate_to_bw_codeand ...bw_code_to_link_rate simply divide by and multiply with 27000, respectively. Avoid an overflow in the u8 dpcd[0] and the multiply+divide alltogether.
Quoted 13 lines
Signed-off-by Torsten Duwe <[email protected]>Fixes ff1e8fb68ea0 ("drm/bridge: analogix-anx78xx: Avoid drm_dp_link helpers")Cc Thierry Reding <[email protected]>Cc Daniel Vetter <[email protected]>Cc Andrzej Hajda <[email protected]>Cc Neil Armstrong <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Jonas Karlman <[email protected]>Cc Jernej Skrabec <[email protected]>Cc <[email protected]> # v5.5+Reviewed-by Thierry Reding <[email protected]>Signed-off-by Thomas Zimmermann <[email protected]>
Different filename in 5.4, fixed and queued up.
Signature · 2 lines
Thanks, Sasha