Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1264359rwr; Fri, 5 May 2023 11:21:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58nuPU5Nh+1BB/eY77VIEzMtzcdlXwhBmx8yUeP+q4acp37gBVHDLHd02k3Qed3l4eYnRr X-Received: by 2002:a17:903:1247:b0:1a6:a6e7:8846 with SMTP id u7-20020a170903124700b001a6a6e78846mr2716162plh.40.1683310918872; Fri, 05 May 2023 11:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683310918; cv=none; d=google.com; s=arc-20160816; b=PG/pLKcJ8QaiH7EQagoQ4OtdchJUWV9huMvUh/qKDsrsWrsBdKYI9+8ukTABkBbhYF yNe2yOoGEuf0MPwj5OLsiCFTtvvQMFjUWkpKwSS4bSE+W1uDQuO1nyYmH0LDuHPRJdbs LGtT7QTjZeg1IzfMD14nJ0/IrNQLUtSSHhDKOHP1SJLRLRZJVQSPAUm2FszfBdqwK+uM 2GN5xG1vo+erp1/tKMfM3okAgNu5G+CYDUnVhF9hR2g/SCiPTFZ94WKXHg7dVrhl0LeZ MU7iVul0C7ZK7pLRqmNI0foklhnb7fxVwtNPpfxwyAqN1Ho2Yw3NYoC1+0f9pWGK6wm8 K84Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=H7gnPtfvNl744rveoXk8SVL5KZ/DnsynalBHDWWv5NU=; b=ewWNiKvQoujO+BXaCEJZnWJQ/9LgNXAPo0Ldvu7XiNOOW2Q3g+v6tgJoXZsE7XhFYw /LgkeOrE8nItSHDL1q9e2H9CkhEue60cVf9KN+nxz9BzxrBWbOAByKvC3hqbYyqpDEjI Lj0U2vAeqzM+t6tXcg0PKvHqISh4DqyPzuRH9/YQARru30MMiwPAoD2YZjH+3tLoqwZh tepaCrRVOocVXcNGqxkRYdYGvPx5bR8Rh6BoSOEDNhmK8ex2ADCt2V4j/b9jeaQH/xPF DKknt8GsajXPcWXefgb4fyjBj2BtA49+K8zzIEd6wOHDmAneRb/lX0xWTHfWu0VRlDZX OV2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GuTudXBd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a170902ebd200b001a6bb44db86si2156186plg.226.2023.05.05.11.21.45; Fri, 05 May 2023 11:21:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GuTudXBd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232855AbjEESKd (ORCPT + 99 others); Fri, 5 May 2023 14:10:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232695AbjEESKb (ORCPT ); Fri, 5 May 2023 14:10:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA6F818911 for ; Fri, 5 May 2023 11:10:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 62C6A63FC2 for ; Fri, 5 May 2023 18:10:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEE0EC433A7 for ; Fri, 5 May 2023 18:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683310229; bh=bOlduRXRE2CmVm5OdOFE0fJpR9HoKc1/4AJwBj0XMUM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GuTudXBdsQrSS/Ys36+HWbku4Rug5v8wdn3J5L97LVIxIg/zV7RSUeSCKMXAxFFrK tivrTSe0DmUWN8Hm+zHxFX6pA0Vywg2a1OpPLNMh0oXaKeXtwgnB/Az4xhs+zClWPI 2gAM52H9MBvLi7TA7+R9MYbhO8EHaeQ2BLskhb95KA/+LL39MShZrTKAGrs2g8C8fy dOAutWvn4lg2RUoYJj29gPEtWqOcFlw8dYBEgtV4/XTc3dV+vpZvmdKvPQBqYkkTlD jaYVxDGRUZwFGhfhh+7o4+OyskSdzlLaSuqHMRrEZfgJRInIoISmroO4cUdvTzEYKL wSoub8aXom8QA== Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1aaebed5bd6so14632415ad.1 for ; Fri, 05 May 2023 11:10:29 -0700 (PDT) X-Gm-Message-State: AC+VfDx4T3C7tsgVcZIGl6NmVU4/UkcNeQcrMuliePbPp37g226p13wl PG84RC7/SLIRwxTgbj/wdke6eOaxe6Pm9apZAU/ngg== X-Received: by 2002:a17:90a:e7cb:b0:24d:d50f:95d2 with SMTP id kb11-20020a17090ae7cb00b0024dd50f95d2mr2431889pjb.22.1683310229260; Fri, 05 May 2023 11:10:29 -0700 (PDT) MIME-Version: 1.0 References: <20230427142934.55435-1-francesco@dolcini.it> <20230427142934.55435-10-francesco@dolcini.it> In-Reply-To: <20230427142934.55435-10-francesco@dolcini.it> From: Robert Foss Date: Fri, 5 May 2023 20:10:18 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 9/9] drm/bridge: tc358768: remove unused variable To: Francesco Dolcini Cc: Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , tomi.valkeinen@ideasonboard.com, dri-devel@lists.freedesktop.org, Francesco Dolcini , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 27, 2023 at 4:34=E2=80=AFPM Francesco Dolcini wrote: > > From: Francesco Dolcini > > Remove the unused phy_delay_nsk variable, before it was wrongly used > to compute some register value, the fixed computation is no longer using > it and therefore can be removed. > > Signed-off-by: Francesco Dolcini > --- > drivers/gpu/drm/bridge/tc358768.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/tc358768.c b/drivers/gpu/drm/bridge/t= c358768.c > index 947c7dca567a..d3af42a16e69 100644 > --- a/drivers/gpu/drm/bridge/tc358768.c > +++ b/drivers/gpu/drm/bridge/tc358768.c > @@ -641,7 +641,7 @@ static void tc358768_bridge_pre_enable(struct drm_bri= dge *bridge) > u32 val, val2, lptxcnt, hact, data_type; > s32 raw_val; > const struct drm_display_mode *mode; > - u32 dsibclk_nsk, dsiclk_nsk, ui_nsk, phy_delay_nsk; > + u32 dsibclk_nsk, dsiclk_nsk, ui_nsk; > u32 dsiclk, dsibclk, video_start; > const u32 internal_delay =3D 40; > int ret, i; > @@ -725,11 +725,9 @@ static void tc358768_bridge_pre_enable(struct drm_br= idge *bridge) > dsibclk); > dsiclk_nsk =3D (u32)div_u64((u64)1000000000 * TC358768_PRECISION,= dsiclk); > ui_nsk =3D dsiclk_nsk / 2; > - phy_delay_nsk =3D dsibclk_nsk + 2 * dsiclk_nsk; > dev_dbg(priv->dev, "dsiclk_nsk: %u\n", dsiclk_nsk); > dev_dbg(priv->dev, "ui_nsk: %u\n", ui_nsk); > dev_dbg(priv->dev, "dsibclk_nsk: %u\n", dsibclk_nsk); > - dev_dbg(priv->dev, "phy_delay_nsk: %u\n", phy_delay_nsk); > > /* LP11 > 100us for D-PHY Rx Init */ > val =3D tc358768_ns_to_cnt(100 * 1000, dsibclk_nsk) - 1; > -- > 2.25.1 > Reviewed-by: Robert Foss