Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp751260ybg; Tue, 9 Jun 2020 11:53:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuwn/bWlaZ8vi48gcDARi0zAIYtmwoJaBYSE+9mLj3lwm3YgAYlovau1DWtvOyAfJ+QV79 X-Received: by 2002:a17:906:971a:: with SMTP id k26mr25048207ejx.230.1591728789793; Tue, 09 Jun 2020 11:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591728789; cv=none; d=google.com; s=arc-20160816; b=GsjVKkt2pAoidxB0+cXzuWsVvKfhQzbp+RKEJ/zBsS0hDe4q5f4G9Oo+Dx+Udwrol5 aXQWsESmFDm0lnmNQC5DC8L+szGadDAkuKC8G7HLXzYU/RnklCsFptfxZSRoQh8b/pT2 btts1IqIu0Dzhhr4fTqySCSbZES3d1/hTXFLYSqxi++6fKkFzyHXYhixe4nkTL3fXljl WcBmdZK8PW8fdZPaPTxIenj85FfuUplEtmsKxmcGyYVJFSszU7UYInBQzP3FLyNLgJS0 AqyybOUpuOnxO1e2j002hzc0cqYwK3yJerlFiNxed34OOmeMLw1wj6+xC5Cek5sauhaA PhJg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=psA+m6s/YQ71wfUHabJ5pnZ0YjIiMWnkB+97bmL+R4g=; b=JlbgNETWH5+WnsexnJqViiYzDQ6iYCgOsgFafr+i1kn3ZSSeVUxkUMMoG32pM+noQq r+/AtzIwIL/RVS57AJG8EcLLw+dV9UWBEUPnykd6JNCPeaFJFcNNxpubNL9BoxJGEhIF jK5hFPY68LXmvx84yrzjjzDC0001UqktAwP6HBY7lmGkIkaZtTNxnfg5WAhD38U09YUO xV7Yp8dRG1DEQOeTgfXhVmGEwf+cicTMx4uwxoQ2LHI4CBTA8omXni2/Cr7XTkpDLu8J Zzq0UsfJERupcgjIUxfAsF0izkoFuc4LZJ1ldvKBJYyYeQckxup7nB9ndqwRjmyXVvRh I8dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fqZ0bjYi; 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 r26si11028273eja.652.2020.06.09.11.52.47; Tue, 09 Jun 2020 11:53:09 -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=fqZ0bjYi; 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 S1730118AbgFINSK (ORCPT + 99 others); Tue, 9 Jun 2020 09:18:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729041AbgFINOl (ORCPT ); Tue, 9 Jun 2020 09:14:41 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38ACBC08C5C5; Tue, 9 Jun 2020 06:14:40 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id d7so12448130lfi.12; Tue, 09 Jun 2020 06:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=psA+m6s/YQ71wfUHabJ5pnZ0YjIiMWnkB+97bmL+R4g=; b=fqZ0bjYiV00boOxgS6onhvxlQ9S9CyK3l7dXy0+pQya1ipNEALmG2AE+b0GtFfTX0E vBjEsRnSHwVAdypxjN9AQ2RE4tkQZ0t+9Hf3LaX9zHdNqdEe1Qg1A/U2ia5X0z6CcRGi t0J+k/aYVe6Txy1mcz9mZWMRvJePE5u3/N7uCD4keohE5idEl7dR/6UzGLoOYPglryhL wkGjmcYEZKZc8ooE6EYKNJe1/Kpg1wIVDBWoOTPec9spYFSBMXwBElXLXFDP7fRDLtTr q7piTUsA/Wc5Fp/zWhFf9Ysp/qLz0okGyK9WdMN6ZXG5+iG3Bhm44n25wTIvyX0f69GI 7Wzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=psA+m6s/YQ71wfUHabJ5pnZ0YjIiMWnkB+97bmL+R4g=; b=jJH9BnKv4g+Z3HYeZD27IMd697N10vR8aflgtMfPE1Vr7PHlrTSclrOVwn1khdZRRd Z3ZigveK3nfF9gb8VVJNWXcC9TS3DdfhT2S5tExUcLbvh8Ii9HNaOjphmNQbJuJpRetH kYdwEMPY1ZXS4mTlgKV6PXq8Q9Xv05dZylRhPAqjBav8YXTFBYlR+C4qfSyPyRjuEgJV yb/VTsHOLOWfl4nlo0uoIhcZNo0mlgOYN2XZlXJO4AFyKZJYM0wd0pQ1d5QoOLqieCqF OVJIzCtu1297VMAFVaJbiqIDbh/PBcf/5pJptFObN5cHJIJKhkEGbcE6Gcg7YzkssRQp 1txw== X-Gm-Message-State: AOAM533e7OidFP7c8m19TSeVh1sSbivn4Sj8ngKQ387x9J7sKsnRYV49 INaVPVNIoLZ0PEly8e3h/ac= X-Received: by 2002:a19:f813:: with SMTP id a19mr15271550lff.212.1591708478731; Tue, 09 Jun 2020 06:14:38 -0700 (PDT) Received: from localhost.localdomain (79-139-237-54.dynamic.spd-mgts.ru. [79.139.237.54]) by smtp.gmail.com with ESMTPSA id l22sm4323522lji.120.2020.06.09.06.14.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 06:14:38 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Georgi Djakov , Rob Herring , Michael Turquette , Stephen Boyd , Peter De Schrijver , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Mikko Perttunen Cc: =?UTF-8?q?Artur=20=C5=9Awigo=C5=84?= , linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v4 11/37] PM / devfreq: tegra30: Silence deferred probe error Date: Tue, 9 Jun 2020 16:13:38 +0300 Message-Id: <20200609131404.17523-12-digetx@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200609131404.17523-1-digetx@gmail.com> References: <20200609131404.17523-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 2.26.0