Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1937532ybg; Fri, 5 Jun 2020 01:11:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYRHJpjL5B1cMYm/fiSprSxS5Xo+Ptz+dFkZNcX5WOvwz1fK/z/DTQoj/AbnVL44/t89Gl X-Received: by 2002:a17:906:15d8:: with SMTP id l24mr7472189ejd.479.1591344672473; Fri, 05 Jun 2020 01:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591344672; cv=none; d=google.com; s=arc-20160816; b=CyChOWZMpSOlYui0mEgY43clB6tGmxaqvauu4yTH7AEX9gBsMHkVyKahr11ZUTVaxS +cSF2kH56MzKevBYXHlKBokTbnY8HFTupPnIlvPSrola4o/dYOFl08qXRKDMqKwn7Uyl gScS/ONnTTMosGw9TBhIsJC3k7V9UQvvHSncQ0gMN8r6g9WvgrfJh+2z+idyWNqiYfHp bBGeRpnFkvXI2MBDQwMyLS7+MIQcbZoAtR77STKWFyZv/PnBuhxuKfcktndBrj0WIvN7 xxavUFw+sbPLI1WIBXWh5RWnuZjtLXTa8jngohRuv1659w85Ua69C4c0dIg64xUSPmvS xf4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=049ityVEOxtL3FukO3eAXaJK1CB8e5f03uXhxkkdNhc=; b=xNrp4xQJUEtTALz40M/lBdh8S3xdr+hY1Z0vB2I1vhcvdvuhGY2Ega6gv5aoCBWW7S 5yscnSEMMpGEK+Sn2qInDk7sZlfXJIj5aOJaYJiNKfa1kPHMHDMEnKIII3v6WxRdSwrz SQ2PWnct9PUmCjJmDIO1AlyRo1Za13M/QX45OuMnkPiry06H/uId8rD5aHtisRRryTbC 2Le5DTM+vdpwp80lx2jGBXr3qSX+XMruozYWBrNAN7QkZz+1Gc6A5quDNHhDKYNgcoxN ntq8gGBIHkwiRZrC1BMaf6bTMSHhQyA7mLV5Dhof469bYGTl9xl5BdKSBNgL2RUnEU2E QO1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=ja1P8eya; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si3043680eji.205.2020.06.05.01.10.48; Fri, 05 Jun 2020 01:11:12 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=ja1P8eya; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726166AbgFEIGf (ORCPT + 99 others); Fri, 5 Jun 2020 04:06:35 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:42693 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbgFEIGf (ORCPT ); Fri, 5 Jun 2020 04:06:35 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1591344394; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=049ityVEOxtL3FukO3eAXaJK1CB8e5f03uXhxkkdNhc=; b=ja1P8eya8l4GrXCQFzB8gGixnb88oWnSUFRyTguFraK4v6mp+Ubr1F6XkCTjoPS8WmnE5QHc WYfxOTOmqBjPJ/mcVz6zzf1mANbfLiy8NZJtsgOmlNm0s4QCyaf67E1gGN2HJ1o8AXPhRJRs jjkLWKx6i5QRvJgXvJNwpshWhNc= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 5ed9fd0044a25e0052009122 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 05 Jun 2020 08:06:24 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A1B09C43391; Fri, 5 Jun 2020 08:06:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: ppvk) by smtp.codeaurora.org (Postfix) with ESMTPSA id 27E7CC433CB; Fri, 5 Jun 2020 08:06:21 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 05 Jun 2020 13:36:21 +0530 From: ppvk@codeaurora.org To: Sibi Sankar Cc: Matthias Kaehlcke , 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, matthias@chromium.org Subject: Re: [PATCH V2 1/2] mmc: sdhci-msm: Add interconnect bandwidth scaling support In-Reply-To: <23d6da79d604ce5113d90a2adab17483@codeaurora.org> References: <1591269283-24084-1-git-send-email-ppvk@codeaurora.org> <1591269283-24084-2-git-send-email-ppvk@codeaurora.org> <20200604170906.GP4525@google.com> <23d6da79d604ce5113d90a2adab17483@codeaurora.org> Message-ID: X-Sender: ppvk@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-06-05 00:04, Sibi Sankar wrote: > On 2020-06-04 22:39, Matthias Kaehlcke wrote: >> 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. > Sorry. i forget to remove this print on V2. i will address this in my next patch set. > Both the err logs seem redundant. > EPROBE_DEFERS are rather readily > noticeable through the return val. > dev_.._find_icc_paths already prints > err messages when we fail to get icc > paths. True. i will remove this too in my next patch set.