Message ID | 20230613131631.270192-1-m.szyprowski@samsung.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp548309vqr; Tue, 13 Jun 2023 06:34:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TBaERCsvq/+Ucb9oyna3AaOMJJJBYk/4yqX1Zmv0wOAHIR//CWW4M9LWmIwWj0LJeKqPb X-Received: by 2002:a05:6a20:3d92:b0:10f:652a:27ea with SMTP id s18-20020a056a203d9200b0010f652a27eamr18131161pzi.6.1686663240482; Tue, 13 Jun 2023 06:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686663240; cv=none; d=google.com; s=arc-20160816; b=KXxEo8JVLXnI6ZpAGXCvWHwVpjIFSmYaIu2cDWcW3dNtC95a9c+CDH8heJNIFhFgHh t98AWK0PgBdYSNrfuBYEqy5kRgCPMHBhT0j16X/BGIT8po4wfgydDKDqxPL1aABWzSZ3 HjTDa4SPuOIVWhAntzlSQkuxODz6iAiQzs1lUqUKJYl6+OljBkhEvz95u/JBnih544RV /3dW8FQwgCd6n12kVP4yYUfgm82tNljL/zJwJqI1zOWkJyam5bAYrZhqpCxCk4CoeDhp nWUaSgY+CIgiAEh/GvKHjB+r+L6Nr8CRKBz/9Y7w00AO11Vg2mfJPIpCm+irhSptALZJ NuTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=tdJ26CzwUNtoD1F5zxf6fVxgrheMECD4aIoiMBnelJM=; b=y/rqzX+hPTgc4o+kfJeWeD8K13FsOGYCBFKlvViylHtBY8E+OXcFrxkcCp9/OSNi3P iEKlnMhEYYX6LhUcL8524yrzgneQoKfqOd5kvxC2mE1O+nOvnQqXJupD78wT/sg/37j9 uBprDqZpy/LDeZ8mDmNTxQIfauaCz3cdqfgpgz1Xqu/7g11CUZgyzK7tWqoMbkCAm9RM 9d/0HYXwRdveohLvB2U1bEAYf4SXe7j/jZuH2m/dV6fOQ8RCRjgZsP35CWlKBM4pZ4CV 9ULSd98MeacSBGepVly38xQSDyB3gGbsfBpLNsP0JnmGWfO2q8O3mP1uZ+4wnwnqwGuh XeMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=u5Gjj5z1; 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=samsung.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q27-20020a63751b000000b0053fc68bc1b6si5783771pgc.42.2023.06.13.06.33.44; Tue, 13 Jun 2023 06:34:00 -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=@samsung.com header.s=mail20170921 header.b=u5Gjj5z1; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242268AbjFMNQv (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Tue, 13 Jun 2023 09:16:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241000AbjFMNQs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 13 Jun 2023 09:16:48 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E2331AA for <linux-kernel@vger.kernel.org>; Tue, 13 Jun 2023 06:16:46 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230613131644euoutp0132402f1a8e71662ceacd72cd9c4c9294~oOla8kNAt0759807598euoutp01d for <linux-kernel@vger.kernel.org>; Tue, 13 Jun 2023 13:16:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230613131644euoutp0132402f1a8e71662ceacd72cd9c4c9294~oOla8kNAt0759807598euoutp01d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1686662204; bh=tdJ26CzwUNtoD1F5zxf6fVxgrheMECD4aIoiMBnelJM=; h=From:To:Cc:Subject:Date:References:From; b=u5Gjj5z1GnZv+zBc+EEayj9fISS21pe+g9wqJUlsiOrW5htT3IdJurtQBO/gm0SU/ MrNF4CioShxSQqDlyElvBhr3sZOiM4Jd+8xrRcGIgO436BDIXe2qhbKS85TpmgP4+Z pnjd74PnsQDGEVu4Z2FccLV5AcvBNgpXceOuZJBI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20230613131644eucas1p10eabc3b227115c7d80625c2d78b9482b~oOlaxHLos1967419674eucas1p1o; Tue, 13 Jun 2023 13:16:44 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 7A.96.42423.C3C68846; Tue, 13 Jun 2023 14:16:44 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230613131644eucas1p2b232fef36f6ae621827674c775a6e070~oOlaZeNy80170301703eucas1p2E; Tue, 13 Jun 2023 13:16:44 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230613131644eusmtrp2bf8463164bda1557e77a55eee42cf0ca~oOlaY1gWj1442014420eusmtrp2a; Tue, 13 Jun 2023 13:16:44 +0000 (GMT) X-AuditID: cbfec7f2-a3bff7000002a5b7-9d-64886c3ce4d2 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 96.BD.14344.B3C68846; Tue, 13 Jun 2023 14:16:43 +0100 (BST) Received: from AMDC4653.eu.corp.samsungelectronics.net (unknown [106.120.51.32]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230613131643eusmtip2e64783492535fa8b12338b59a703f93d~oOlZ_lxzT0942009420eusmtip2s; Tue, 13 Jun 2023 13:16:43 +0000 (GMT) From: Marek Szyprowski <m.szyprowski@samsung.com> To: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Maxime Ripard <mripard@kernel.org> Cc: Marek Szyprowski <m.szyprowski@samsung.com>, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: Fix best_parent_rate after moving code into a separate function Date: Tue, 13 Jun 2023 15:16:31 +0200 Message-Id: <20230613131631.270192-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnleLIzCtJLcpLzFFi42LZduznOV2bnI4UgwNbxS0+9txjtbi8aw6b xdojd9kt2jqXsVpcPOVq8e/aRhYHNo/3N1rZPTat6mTz6NuyitHj8ya5AJYoLpuU1JzMstQi fbsErownQNmCnawVp+/8YG9gPMDSxcjJISFgIrH38iq2LkYuDiGBFYwS5998YodwvjBKTLg+ iwXC+cwoMfnIfLiWaeuOQrUsZ5S4dqAJqqqVSeLouwawKjYBQ4mut11sILaIQJnErUMXmUFs ZoEsiW0/PgLt4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nlJSNEQkbi5LQGVghbWOLPtS6oomYmicMzpoJ1 swkYSnS9BUlwcogIVEhcXXoQKM7BwSyQI/HxhCdIWFggVOLV3TlgJSwCqhIPt38Em8krYCex 910bM8R8eYn9B88yQ8QFJU7OfAI2nhko3rx1NvMERr5ZSFKzkKQWMDKtYhRJLS3OTc8tNtIr TswtLs1L10vOz93ECAzmbcd+btnBuPLVR71DjEwcjIcYJTiYlUR4n2q0pwjxpiRWVqUW5ccX leakFh9iNAW6byKzlGhyPjCe8kriDc0MTA1NzCwNTC3NjJXEeT0LOhKFBNITS1KzU1MLUotg +pg4OKUamATE7NV5/S/kdIYv5GCrqU95eXyl7InTM/MPPkg+GV7ipfJnzbKvjrrv5xtO3b/0 hJPSn+UmrbyPA3mlH7OrWwbyrnp7U4RN0jV6b4vXTrlDPWXqO6qvbj509F9An5OPVJ3YZMPL EvwX52485Hzv1ptH/xwFr14VNb/c8P/zfYkVCzSnrAluC9jF5P96eVDSE5FP2wsfhExNUf4l FRd572PLqbZ5H9lDlz24KfhDXmnitD3LcpLe9TVETV5zJt4+Q+eNZmuD6MZvGdNeLe49kslm E167QeD7gZoKoVfL7hQ/+6q5xrA7ZsLVlZc/PJSUN+LKWHmbq4OzhTm7Pnz6nYjs7g+8/OkL fk7cfP6lobcSS3FGoqEWc1FxIgAbjHQL7wIAAA== X-CMS-MailID: 20230613131644eucas1p2b232fef36f6ae621827674c775a6e070 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20230613131644eucas1p2b232fef36f6ae621827674c775a6e070 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230613131644eucas1p2b232fef36f6ae621827674c775a6e070 References: <CGME20230613131644eucas1p2b232fef36f6ae621827674c775a6e070@eucas1p2.samsung.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768594594139316603?= X-GMAIL-MSGID: =?utf-8?q?1768594594139316603?= |
Series |
clk: Fix best_parent_rate after moving code into a separate function
|
|
Commit Message
Marek Szyprowski
June 13, 2023, 1:16 p.m. UTC
best_parent_rate entry is still being used in the code and needs to be
always updated regardless of the CLK_SET_RATE_NO_REPARENT flag.
Fixes: 1b4e99fda73f ("clk: Move no reparent case into a separate function")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
drivers/clk/clk.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Tue, Jun 13, 2023 at 03:16:31PM +0200, Marek Szyprowski wrote: > best_parent_rate entry is still being used in the code and needs to be > always updated regardless of the CLK_SET_RATE_NO_REPARENT flag. > > Fixes: 1b4e99fda73f ("clk: Move no reparent case into a separate function") > Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Acked-by: Maxime Ripard <mripard@kernel.org> Thanks! Maxime
Quoting Marek Szyprowski (2023-06-13 06:16:31) > best_parent_rate entry is still being used in the code and needs to be > always updated regardless of the CLK_SET_RATE_NO_REPARENT flag. > > Fixes: 1b4e99fda73f ("clk: Move no reparent case into a separate function") > Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> > --- Applied to clk-next
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index ffc9f03840b7..7ac9f7a8cb84 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -629,6 +629,7 @@ clk_core_determine_rate_no_reparent(struct clk_hw *hw, best = clk_core_get_rate_nolock(core); } + req->best_parent_rate = best; req->rate = best; return 0;