Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1084325ybt; Wed, 1 Jul 2020 18:28:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc10KDWQUjSTRPWGxcatMTLE/b5o2tkKWra7b4JXlPlKCsH8yQR6tHag+nKQukWGoGVyxw X-Received: by 2002:a17:906:4c41:: with SMTP id d1mr25681722ejw.463.1593653320186; Wed, 01 Jul 2020 18:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593653320; cv=none; d=google.com; s=arc-20160816; b=UkzBkVFp79mYGi6YZan7giFVoBhDzSFwccjLphJn9xMzymPDpGqzNFoaP4FeB6vWHf Tjsb3wqb/9MuGlIrmyiSr9/mStGNtqe8Ww4AZTLm/p5xvGmM8rI66gA3cyeForzl6tIv wHlHadY9QJXfB52B1lB766PsDXyE2gJnoYmyRCq1QpVc1z180HJeo7h5vKU/t4Y0hHGP QZvKy/+LaDkFjMf83n9heCb2mMd0Kg/W/7BjuIDdd+0t/xrH5NTLkPt3Juv8xttZlMMy eQlGOdrSQ5OaCV8Bogj6KV/yYdt+hH9vHxvbP2p7E/c0UZROwzyANHPXD1z8kI6UarSk JSVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=OA49WuL0sThpD2AYuMtpdZGroGjS32Zzwhjd8yiNNuE=; b=v+sngzroeCn/CEAO7BI6TEhwUp8C894ZmxeL8fq/4KqZiND4lAPTLwl6M4yEr+nJnA 3j+m5sBAI1W6TKFSY+YWKRTBqaZTud5AlairptNSnpyCEQT7hwCWLTUIE8POFrrbgif4 0r8MckHopJQUwPajgpkAq5zbpmBRYlhIWQTQ2+4WAdJPMBQXoUu4wvfwSUb6jaue3b5S YXKx7iPGeTILnj06vSfLhByUX8p4WNVJ1pm1fbsHBJy/mb2Kx/momu2ZUNSr4V4+Jfuv AqSmLtXcch/rjvHwdRl2gWGDCFiao0a98+72WEAvKJJbj6hg4jlnxliDWK3N5omz5XnV oNdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Mk2P/S1R"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e20si4800736edy.5.2020.07.01.18.28.17; Wed, 01 Jul 2020 18:28:40 -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=@gmail.com header.s=20161025 header.b="Mk2P/S1R"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728141AbgGBBZO (ORCPT + 99 others); Wed, 1 Jul 2020 21:25:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728736AbgGBBZG (ORCPT ); Wed, 1 Jul 2020 21:25:06 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 011BBC08C5C1; Wed, 1 Jul 2020 18:25:06 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id q7so16284109ljm.1; Wed, 01 Jul 2020 18:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=OA49WuL0sThpD2AYuMtpdZGroGjS32Zzwhjd8yiNNuE=; b=Mk2P/S1R51LjiHT7a52NIA3xKyA8UaSrakv3wRtyWYPe6BL3niPa/Dc/e4xhwoI/7y qJCb9fIvWwDH+rLQCzB7ZXYtVgYJ17S079OzNbyqQDLIp0iyIOZCd2f/fXeMuCcMZLJt /nXGZj42VSvsYShz0ll30Lyi6zGzcBWLqTeKBVrFClp61LhaHRGRo7AY9m0Pyg+rKlJg leQR6wWLC+Ta3BChiNfVKYMnm6Cnijo3iVy35FtBvlPGz1TinVSDi5OeLq4ExN/pNSKk HVnbRxh9g2dXkTgaTw8nTyxZK7+4+/oV5s4HURZiYG3wpDpJvgjBmRy+AXNHPlFQSHMp sU+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OA49WuL0sThpD2AYuMtpdZGroGjS32Zzwhjd8yiNNuE=; b=slZMJu6lAawQN/iCGs4dlR9wMT9bChNtotd7jbt18qWWpQgBtEpozvPhrYb6v98KTQ p+sGjMzHCybZuAv5p7opDBBhO8eUVfIPNvhvwFLtgW7Ix3FwNx6eC2Co+cH6emM2lgG7 Aq4wvhdtZxuiU5jDBDGsdd7NQGHrOyZOhmTxXZvuuGbbfKSaJN6B+7nNVOpgrUji7FC8 bBBTtWKL4BFsPvMJG6IcVSKhwa/Djra3lfDWXTP0zQmOJNS7Pi11rbsodUsyYcBuIoYm dlxGFzkkjbIUlvXyV2B6rIhfGzLDALvnexi6bzqSLLXq/UKI4nDOAph5QpAA1J2ECQM1 xImg== X-Gm-Message-State: AOAM532p/VGDQQmPt/R2Fs9r3rOXPcWcZ2mYCxqEBDAUihn6OOq/Tv0k JL8Z7UshUhQb6DHBZaPflXkvvWXZcQM= X-Received: by 2002:a2e:9017:: with SMTP id h23mr10807112ljg.61.1593653104194; Wed, 01 Jul 2020 18:25:04 -0700 (PDT) Received: from [192.168.2.145] (79-139-237-54.dynamic.spd-mgts.ru. [79.139.237.54]) by smtp.googlemail.com with ESMTPSA id t4sm2704596lfp.21.2020.07.01.18.25.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Jul 2020 18:25:03 -0700 (PDT) Subject: Re: [PATCH v4 11/37] PM / devfreq: tegra30: Silence deferred probe error To: Chanwoo Choi , Thierry Reding , Jonathan Hunter , Georgi Djakov , Rob Herring , Michael Turquette , Stephen Boyd , Peter De Schrijver , MyungJoo Ham , Kyungmin Park , Mikko Perttunen Cc: =?UTF-8?B?QXJ0dXIgxZp3aWdvxYQ=?= , linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org References: <20200609131404.17523-1-digetx@gmail.com> <20200609131404.17523-12-digetx@gmail.com> <136b430d-2097-7b2b-d7dd-b438deee8f5d@samsung.com> <8e941321-5da6-e9e7-6a4e-8c0477911ebd@samsung.com> From: Dmitry Osipenko Message-ID: <3e30279c-0964-4dd8-e7ac-2066c8ccc902@gmail.com> Date: Thu, 2 Jul 2020 04:25:02 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <8e941321-5da6-e9e7-6a4e-8c0477911ebd@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 02.07.2020 04:34, Chanwoo Choi пишет: > On 7/2/20 10:20 AM, Dmitry Osipenko wrote: >> 02.07.2020 03:59, Chanwoo Choi пишет: >>> Hi, >>> >>> On 6/9/20 10:13 PM, Dmitry Osipenko wrote: >>>> Tegra EMC driver was turned into a regular kernel driver, it also could >>>> be compiled as a loadable kernel module now. Hence EMC clock isn't >>>> guaranteed to be available and clk_get("emc") may return -EPROBE_DEFER and >>>> there is no good reason to spam KMSG with a error about missing EMC clock >>>> in this case, so let's silence the deferred probe error. >>>> >>>> Signed-off-by: Dmitry Osipenko >>>> --- >>>> drivers/devfreq/tegra30-devfreq.c | 9 ++++++--- >>>> 1 file changed, 6 insertions(+), 3 deletions(-) >>>> >>>> diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c >>>> index e94a27804c20..423dd35c95b3 100644 >>>> --- a/drivers/devfreq/tegra30-devfreq.c >>>> +++ b/drivers/devfreq/tegra30-devfreq.c >>>> @@ -801,9 +801,12 @@ static int tegra_devfreq_probe(struct platform_device *pdev) >>>> } >>>> >>>> tegra->emc_clock = devm_clk_get(&pdev->dev, "emc"); >>>> - if (IS_ERR(tegra->emc_clock)) { >>>> - dev_err(&pdev->dev, "Failed to get emc clock\n"); >>>> - return PTR_ERR(tegra->emc_clock); >>>> + err = PTR_ERR_OR_ZERO(tegra->emc_clock); >>>> + if (err) { >>>> + if (err != -EPROBE_DEFER) >>>> + dev_err(&pdev->dev, "Failed to get emc clock: %d\n", >>>> + err); >>>> + return err; >>>> } >>>> >>>> err = platform_get_irq(pdev, 0); >>>> >>> >>> As I commented on patch10, I recommend that you add the Tegra EMC driver >>> commit information into patch description and Looks good to me. >>> >> >> Hello, Chanwoo! >> >> This patch11 and patch10 are depending on the patches 4/5 (the Tegra EMC >> driver patches) of *this* series, hence there is no commit information. >> I'm expecting that this whole series will go via tegra tree once all the >> patches will be reviewed and collect all the necessary acks from you, >> ICC and CLK subsystem maintainers. >> >> Please feel free to give yours ack to the patches 10/11 if they are good >> to you :) >> >> > > OK. Looks good to me > Acked-by: Chanwoo Choi > Thank you! :)