Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp471003rdb; Sat, 16 Dec 2023 17:21:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFM7nhl6QevqRHp6NZp9jldStHWNv6Fu/tJOdFMo9GfdfYpOTlLCQvBpjYETaxzqAEemI81 X-Received: by 2002:a05:6a20:8418:b0:18f:354f:58c1 with SMTP id c24-20020a056a20841800b0018f354f58c1mr18641292pzd.10.1702776078292; Sat, 16 Dec 2023 17:21:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702776078; cv=none; d=google.com; s=arc-20160816; b=bWr3hXap55ZAvVsmd7eps41wIGckKk7AW9DtHFImmeqO2HV1Me6eYrTShTjzZ6H0i1 HHSUTwiclaNDQwFXpvo49vlrspP0Rs8ngqF4rL1IxIu4FzEUugo/JMUSNCYv7DZWZnN1 Cj7D/cUl5YsjDw28quskmkCjNZZvlCoGbTsHNu95LgQb/QbCPBAYyAG3uNI+DAvNcBTM ehYBr5FdTRPB8/OTi1LGlM34MDi2OAFbnbKBQqesVE8lE95XKA3sItkJHbG0/WqGbNz2 gUhCxW3n5mxuH22e6qMr62pvYnABW9T+PPrUvFlyustTmzamZba3cvzP7LB0LicltoTC LOrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=etWxz2zwOohIp8lCBQjCR+Z3R2MiheW16an0RvlPaXM=; fh=neOYR8OUhfCrKSnCJAYhxbcPTnkncdqmZDb1PEDA5zc=; b=sV8hzVxG4DycAvDdCILBVYBQHXr/Nl6d4QZS/BQdyL4O/fVzc1+LW0R1LJl9WAsh6g 64G91d7CEhOXGhvrJo6s8B8Xp+FobR8fDwYhY6aNs13TVqzzE0xtMW9dG7uujbouGlhN 1kCC2xQGD6NoL8w6Mb6vT8MnOZbLbZYBb5E/ghpHVsuUTJxWjJdzVhLoZYG4DwZulCBz /2fD34mCU1rXx1qtwgOAuSva2pxfTpz2Pb+5CAMjwHESMmfCg5AOgYDBnXI1vBkKGyv5 GYaQFGxPYCS/jNQZxVetKmkOMM0DjEduBA3/uApbhG7EJG2rt+F4U6yeikfh1+le2hMO xocw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HToztort; spf=pass (google.com: domain of linux-kernel+bounces-2428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a4-20020a631a44000000b005c63ff42dbdsi15438338pgm.167.2023.12.16.17.21.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 17:21:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HToztort; spf=pass (google.com: domain of linux-kernel+bounces-2428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 31E58284272 for ; Sun, 17 Dec 2023 01:21:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3167BA47; Sun, 17 Dec 2023 01:21:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HToztort" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61194ED8; Sun, 17 Dec 2023 01:21:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2D7BC433C7; Sun, 17 Dec 2023 01:21:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702776070; bh=etWxz2zwOohIp8lCBQjCR+Z3R2MiheW16an0RvlPaXM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=HToztortDnReukjRgT8BXAjrdLCdbCWtyXEuxftUFwsID6B60lZapPkfTzPa7PGHD 2CZwFXcIUHBiCb7GNsl1iI1G2rJdi3Et1ziJHM685LAmBdZBQdj3ztAgq3tO8aMdua hgNfkMtPpukMlbYgYTxzw6IrIlQeC7bteeOE99W2oARjBCQyCPO74HXoUP5slwOkuR /j4kcmSBLh86D/RuQaj8sUOl0oRIzOrv/cco4E049xGkfNDH4WSXTfx6OSM8OH/jXc tTY+77U7T4VgJFHj1NwoVcJzwcyK0LaVe6axA3lCFriYFv09mTDwXWEZmvyv/RsRIS FkYA2m7qplm8w== Message-ID: <752b98e31a2b9e4cf0aec860f158c53c.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20231129112916.23125-3-jay.buddhabhatti@amd.com> References: <20231129112916.23125-1-jay.buddhabhatti@amd.com> <20231129112916.23125-3-jay.buddhabhatti@amd.com> Subject: Re: [PATCH RESEND v2 2/2] drivers: clk: zynqmp: update divider round rate logic From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jay Buddhabhatti To: Jay Buddhabhatti , michal.simek@amd.com, mturquette@baylibre.com, shubhrajyoti.datta@xilinx.com Date: Sat, 16 Dec 2023 17:21:08 -0800 User-Agent: alot/0.10 Quoting Jay Buddhabhatti (2023-11-29 03:29:16) > Currently zynqmp divider round rate is considering single parent and > calculating rate and parent rate accordingly. But if divider clock flag > is set to SET_RATE_PARENT then its not trying to traverse through all > parent rate and not selecting best parent rate from that. So use common > divider_round_rate() which is traversing through all clock parents and > its rate and calculating proper parent rate. >=20 > Fixes: 3fde0e16d016 ("drivers: clk: Add ZynqMP clock driver") > Signed-off-by: Jay Buddhabhatti > --- Applied to clk-next