From patchwork Thu Feb 28 12:21:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 159356 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp576443jad; Thu, 28 Feb 2019 04:27:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ+NQwY0p0iMY3wu+iWOvNwFCsLtKpq6Pv7kg2ZEZjTFGjq1/5eCfXC+KbWP56SIArVzcpk X-Received: by 2002:a63:4a11:: with SMTP id x17mr8240720pga.376.1551356831104; Thu, 28 Feb 2019 04:27:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551356831; cv=none; d=google.com; s=arc-20160816; b=sJgbxmz70FRs8+bJVyeOI6XmVHZ6f9IEieQXV6S/f4uJMYRah7UHi6MTbGROaR/f53 IoNn3ZKzDZgqe5moiGiyxlAtMDCG5OZ0pn+n2vrDAVpjdPlVCpzZhLK2QToOj4DX59O6 MAExMt/wz4fsCzvvqBS3Ny/bwowNTCceY1tMA1TaYWJKcdb+wlLcNl8zMKXCot6q5EHz gqGvlpnezL0rKHzITHKFXu8x4ZuhA4gBYxeWuhkXMtB/sh2/Jv4RIvjvKhD0uZRsnKSR bdO2rh2o2EFNmu0xWFqmXZ1JdTDTDdoVZmINiAnsN874P2bPL8XISByAueZ46+GVr23N 1FHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=J8JlGYbgg/zRqWjBOjDxf78JZ4BdingiWMKoRwZVd2w=; b=Kcf70Y11+Yy7LEL6t9eTTWfixAMC2a1j3W5Z3PtTb2vrWHsNixSBnyRDQ/KHHq1m18 ZlRwj3nLNSaOTnFmhpxYWZu84mTWAHG8JNmHDq0XFnc3/M/MRuJKhzFn5gvq7e4N2dNy UKN0WW0dZZpM7gY3SNUCeHVAzIjzcBmj0Xj/XF8t34eXNhbKc66TuPkx3RtVmN3Rywhs vBh8aghc/CckfUrpNjNFptn9KGyuSZ8Nfp5XVJ0x+WrkwiRE+62LWKBxqx3Xqwfmdxq6 eyC0odTkJmyyLGFne/jK03d1tbdVvYufEJtupXMDTsFEQX0t4ya812hz5g+c+dY4hWb6 WRHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dOyjeR8Z; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 s4si17862221pgh.540.2019.02.28.04.27.10; Thu, 28 Feb 2019 04:27:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=dOyjeR8Z; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1731313AbfB1M1K (ORCPT + 15 others); Thu, 28 Feb 2019 07:27:10 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33101 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730852AbfB1M1J (ORCPT ); Thu, 28 Feb 2019 07:27:09 -0500 Received: by mail-wr1-f66.google.com with SMTP id i12so21788785wrw.0 for ; Thu, 28 Feb 2019 04:27:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=J8JlGYbgg/zRqWjBOjDxf78JZ4BdingiWMKoRwZVd2w=; b=dOyjeR8ZWcjQDTxl4nMMhZXXfodN/nAUp69zBcpmH3re2VKK+OphctBrYXp32q76Wz Qztyf30CuMRyIUPnFNN2ZYqPpXmjDsXLA/AdalLU/kJqcBJg/3ngx7K/A+j+w0wHTbXO kKd1tBL5FS6flTIRYzNFMGTqZHjD0oZxMyaswcY2am7JLWdA+Vt/uCJLZXG0ktr5AVYg TP/nIeMXGQoQgFU67iVGoA00B7I3+IjaRPmtQ4IlBdhBLGDqWrgk5Awtd9SFPCFaflBE soZw+RU177sBlwOLTH6RAafbjVF8CGWv9yDr7Ib4mtp9I+fR2SKADZMQgfcvBrKeC6Ik RsPA== 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:in-reply-to:references; bh=J8JlGYbgg/zRqWjBOjDxf78JZ4BdingiWMKoRwZVd2w=; b=OXaVH/LUVmx8MkTmyXWzKWlS2XnBXw3hQstSCFzgJCYg+VwmszhezDjAu+X0cmjsq+ 2wfcn6XqPTj0iAVGaCEFxSu0SqA1/wOcEMsg+KZYjAYmITQ9TtAPsQTVQ7VpfjthouJl c9DlcR9GIRkx2hDNiulSptJR46M2djD/VR+5RAN4Bog64yDua2HwyzzgKHc1sUIw2JXo c8zrOBEhRkDlVJubz9KllH3xglA+F3eBftp7gmnkXCs8GXv0VwjOCkljS8dwSZeC1bxy GS6ZGu2j0heAmiR008CYip5RNnnY7KPhEnFGxJYdTqc2EdTHoUkoWe31mJd4RIUx4CJ5 VnIw== X-Gm-Message-State: APjAAAU1mecR5py41nomVI1fHLxTHpQeoFD1iWY9T3X+IPjPaN1rIyV7 mQQR1fP8/y3zZPGHJZk2G7a6qg== X-Received: by 2002:adf:f543:: with SMTP id j3mr5890814wrp.220.1551356827946; Thu, 28 Feb 2019 04:27:07 -0800 (PST) Received: from localhost ([49.248.54.130]) by smtp.gmail.com with ESMTPSA id i13sm18710218wrm.86.2019.02.28.04.27.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 04:27:07 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, Daniel Lezcano , David Brown , Zhang Rui Cc: linux-pm@vger.kernel.org Subject: [PATCH v2 12/24] drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER Date: Thu, 28 Feb 2019 17:51:02 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org We print a calibration failure message on -EPROBE_DEFER from nvmem/qfprom as follows: [ 3.003090] qcom-tsens 4a9000.thermal-sensor: version: 1.4 [ 3.005376] qcom-tsens 4a9000.thermal-sensor: tsens calibration failed [ 3.113248] qcom-tsens 4a9000.thermal-sensor: version: 1.4 This confuses people when, in fact, calibration succeeds later when nvmem/qfprom device is available. Don't print this message on a -EPROBE_DEFER. Signed-off-by: Amit Kucheria --- drivers/thermal/qcom/tsens.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index b91a0b88d33c..057b33353ba3 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -159,7 +159,8 @@ static int tsens_probe(struct platform_device *pdev) if (priv->ops->calibrate) { ret = priv->ops->calibrate(priv); if (ret < 0) { - dev_err(dev, "tsens calibration failed\n"); + if (ret != -EPROBE_DEFER) + dev_err(dev, "tsens calibration failed\n"); return ret; } }