Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1088811lqo; Fri, 17 May 2024 10:14:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPnlWSWRJDl6jRG2qCnkv7rq7cP23Yz6o+yXAetcg4jOt/R15BFYPz6nsA9VdT9RtJg/9ZBE0ia61W3C8eNobqJ81zfmRfVk3skTbSsA== X-Google-Smtp-Source: AGHT+IHBBaT405a4pvB7rJhatOwkrvAn6ZS91q+eGsqf7p38OmaWSqw+ub/rwB6uvbnl1ImIKQM3 X-Received: by 2002:a05:6a21:32a9:b0:1ae:4c81:87d with SMTP id adf61e73a8af0-1afde0d4d0fmr21730933637.14.1715966090596; Fri, 17 May 2024 10:14:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715966090; cv=pass; d=google.com; s=arc-20160816; b=IP+6onrLT8/1ykWq4+TJeN/1U+grSsa1AmV3DsmAQrQI5gyatYHkPQWzbPkd72VsYl XoMIjqqhT3weUQf1tyGm1KLErvjbKk+vR0fAAps5PzzmSNCrP8N18nIBglMeZSGR6Z7+ qDRy5a7o+oNeh7e+x4tR+0ncwWWsv1gub1Yhwi7pyj75R69k6eOI0+VX9E/5ilvwYdS5 /PdYLcvsvA6UcB9kVSjkERjLqRup2L+nj6evRuO9xzFPbKo7R6wyaMv2/p9QnZCdgs2a mMUmqUTyetzn3eurEuuhWfxt1FEs10kc+OrzPStvWK1XHr35J1MmEw1IwfL6Bc4C98KF o4gQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=rdOPXK0KqzS8hVyL/a2vhjNm4BpbHyq09+x4bOdJ3dk=; fh=WHj0oKXnroit5pBQib5k8nt73MN4h7XokEhb38C/p+I=; b=I8Adhyrn6i/Ys01vDRuLPqNphqzzPHxOqf5d8J/1tESs0kNaTEvYuNMucf492aR0Lw 8DQGVsNIf98G3Av1yiYNf1ydJKvtO+xuFYzK+iR3yUbyqf7AE82A81og5paUMjFIlVrw B+Y/jydofEPvFDhAneGZA/x/qeoTCyJvP5xTppS3nYUU5AEwT9EQFIlL244hcDdEwKJY 7/0szVlcbCPfXAm4zrdBFUsbLjWWNoILn90AxX+I4rx23InDZ9k/qOKEEeIwYVU6ZnaM TSQsmn464to7VbE4DHPKtvymIVz/iF8jLphPDNEp49g1yqrF21HdI6Mam0MixxbwRFdP FGeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-182387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182387-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a918absi3907723b3a.101.2024.05.17.10.14.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 10:14:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182387-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; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-182387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182387-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com 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 350D8285BC7 for ; Fri, 17 May 2024 17:14:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A623D13DBA8; Fri, 17 May 2024 17:14:42 +0000 (UTC) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 00E8312F5A3; Fri, 17 May 2024 17:14:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715966082; cv=none; b=Uf2fdw2FtmoWgjQhtktw9WZ9EP+AC6vleaLAFVjk6lVKpctj950Opjuzawq9Xk5df0q+E77Gy7VOatns7iAHNq+rA2IdtScLXMeD7mfKsdde5mKK69a+hk6nBYaSwUfgumgy9EO+/kZu1l+Vj7SrEOcLh6TlwW120wlv4YC3az4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715966082; c=relaxed/simple; bh=McAr598mn0hhm7/C7g/vi1fiDdRj9I8cf4gcjgVYjpg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Wc3liFoXI+VY87pdAWvBiNqDzIFwhKWMl67rBRWBtd8IOMyZIHX3N606c/RdNnpkJE7EEo5M+pJMi0YBNKVH0PzYgT7oNHtKCg9q3F5UC5Pyt1F9NrseqT+yowt41tuX4Dsp4g0lgGHsJyerXYbkVyN0eRMPZIW1cPefTbxxWrA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1ec69e3dbcfso16958705ad.0; Fri, 17 May 2024 10:14:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715966080; x=1716570880; h=in-reply-to: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=rdOPXK0KqzS8hVyL/a2vhjNm4BpbHyq09+x4bOdJ3dk=; b=QAuInwW49p+W9R6p1xzc4uGZUapwEUJGmxaCQz5AREDJEw34//7Jo36sw2NeRXgjyz 9SzBFki0yXa+iPF9uYutrK9d/ONDIlRBrYdkE3fQcS/mcTJCLdK7pc1ghKiU33nctLTt f9FblbZzT9bd/BdXUjIw/2ZlY8l3H5vmDlWtk3xDWQRJQLGfqAvkmt9pToc+ozQyy7s2 coZcu5KXwgObfncjWj+4xV9PJMcIGo0GAsKdPSxcQk7ZnveG0IE7ve5CAKDAYd0DlU/G XcpSzJuTSpYtHH+xGIHvv0zjmKJ8Xb7WY58YXkFw3iHpA6ZO1r8PAFwgClz3v23zh9ZP uuVQ== X-Forwarded-Encrypted: i=1; AJvYcCXAnIqVqCaSxFP4nZIfI3Wx4fk8ROoATt0+Wuq/7llNnv8cBiRfgEtdE1f2rut0kxPa/xow/2LTrPZFzYKBV00HHo2itQnmLVpnWC8+40vAJWUO39wX0oQCX6l4pCmiisE9H/LPj+PMDnU7B6oJ2XeYhZHw/iwXLLOPs5kge9L51uWclV3iMA== X-Gm-Message-State: AOJu0YxCCmmKDTv9TyAlhd86QC49P4/G5dYs15AimJX8iK761Zq5Dq4K l78aaxEH8ozb+1uIMqobrPw1MHM1mO0UjpNYw2Sc/wFu8H/FQz9H X-Received: by 2002:a17:902:cf06:b0:1eb:74c7:3eaa with SMTP id d9443c01a7336-1ef43d1709fmr302309145ad.23.1715966080237; Fri, 17 May 2024 10:14:40 -0700 (PDT) Received: from localhost (fpd11144dd.ap.nuro.jp. [209.17.68.221]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ef0c03633csm159134395ad.207.2024.05.17.10.14.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 10:14:39 -0700 (PDT) Date: Sat, 18 May 2024 02:14:38 +0900 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Manivannan Sadhasivam Cc: Bjorn Andersson , Konrad Dybcio , Lorenzo Pieralisi , 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: <20240517171438.GG1947919@rocinante> References: <20240417-pci-qcom-clk-bulk-v1-1-52ca19b3d6b2@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=us-ascii Content-Disposition: inline In-Reply-To: <20240417-pci-qcom-clk-bulk-v1-1-52ca19b3d6b2@linaro.org> Hello, > 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. Applied to qcom, thank you! [1/1] PCI: qcom: Switch to devm_clk_bulk_get_all() API to get the clocks from Devicetree https://git.kernel.org/pci/pci/c/6720cef2df22 Krzysztof