From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BB75C2BA19 for ; Wed, 15 Apr 2020 11:30:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 049C620737 for ; Wed, 15 Apr 2020 11:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586950254; bh=6ZEjO5hPu3ntM6RvHa9wZjouwOTJZz9q0OiuQhq5Pf0=; h=Subject:To:Cc:From:Date:List-ID:From; b=hFHtQiIPtypYr2KN9MxmaTKGaxZij3G2MQ1q3H/Bs/zWDBhj5XsHihzMTkyvZlifJ zYNqg0SPKDNWRWjogYPus0Cy0reiKFIxkwejcAIKTFzT573yC2MH3NkPv9P4HR9tyk A1zmRXOABXgrwBaophzcQ3NL2cGlhEOXYpBsdQuY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2896997AbgDOLar (ORCPT ); Wed, 15 Apr 2020 07:30:47 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:58863 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2896984AbgDOLah (ORCPT ); Wed, 15 Apr 2020 07:30:37 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1D9D75C01F6; Wed, 15 Apr 2020 07:30:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 15 Apr 2020 07:30:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=FRBfBN 9zmEgD1G3EsFECZw9Nui16cUMMiIWS/JhDoEo=; b=Dxa2v/Q9sgYk2i60lQLjMF yyD9A4hs1VjB9t/C9dgfEBUymAEx1kEqS6feom61ExaZfEhczJs2THguqF8XfDZ2 C1/myirth5pY3Oa3SVfESLzOOOWbkOgKH0hCSO+Y+V/KY/PtSx05N180PBjh5/7b WikyxJNeJ0uodBA4eHWkCe+7jxmKlRwFnsu8JOxw1cIjP7+lYL0E2cwxkWVsZlZL U6EHtrg676tIIxo08mFqHGFB9eOZ62ZqnyamLaatqWZLCr/XA1nLfPVZSiWObYfO cxbWXWSWzCUI30V5eSe9DOfkAx27IjN/3N9WHHZcZNyXF9yNzzxZ13x3DEgp6Sqw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeefgddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvhfffkfggtgfgsehtkeertddttd flnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg qeenucffohhmrghinhepfhhrvggvuggvshhkthhophdrohhrghenucfkphepkeefrdekie drkeelrddutdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 6DFCC328005A; Wed, 15 Apr 2020 07:30:34 -0400 (EDT) Subject: FAILED: patch "[PATCH] drm/bridge: analogix-anx78xx: Fix drm_dp_link helper removal" failed to apply to 5.5-stable tree To: duwe@lst.de, Laurent.pinchart@ideasonboard.com, a.hajda@samsung.com, daniel.vetter@ffwll.ch, jernej.skrabec@siol.net, jonas@kwiboo.se, narmstrong@baylibre.com, stable@vger.kernel.org, treding@nvidia.com, tzimmermann@suse.de Cc: From: Date: Wed, 15 Apr 2020 13:30:33 +0200 Message-ID: <158695023362255@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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 . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 3e138a63d6674a4567a018a31e467567c40b14d5 Mon Sep 17 00:00:00 2001 From: Torsten Duwe 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. Signed-off-by: Torsten Duwe Fixes: ff1e8fb68ea0 ("drm/bridge: analogix-anx78xx: Avoid drm_dp_link helpers") Cc: Thierry Reding Cc: Daniel Vetter Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Laurent Pinchart Cc: Jonas Karlman Cc: Jernej Skrabec Cc: # v5.5+ Reviewed-by: Thierry Reding Signed-off-by: Thomas Zimmermann Link: https://patchwork.freedesktop.org/patch/msgid/20200218155744.9675368BE1@verein.lst.de diff --git a/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c index 41867be03751..864423f59d66 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c +++ b/drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c @@ -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;