Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1527207ybg; Thu, 4 Jun 2020 11:58:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKMtBPWRkKvZf1RVeFf2ICaL91EPJ6I1eXPEJqIFR0Id2KN9sVzTc2AuVdZM44M7oChLTR X-Received: by 2002:a17:906:924c:: with SMTP id c12mr5463701ejx.457.1591297103294; Thu, 04 Jun 2020 11:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591297103; cv=none; d=google.com; s=arc-20160816; b=m7XyN0Qoph8LhBP/nuv1YP0e7JBfukCmYziSWoqE604xj3LkGxaBguZ5wEOh4FbK9Z T4YbFDGB2YEX73D9ojrejFVdwwshqh4tPjf94oHVS+XEywgizM4CKG/wA3deMfxvDGbq X7tcHrN+hO9JMGEfBkfKe79ddL3GjibZ3j3uMO2Bw3upzhlDEM5H1DrJ13DFw0X9KU8X 0ccp3LWkmSmk1QIZkK9oHfOm1BbUvF59qYvhDAHNdBAXF4AYy7ygSa5+33uxGv2TVSgQ DRV97tvLmuRXSfATSjWKVwKsN5uBQ9FUtop/2wZ12R7Y4UOnnQLy2bLuz437pywxZqHz 9WBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=vTStGj95ld9u7qkUYgU+8qXianN1IvrWD90jNTWUG9A=; b=Kh5sP7kV8jI7B+1d0dEZaasb1GeDHNGhOqDGzkoNqVbCNxAkWtIktxw/68SrD/Mixl 6Ez4U2VS2HEsybopK8joGwmWHRRs7ObuimSVyqIKEfmAxfSRDaqMy+1JTfZULDma+PXf +y7hyi0+/LGQhLB3g6lDflzkCxFy/y1BVIqq5DUSGavZsIHs5HA6clMw9IGa6G5mF3pE gxJqBfDWD7S0is0FCWAExJAk+YaSmE0h9QIVxen8CvCtBp4Tr9MMRPxP/4zKSskw3P33 wiUhf10i4mgSp7Q9H3p9ma8Hr8LyLe62X/eJjjb0+ObU9M1cxqt9PjU/6G0DMjptDPuu t04Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Pp9oePz0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp6si2335710ejc.472.2020.06.04.11.58.00; Thu, 04 Jun 2020 11:58:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Pp9oePz0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730010AbgFDRJK (ORCPT + 99 others); Thu, 4 Jun 2020 13:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729994AbgFDRJK (ORCPT ); Thu, 4 Jun 2020 13:09:10 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F78CC08C5C1 for ; Thu, 4 Jun 2020 10:09:10 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id 64so3537107pfg.8 for ; Thu, 04 Jun 2020 10:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=vTStGj95ld9u7qkUYgU+8qXianN1IvrWD90jNTWUG9A=; b=Pp9oePz0iDeW5lK/UVyrG268kmsnptbgxA6fex7JANQGQupPY4LTPKk8NlJSjKAEXg MBJxHq+MIzP8rMGcq4X0bD3g3XJT/wzB0Vdv0PA3h9Tqc9+sJi1JwWAtYO+IdoTzROrQ Zd4zBPqauS3iobpGI1XpZUmAAfWqDbG2vd8/k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vTStGj95ld9u7qkUYgU+8qXianN1IvrWD90jNTWUG9A=; b=KdWFZLn8PqBEbVD/sVXbvPdAiMsFstTHphjX5m72hI88Izrwq2oOwrtOGgyvX0aEn9 IGsXR3JBcjj/pJyYVxNhOris4Uz1ozYZ5shGMGD1Tll67qw4+KA/QdEloXLZe3cOWs4d qh71KDSeUh0m16QFh2z+FNZVG6uoUpG/rM8LOJdiHIuefj0nIW5kB1x84VmG/hyXP+yz kjm1afP91KP8tzhIpPlxGXSPaDtK6v6dw/aVjAtrI3eGJo5PmEj9BTZxW2i7fBbWxkUL CDdYq9zYtXiiMKPFnNbjtfQsYDuEjgCmyUcxA5kvL8jbECDS50/w58H7KQmkaTZdZjqH 8Qlg== X-Gm-Message-State: AOAM530U9LRzvSCsD4c6CxGr0QgacosklboJ3mJ7h+kSawt/zeFO7J5q DDG9Vs1KBY+6LW6VFmVBeu3Gxw== X-Received: by 2002:a62:8cc7:: with SMTP id m190mr1386879pfd.174.1591290549416; Thu, 04 Jun 2020 10:09:09 -0700 (PDT) Received: from localhost ([2620:15c:202:1:4fff:7a6b:a335:8fde]) by smtp.gmail.com with ESMTPSA id q201sm4970443pfq.40.2020.06.04.10.09.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jun 2020 10:09:08 -0700 (PDT) Date: Thu, 4 Jun 2020 10:09:06 -0700 From: Matthias Kaehlcke To: Pradeep P V K Cc: bjorn.andersson@linaro.org, adrian.hunter@intel.com, robh+dt@kernel.org, ulf.hansson@linaro.org, vbadigan@codeaurora.org, sboyd@kernel.org, georgi.djakov@linaro.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-mmc-owner@vger.kernel.org, rnayak@codeaurora.org, sibis@codeaurora.org, matthias@chromium.org Subject: Re: [PATCH V2 1/2] mmc: sdhci-msm: Add interconnect bandwidth scaling support Message-ID: <20200604170906.GP4525@google.com> References: <1591269283-24084-1-git-send-email-ppvk@codeaurora.org> <1591269283-24084-2-git-send-email-ppvk@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1591269283-24084-2-git-send-email-ppvk@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 04, 2020 at 04:44:42PM +0530, Pradeep P V K wrote: > Interconnect bandwidth scaling support is now added as a > part of OPP [1]. So, make sure interconnect driver is ready > before handling interconnect scaling. > > This change is based on > [1] [Patch v8] Introduce OPP bandwidth bindings > (https://lkml.org/lkml/2020/5/12/493) > > [2] [Patch v3] mmc: sdhci-msm: Fix error handling > for dev_pm_opp_of_add_table() > (https://lkml.org/lkml/2020/5/5/491) > > Signed-off-by: Pradeep P V K > --- > drivers/mmc/host/sdhci-msm.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c > index b277dd7..a13ff1b 100644 > --- a/drivers/mmc/host/sdhci-msm.c > +++ b/drivers/mmc/host/sdhci-msm.c > @@ -14,6 +14,7 @@ > #include > #include > #include > +#include > > #include "sdhci-pltfm.h" > #include "cqhci.h" > @@ -2070,6 +2071,18 @@ static int sdhci_msm_probe(struct platform_device *pdev) > } > msm_host->bulk_clks[0].clk = clk; > > + /* Make sure that ICC driver is ready for interconnect bandwdith > + * scaling before registering the device for OPP. > + */ > + ret = dev_pm_opp_of_find_icc_paths(&pdev->dev, NULL); > + if (ret) { > + if (ret == -EPROBE_DEFER) > + dev_info(&pdev->dev, "defer icc path: %d\n", ret); I already commented on this on v1: This log seems to add little more than noise, or are there particular reasons why it is useful in this driver? Most drivers just return silently in case of deferred probing. If you think the log is really needed please explain why.