Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1804071lqa; Mon, 29 Apr 2024 22:29:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSoNX2lRJAfip/lLk4aeXnwzUakdXC+vOxJ1U3sFaz2jukHs1ptA0y64qo9V/dOhdslpHfTemaaSbytxT1zdYNSCjxbCSavGpayD69gw== X-Google-Smtp-Source: AGHT+IHuXzIjf2OtQlGmN8vib0SgFelvJoXUWfT3B3WG1urwzOXDy87tBmeUWHyv+k8x0BylDRgf X-Received: by 2002:aca:d02:0:b0:3c7:133c:9b6e with SMTP id 2-20020aca0d02000000b003c7133c9b6emr12014127oin.59.1714454997098; Mon, 29 Apr 2024 22:29:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714454997; cv=pass; d=google.com; s=arc-20160816; b=CV0d9xIwlv07cNXqGT2oj/jcheUKz9gH8xhx9BGhi4+Q1lV1JIPvPlW2szFBJbULxx h5U+qe4dNMpoj6tmyZKAxXQBuG+xRUVzfV+PnZOU1BpY2tynfB7AVEz/i+BpUg5tTe24 qEjmHA9qZX5GIVxdQUPzPNwIfN4eGxPB4zCRE8oUBLMYg5YKNzgcix2wnNIY/HTyz7T0 tXBDpUgHLrqa3yxbU6RyE6dGEfFUJU9BBvXQNST3o1zrqjqznRAS5pFy05gDD7X6PsSb omoAo80QBwR8Qe2LngAC+8aWDiqm5sfic2w7BvQFmNp8SNVk0xMdlfNGRZy3fSQV0J4j r6jw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6mCZk6FdleSGbVvWLSI06B/J4ORyevzhTkeYx7XPwWo=; fh=OTur7/fLa9PHbU8LjOdwyO2r8f6dRGupHSK9hvnhTJA=; b=tSVcELcehdwv725AE9utxUXurX/FmQfCOTVQC1xuSNecmrTCcCcZmoqUJObtSYUCMS 669NGs3OCz/kVKEfFirIuFqyC9LwK+Hhx91JIIa+twemVlAV73ZxgR52tEc6334LUHvt RtGeqvu2r7rApLjR6AH3UuK4ffYRIVLwVsamz491IkPoFYd+IfAW/W4LYduPipUWxOjC utbmxzduEt/H8CodWCxlGU5sUp+KbdybpRIsOdigXAD8TMl0VN7E3a+OsEyJ8zRwjjgJ yUENCbRVmgKen+dkH4EzwPYV3Tg40wbz7ODaLw+mHIwbw8r9C14QIe/d+aG4F/TLdRPB 71FA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R81ZkMZC; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-163365-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t69-20020a638148000000b006070592622bsi10598775pgd.268.2024.04.29.22.29.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 22:29:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163365-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R81ZkMZC; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-163365-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 B51F8283262 for ; Tue, 30 Apr 2024 05:29:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6117317732; Tue, 30 Apr 2024 05:29:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="R81ZkMZC" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E91317579 for ; Tue, 30 Apr 2024 05:29:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714454988; cv=none; b=GCQ0P9IjxJd1X0HcsSzebAhGfVBY1NxKtDE0nTnHQ3QDoDRf6KOuUQQ8CWwtBKp6Jd6zPczSK9QiuxlanrdHAh1nHbCOYlFgEpfl9y55jEpnfbWtX29bN9Dec2jysArGbRyjLkE4jl7ph9Pw8xedEPCjNJsMVsQm/ajhj6PQRLU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714454988; c=relaxed/simple; bh=mTNba/21rcXQObBdesbtQYbtpWfVF1Ca5IJys+iS0ms=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XTlr1K6RMyH5wjGLYvzLfr8CT5aUls2XKwh5k8AZC6stDf4rWvEDZgbHhFw0/XvsRJ4+K1B9eG6dsPPjAuEN3WRoBvs1Of545dncaLNn5MN2WnvZrZSKqIhEdzEefZrgCFdkWKR4wxfbESgdGogDy4EcEAXZ3oki8s/I8FvGQpw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=R81ZkMZC; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1e40042c13eso35862635ad.2 for ; Mon, 29 Apr 2024 22:29:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714454986; x=1715059786; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=6mCZk6FdleSGbVvWLSI06B/J4ORyevzhTkeYx7XPwWo=; b=R81ZkMZC7iCj2+CIfNFwQMVtgR5oPrJtZ9UAFatpF3tuzbLPunlRKnZ7QgUcMlrV7Y HUHHXBFxrTvKwfLbHfbcmLHIyV9Yp7uYSQb4HQfDbwS7vvuK/UbU0oioD/7wGgSrEwnY F9XLuYUzWS1OY2EukF+zVBRuWQv+xpt8a/nlTxDW7jguUkR9emkP5nb0dsO76j9mPNok rIJYKZortxy9BplxVs1Exf+ukxYCcC4VXy0nRz/LQOTgm9IfH+GAzSkqhCKFpcJeB6tI Le5diOcutqItVdSdQY6bTRowma3zqhx6D171rPBd/VhEm2r6s70GxTw+ycDBLZBIe6iA WuRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714454986; x=1715059786; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6mCZk6FdleSGbVvWLSI06B/J4ORyevzhTkeYx7XPwWo=; b=MMyomaW7isQaD8sp+ks6AwZFT+mp38LEiyuhDPFpET7XnxNeT04HrY8M2CN9hVYgyp bLbf9IntxGMZkYF2DclqR04wiWezcK4R4aQVMdx/Jl/u5LM70XDhmBcaLTfvqDxF2vTP gWccA10DwrVYPBCflRI8p2LszLBdybtDbTlxgkXsydzobVHjpo8mRUWqMHQiR7hsSel0 QSfDFRm9GFHL8CpCMz4iwdl3ujiNCI5qCZg/2iUYBKDyspofvHICEyTMNrhk85JS9vks VN2R1C/uxLFj2cAQtz/Ma6ewXphjGFoH4rR/sQ4VgiOVtnNJtsUBzwVbvdMP8AqjPNF9 5yXg== X-Forwarded-Encrypted: i=1; AJvYcCXL2xLhbDPuLARbsoOLmlnoFCxtTaTZhgajQLPw/TfFjnE73er9tP7kOYwjBSSjQQkNzUFUHEmm/qTc8lbHnew/tU8njuIwzauxXSQS X-Gm-Message-State: AOJu0Yx0wQPX8FEmKdq8JMEZ/A2Vn051BDoTfdLnIEcRNtIa7qk3oL01 r/EO6tpF+C6L3sWgv7cJh/wGFLdLfwqInBrqzCYggoUIkVUrVHtJhHK4eGxHxQ== X-Received: by 2002:a17:903:18b:b0:1e8:b81d:e193 with SMTP id z11-20020a170903018b00b001e8b81de193mr16766426plg.12.1714454985792; Mon, 29 Apr 2024 22:29:45 -0700 (PDT) Received: from thinkpad ([220.158.156.15]) by smtp.gmail.com with ESMTPSA id w5-20020a1709029a8500b001e435350a7bsm21298398plp.259.2024.04.29.22.29.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 22:29:45 -0700 (PDT) Date: Tue, 30 Apr 2024 10:59:41 +0530 From: Manivannan Sadhasivam To: Konrad Dybcio Cc: Bjorn Andersson , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: qcom: Switch to devm_clk_bulk_get_all() API to get the clocks from Devicetree Message-ID: <20240430052941.GE3301@thinkpad> References: <20240417-pci-qcom-clk-bulk-v1-1-52ca19b3d6b2@linaro.org> <693e631d-08e9-4ba4-8752-83246697b39c@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <693e631d-08e9-4ba4-8752-83246697b39c@linaro.org> On Wed, Apr 17, 2024 at 10:05:45PM +0200, Konrad Dybcio wrote: > On 17.04.2024 9:02 AM, Manivannan Sadhasivam wrote: > > There is no need for the device drivers to validate the clocks defined in > > Devicetree. The validation should be performed by the DT schema and the > > drivers should just get all the clocks from DT. Right now the driver > > hardcodes the clock info and validates them against DT which is redundant. > > > > So use devm_clk_bulk_get_all() that just gets all the clocks defined in DT > > and get rid of all static clocks info from the driver. This simplifies the > > driver. > > > > Signed-off-by: Manivannan Sadhasivam > > --- > > Even better, you can push the bulk_get_all to a common function so as not > to duplicate it for every gen! > I don't see a benefit in doing so. It is just a function call and using a helper will cause inconsistency with other API usage in this driver. I prefer to keep it as it is. - Mani -- மணிவண்ணன் சதாசிவம்