From patchwork Tue Jul 17 20:48:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 142223 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp30047ljj; Tue, 17 Jul 2018 13:48:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcSJLHWEbkrGXy9UHczyPj+FqY0bwSH0f9fdH4AfR1VbhpscTL4h9hQ0t+q7dgu1svgNN54 X-Received: by 2002:a63:7558:: with SMTP id f24-v6mr3124895pgn.314.1531860529473; Tue, 17 Jul 2018 13:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531860529; cv=none; d=google.com; s=arc-20160816; b=KS0kJF+3UkmpMx/ov2t7+l7D1ePDSYsxnDXW7jgKJ1xT8fn481hAO2evwqWD0/NJr6 aaXCS6tFwADGNuWlQGzp6Z+iIVYnM65RKRTTbzX/zkVU9v1AYuzxaEJ5JBJUMKnNrj8o FTfgsmfdtM1HShfH1s6X9iQ5hwpBjKgPFrPqc/h2h63g/XntiEEgX1C7J0yzJnaJwQsZ SPoYYUkmz+kXiyGmFVOZmPaLvOmTnLX9QYUuhbxS/qDoRfWeCYdLWpb9F8FrBaVK+Csh tBZXZDS8jIt0OIvefRIkwcOzwecGQ3RHwajmHmY684P7qAXfm+BJ1OI7pNkmn0S7rmSJ wdDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=TEYLHn3Em3F8lMdklBwGwg4oTVeokHET29KN89ga/S4=; b=sDQqRx6ip/3ijg5kBe+JrO7TNj8B9hBL23QG65gAzpkIlZeQ5NYVkVXwz7sUh7jQRJ 3eDoXRq3C1YnMswbE1PB3SHs9CVbTB9VVkR9Vwne+ns6ARS0E/lfzPJt3F09ME4ucXv6 KqKHe3CpRlRM07aogGdWfmV//Azy1FOZndvswU5aorPGvhAA4IN4mpFd2MX5/Q7OFwpB gMu47Gxavh3dM12hhJXNEkTPimpFBXMksHvAarsi/aV97xHdYQZOoFrWrbFzVoSVzlb6 nosJccP3Hb/BlgIwWybAuhd/h56Tw2/S+ECG8A7ppm9xZpGpOUDxs2zsJrG+4mnLfxDm v46A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V0r0g4nv; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2-v6si1909985pfs.2.2018.07.17.13.48.48; Tue, 17 Jul 2018 13:48:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V0r0g4nv; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1729755AbeGQVXL (ORCPT + 10 others); Tue, 17 Jul 2018 17:23:11 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46546 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729741AbeGQVXK (ORCPT ); Tue, 17 Jul 2018 17:23:10 -0400 Received: by mail-lj1-f196.google.com with SMTP id 203-v6so2134360ljj.13 for ; Tue, 17 Jul 2018 13:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=TEYLHn3Em3F8lMdklBwGwg4oTVeokHET29KN89ga/S4=; b=V0r0g4nvHThLDB1BUWIDZKU/78FtREFTmrLBcVE4a37GL/w+l7cgFm6qG0lT2gbdQ3 fK8Z7M+W5jswuUYsrkenKoxKkZDRAaavjR618Oi0BT+Jo/rzIpMdalHLu//7i1kxEg3T PbW+9OtuhJ1+72uszeG0Q5oR4uVer+jv7KERE= 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; bh=TEYLHn3Em3F8lMdklBwGwg4oTVeokHET29KN89ga/S4=; b=NK+kGhB4ZcyurBLCUByH174oxDwxeZ9cupm7bbQVSrCObgM6iYn3ZI+etcwlEbhgoj h6wMJoYhKHJsG9Q4BZ4z5lgO3cnk6OrxU3w5lE5c+QfLy50NJi15/Daa8qZ6o+glT8bu BpqA1+PLY3hioC4lF7FRxiQBHUkIS1BhXv9fkVo4LNTADaUMRc42zvp0MlKeGovE8m+V JkhbW+1i4uZ43j8PH8gds3bq+rnZb3JI6OytvRdvmF8uUIPEMl5nUrgvjHVq8uWjtKMF PBuzfQooxsPq5pG0r9bDsrPdYch2eBKAR4ap7iXuLElKDGdBBTWj/Ow4Whht5solKYGA ztLg== X-Gm-Message-State: AOUpUlGHbupdnhDMB+h9CRujwVpuy0fywph3guuj7Jd63/M6yy96ya3O /AWFixDi46VB97L+YyH1gOCo9g== X-Received: by 2002:a2e:1609:: with SMTP id w9-v6mr2464771ljd.120.1531860526222; Tue, 17 Jul 2018 13:48:46 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id a16-v6sm310820ljj.28.2018.07.17.13.48.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jul 2018 13:48:45 -0700 (PDT) From: Niklas Cassel To: Ilia Lin , "Rafael J. Wysocki" , Viresh Kumar Cc: linux-arm-msm@vger.kernel.org, Niklas Cassel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: qcom-kryo: Silently error out on EPROBE_DEFER Date: Tue, 17 Jul 2018 22:48:21 +0200 Message-Id: <20180717204821.15987-1-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org If of_nvmem_cell_get() fails due to probe deferal, we shouldn't print an error message. Just be silent in this case. Signed-off-by: Niklas Cassel --- drivers/cpufreq/qcom-cpufreq-kryo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.17.1 Reviewed-by: Amit Kucheria diff --git a/drivers/cpufreq/qcom-cpufreq-kryo.c b/drivers/cpufreq/qcom-cpufreq-kryo.c index 29389accf3e9..b8d1e6875f16 100644 --- a/drivers/cpufreq/qcom-cpufreq-kryo.c +++ b/drivers/cpufreq/qcom-cpufreq-kryo.c @@ -109,8 +109,9 @@ static int qcom_cpufreq_kryo_probe(struct platform_device *pdev) speedbin_nvmem = of_nvmem_cell_get(np, NULL); of_node_put(np); if (IS_ERR(speedbin_nvmem)) { - dev_err(cpu_dev, "Could not get nvmem cell: %ld\n", - PTR_ERR(speedbin_nvmem)); + if (PTR_ERR(speedbin_nvmem) != -EPROBE_DEFER) + dev_err(cpu_dev, "Could not get nvmem cell: %ld\n", + PTR_ERR(speedbin_nvmem)); return PTR_ERR(speedbin_nvmem); }