Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7581390rwn; Wed, 14 Sep 2022 00:37:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR7A+2vHPs8NZ92khbwzGD+GnkIGJqN9/6gTYgXzxVGR4O8UIcpcoWY2+G8hUBjo3bjtJdYL X-Received: by 2002:a17:907:6089:b0:780:12db:1bf with SMTP id ht9-20020a170907608900b0078012db01bfmr3580994ejc.173.1663141053948; Wed, 14 Sep 2022 00:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663141053; cv=none; d=google.com; s=arc-20160816; b=zuDkGEmnXJrVc+cZzGSUv0/zVgRH1c7R0Q5FF9QMW7tf0tYr8fTu15N8o8fmYpYJT0 FqdNWFusa7d7WtIW19wqZl8ONT4izg3uU05bIed+LqmFSvBrWkIsDk3iLH5CnneYCvQs 5BkXKe/mV/MLiKm/DjdLNpu2gKmKah7GnRDi+9ieALW9dt+IJ65dxiLrfFHbe0N0QHer 0JzuUjfxz+dyv7XxMwJc8CwBpQd51DoE0o/yN9MnrNZRqvJQqf7VcV3BJr0R2NQnHL81 AfSSUuAqwgQVZ8Lw1483VUY+HuRCxWbVml2YXv+3Fw4coKg/VqSQB/D8L8WaaSiPssZk 8VIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/X/hrxEDXB1FnKpdmfp7H1uqteANRjGF7Msi8LITKs8=; b=ABadOIizqZ0wf2/SBbvZB9IHev9dMXmXydKt3mz0DdDSyNfdGwXG0hlxdrtgZfGcgQ +NJ/UcePWBtz98EV3FoiBgJxZ+hUdd2oc8y++oU7WKGOvzLlLglr8f+m3inF+3RiK4n7 aTeSQExJLcDAUtY72MaJEUl9v+3SNeJ5rdsowhE/hNMP1tL9nGrf3xzmPYDCRrIvVMgq lH9h6tWMb0BBewJ4XrqERNBU6y30flkeYyO1HqrYQ3JEqDc9icpN9e+FreU+yRhdh1RH YQ5Reu41aVGQdHXDR4Qbew5mOU5SFoGgSm8D6hbLNGDEW3jlnAu7Cfi1WjeJZ1aJQqo+ CRKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yavRiXiU; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr13-20020a170907720d00b0076f077cec04si8113219ejc.365.2022.09.14.00.37.07; Wed, 14 Sep 2022 00:37:33 -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=@linaro.org header.s=google header.b=yavRiXiU; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbiINGFU (ORCPT + 99 others); Wed, 14 Sep 2022 02:05:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbiINGFN (ORCPT ); Wed, 14 Sep 2022 02:05:13 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECCD319016 for ; Tue, 13 Sep 2022 23:05:08 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id b75so8648982pfb.7 for ; Tue, 13 Sep 2022 23:05:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date; bh=/X/hrxEDXB1FnKpdmfp7H1uqteANRjGF7Msi8LITKs8=; b=yavRiXiUwVngjIdqB7RYjjqmbN/ayKQYaDiL9lMsMV36dKDHb+pr1C+57QxwPhumjF hsoeGPPCMncKy8OWuh1MI5HfZgvKATOFnzdeUaBOwQqX2YqNDbHlrUJwuFbc8+yEAdAg +60nyW0wnDrtqYX5Emuvww4D2O2eg4w++u6Cy7HTdSxxctpY7TVpbxCpNImFuSNDrfcG OM+4bFoAzHUYE/8CR4hb3rxdO6Qq4OCd2ZNskR1HyRlPw+xZ5ycJxRoDfG15lyNNmYBj mc5fAuY9H2R7kySwyZGbf035NG0f0TG0le2H/Gd+zjyqN4UAfZz39h1QYHdSIrWQLKXx sbVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date; bh=/X/hrxEDXB1FnKpdmfp7H1uqteANRjGF7Msi8LITKs8=; b=yG2uHPSpaOTGMQSW/3oG2kwUd/5zZl88ScNjGZ8FXjNCcgK5jBah65nkJYJWK90Uq/ fGiAknijsCsOC/xfMD+ilXVJyY0YQPQqLGjMj4zr6CvFdcgjnsu12TeYn87SqbmPOLeD LcL7DhVVaBiCZW6xF5NvEOkFkWFW5FKzijvzGAFlZI0SwO2b736KyMGn88W0JmL6513j WFQyM2P/TpxSmgXUk40tl9iKeC+MLG+JDZuSE8h6aNOkmPUpiPTyBalUT7r7HxYcFaMA vNWDAo57uli9+Znap6cFL8+i10yNItakOYvksN+2NpkB62nYN6vX2CyC9vn7uPIxQvLX f7TA== X-Gm-Message-State: ACgBeo39E8C0RyQbhHnDsYBI0VpwnRCUE62wAWDGX+JH/jBXUvNyMdKB 4oAPqQCB4AG50JyMYN5K0L75 X-Received: by 2002:a63:201c:0:b0:434:8bd6:87e1 with SMTP id g28-20020a63201c000000b004348bd687e1mr31227271pgg.394.1663135507897; Tue, 13 Sep 2022 23:05:07 -0700 (PDT) Received: from workstation ([117.202.184.122]) by smtp.gmail.com with ESMTPSA id d4-20020aa797a4000000b0053e3a6f7da4sm9285174pfq.12.2022.09.13.23.05.03 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Sep 2022 23:05:07 -0700 (PDT) Date: Wed, 14 Sep 2022 11:35:02 +0530 From: Manivannan Sadhasivam To: Bjorn Helgaas Cc: lpieralisi@kernel.org, robh@kernel.org, andersson@kernel.org, kw@linux.com, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, konrad.dybcio@somainline.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, dmitry.baryshkov@linaro.org Subject: Re: [PATCH v3 02/12] PCI: qcom-ep: Do not use hardcoded clks in driver Message-ID: <20220914060502.GB16459@workstation> References: <20220910063045.16648-3-manivannan.sadhasivam@linaro.org> <20220913201256.GA620427@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220913201256.GA620427@bhelgaas> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 13, 2022 at 03:12:56PM -0500, Bjorn Helgaas wrote: > On Sat, Sep 10, 2022 at 12:00:35PM +0530, Manivannan Sadhasivam wrote: > > Generally, device drivers should just rely on the platform data like > > devicetree to supply the clocks required for the functioning of the > > peripheral. There is no need to hardcode the clk info in the driver. > > So get rid of the static clk info and obtain the platform supplied > > clks. > > Possibly reword the subject line to say what this does instead of what > it does not do? E.g., "Rely on devicetree 'clock-names' instead of > hard-coding" or whatever. > Okay. Thanks, Mani > Bjorn