Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28716137rwd; Wed, 5 Jul 2023 01:23:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7yADOb72pDD1ZRTTqYslJE26sLxocuG/6rtuCwcO9JyMeWLteAaSdxqU5+un+ZHVLUDpYc X-Received: by 2002:a05:6a20:ba85:b0:10c:67c9:2fda with SMTP id fb5-20020a056a20ba8500b0010c67c92fdamr8532168pzb.40.1688545384566; Wed, 05 Jul 2023 01:23:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688545384; cv=pass; d=google.com; s=arc-20160816; b=ecQwj7OrCOwolHojqzTEgoqfMqsnAXZYaYg9cV0teT5WY6oQXRhtxnRvtT372jey1G 8O+ABfMkpFE/VmsRBWFVJzEBkHKwlLw6eWYL2BFb4kAsRkwRkdY2OkySLimdQnITugFL MpOcuEVIaRM8Pkrh00X4EBNU/7pMyPS43h+LGVnF/oNeWMVq3+Xe+HDSVNl5wcmbhi6j xFCJnJYkwZoFxElNaaMT2T9ok8EiYqw8ktwIM+GJ/+8N8yOYiNZbwUzrmdZGW9yNaRUY o+8rrM6XcYWTNWtLECxB3S3535rt5NlmT4GAqBjYvuuO/OkgLXzvp6dfnmh4RnbNL1/3 v4IA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=mzn5y+ymBBCFfWxqPgFllI9lO4S7RSaez3Esz+Jip6c=; fh=HB3rKQLJ9hwUo2zJ3bhbrmsfoH7ceFoLjO/jdLabT1o=; b=Xfa1461ltWJ8/PFTAHRhSqpWqGKuJg9LUxJsPQED13xeHmDka35tvZPgFGOIC9xcJP MeoqyyVCMb4AlAkKkWb7QyZOACZ/ocrlYn4aIaZxwaTtI+NUSIwWqjEHtSCEjPtyLbhj q9uVHkRKDXHerl/Ifk2waXOZQrY0v/uys/c1IyCyfJwrf9jC1ONVmRbf2kWGHLjX8pOb nm6lTrZT55EQn3bzfDlh4IUCqhcjtccUJ12euHR2x3Q5mwhPbGFfdygwqlcPQ14VcGe0 m0TEv+vT4Ya/H4KUjgxzEGkOkV2r0Uj0U0yWsB7duRj7P8XvH3wGhql9aNFy12PyOei3 RoXQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="dmo/lz/I"; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a170903028300b001b80ecdcb88si19703107plr.473.2023.07.05.01.22.49; Wed, 05 Jul 2023 01:23:04 -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=@vivo.com header.s=selector2 header.b="dmo/lz/I"; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232139AbjGEIUb (ORCPT + 99 others); Wed, 5 Jul 2023 04:20:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230407AbjGEIUS (ORCPT ); Wed, 5 Jul 2023 04:20:18 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2120.outbound.protection.outlook.com [40.107.117.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 966851BDD for ; Wed, 5 Jul 2023 01:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hz7jKdjs9VBt6WZrroBczV0fYTrw5wWothqn4xRAJexKDdDQvWpw6RV/yBBwkytb+/xPpcClAKCmTfK+mV2Z5yhXAWQW96krwPKLtNVJ7055ceR+3jXa0Jmw9s6+MWk9cHh4ED1PXNLPrkLIExViOd36l1Dv9jgLP5ohKqFdFEe7+ziCXnK75h4l0er7owAF2x9rVAiTDTvqjFrCrHE5WxLxHNKWXCRtbu44jFeZpkyJy8IWfZuvg2A3qUugLNRoVy8R3MJSAauf0euHGCXGSd+Wi7p35pHXgohzRXuky2IlgBCNizy1cWLG0LKRNdt6z/UKyFKyDQmNal8lMzF3gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mzn5y+ymBBCFfWxqPgFllI9lO4S7RSaez3Esz+Jip6c=; b=jP6oUCwww2BDi1rdEjsKDdbsg3a3/5X2gQ/vB/nFEblIVyFL/2bxd1dP88J6RbhI9S6qHq7ywdFvUnTut5xLoPYVIegSS40Y81pLfMdpURFSEJcmi/O9JdJt0IFk7qoXFfideInL2JetNorrW7QdxykSyfJwqusWlU0CyjAQ04xg+4sPEC0cLa/MMU411E9RrgQoknWS9sxiWdc8zFs3wIk8Mrf/Ejq9K9uQo/Q6CQQrzTSfawupY/L19BeWqKfzPOyoizWGGOueJinmA1txvXMHa4P7dpTyPgd7U3P7w67LOALPk+CBDruuS4v0O+uZaR5uWdXhu+cZh2XRvH0+NQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mzn5y+ymBBCFfWxqPgFllI9lO4S7RSaez3Esz+Jip6c=; b=dmo/lz/Il9cJ9kuZTTzoQRDOVJINuCahLZJeYLf1E59GJGy4kQkdFs0ORvNEFKxg5RVWaYoD8Hlwf2NlYUNCkOYIQPkf/Mxv2qDiI3WQlrKQPHFVeFPZgW6H6UtO150FVufaRJIx2k7cIf6OMj6KE9rp8B+/0q7VV7uVbJOI1hLD/9U4hk3is51/cyOHFyDX6OlPU0oHFSiX2aCx5fS+7oDsD/xeo+q/OANZpnO5X77GIgzKeWTEPvp/appuDPkwF9elswIYP5zrcu/PamYBEwPNON4hPobPK5udmPrk2vYzhVe2FAcLTj6lfm9glalmbWIOWvcZfGj8AWG02Sfs6w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TY0PR06MB5306.apcprd06.prod.outlook.com (2603:1096:400:211::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Wed, 5 Jul 2023 08:18:55 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.016; Wed, 5 Jul 2023 08:18:55 +0000 From: Minjie Du To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Minjie Du , Stephen Rothwell , amd-gfx@lists.freedesktop.org (open list:AMD DISPLAY CORE), dri-devel@lists.freedesktop.org (open list:DRM DRIVERS), linux-kernel@vger.kernel.org (open list) Cc: opensource.kernel@vivo.com Subject: [PATCH v1] drivers: dcn315: remove duplicate assignments Date: Wed, 5 Jul 2023 16:18:44 +0800 Message-Id: <20230705081845.12621-1-duminjie@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: TY2PR01CA0003.jpnprd01.prod.outlook.com (2603:1096:404:a::15) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5306:EE_ X-MS-Office365-Filtering-Correlation-Id: ced1a88d-d226-4506-29d9-08db7d307944 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NhBT16bUBu8pC1xRDB+dAXcddn9kMfs5ZoK/4ghpTTZAGc3yUOh9LcKtk1rCqtiNJhXsqP6ztr17a1KLZhn+rKyvt6hyfyKV+B8uspvZPvYaiuynQYHqE5VWP3QitN6TN5E8UZ7CfXwkJi8XS3JhLhmKxz2HqVGacevpbLqxGAdWcPxED6vdedUepdK7CXNxLU0QM2wFnuGyLyEvs+CXb+3i1z8vtaiAvxmMycYlGBN3MjIC95ca5y5af3tNEEIOQptqDtgvTpck1q06jWy/36u1fjrTqwU2i9vKQXioVZQ88FXN3o3MdxSi7qdC5odien7AeVHMo/roN2qkJkMH1eFHzUzoBdbPWeCmXI3Xzz15o5dMcdob2TWfT5jEGpgNhxkiz087UeLnUYfM1TsphfuyDZBtcOBY7j+3kBllTp4pU7xwZmp5S1d4cAlsO7q0O79uOmsx4kiT3IUWK8NeHPNKIRmaWEdzU2ddLKwiOZVeXxrefTnMXvBg7WvpsLTx4Ax9cGF93nke+K6tOABEZiHYzrHoNm8jSUEb1N9zJVLP9hnksTA0EBPc7kX2mRS3SO7iYIPFUcgxG7BHSRMitI2ONUTfxJW2v9h9DnAkR/og6XmMXMxti7WIJkkYFxhRTvg5EGhj/tK7P+Ocn2DFtQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(346002)(396003)(366004)(136003)(376002)(451199021)(41300700001)(38100700002)(6666004)(38350700002)(52116002)(83380400001)(2616005)(921005)(107886003)(6506007)(186003)(1076003)(6512007)(86362001)(6486002)(110136005)(316002)(478600001)(66946007)(36756003)(66556008)(66476007)(4326008)(8936002)(8676002)(26005)(7416002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?EjDvw9w5lUdRqh1O4eYXSPAdwsYaoh6QjgYbz2pgflOAlk4WDqGKtVGMuoYU?= =?us-ascii?Q?H3ymRlehjU8Wh++H7pkJ+GTyMDNLb8ZY31fMy/vkwQ9612PNW+dVufAnxB7D?= =?us-ascii?Q?YHOYExfgdEGhsB0yMRPJy7Q5C720idX4oyaK3ogH9zAIsoGccA94Evn5EGRz?= =?us-ascii?Q?vlo59/n1K4Fb60lFTQm5Xm0+SXFEKz75X+bg6xfy7ZNOSfspbSpzWwImqcSt?= =?us-ascii?Q?M7EC8K15u8R2ogvBA/tuQAkBBMrKTCdtnIFkepmWc0dcRIOskMNQ+QBnguWk?= =?us-ascii?Q?th3A7nAUqxzALuMzXQZZMTv9j15uaXs52VjF/JePtZvR8BpGt6aIqbASL7cr?= =?us-ascii?Q?b0ZDlLKi0wO4tG/8ECcfASIenIQb1oUleSb19UtUe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?us-ascii?Q?oO92J+ARjbb7Zq3/3NPArdAD9vz81VfdGXI4exNFKo6pya0BOcaMPXQxgu1U?= =?us-ascii?Q?ap/zFlkHkxG92vHV9JbVbjV+XC0KHqAhW/RDWQz9YPCYQwxBWvD/EqmCcJpC?= =?us-ascii?Q?KkI7rYGAUfuHNhbOd7tw6eJji2NnyOf8Kf/HGgj7B/kyNrFiNJTuwZguElKN?= =?us-ascii?Q?EGbmKULRMhRPcF3qt1BwofekvM6FE3MAQ3UF3X5IVPvo5ktl4U0Ei1IBKD8O?= =?us-ascii?Q?XdJafxVHfd9EzSkNZ7AP14yq/ygsRMLUEv7cnevuQKQ9rmYkLZGv88cBeTce?= =?us-ascii?Q?iHBS+hha0S7AgKaSJArn8/5wuhJghr7dfeqBz/kQ?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ced1a88d-d226-4506-29d9-08db7d307944 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 08:18:55.2032 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: I6mBl2J7XXFM2yNyGqWJ9hnHuvNbhXb4PwWtu3rcH2nnWKxpQgzfHyiry7Bl7MZTjClyxoXaEgUqofpUyhrNsg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5306 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 make clk_mgr_base->clks.zstate_support avoid double assignment. It looks like the value of new_clocks is unchanged, so there may be no need for repeated assignments. Signed-off-by: Minjie Du --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c index b2c4f97af..45b811610 100644 --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c @@ -143,7 +143,6 @@ static void dcn315_update_clocks(struct clk_mgr *clk_mgr_base, * if it is safe to lower, but we are already in the lower state, we don't have to do anything * also if safe to lower is false, we just go in the higher state */ - clk_mgr_base->clks.zstate_support = new_clocks->zstate_support; if (safe_to_lower) { /* check that we're not already in lower */ if (clk_mgr_base->clks.pwr_state != DCN_PWR_STATE_LOW_POWER) { -- 2.39.0