Message ID | 999576e731dfc32bdd382ebb6506bf3d8f4f79e9.1549525708.git.amit.kucheria@linaro.org (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Eduardo Valentin |
Headers | show
Return-Path: <linux-pm-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5A9BA186D for <patchwork-linux-pm@patchwork.kernel.org>; Thu, 7 Feb 2019 12:58:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AB292D40C for <patchwork-linux-pm@patchwork.kernel.org>; Thu, 7 Feb 2019 12:58:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EEBF2D41B; Thu, 7 Feb 2019 12:58:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 209DB2D421 for <patchwork-linux-pm@patchwork.kernel.org>; Thu, 7 Feb 2019 12:58:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727280AbfBGM62 (ORCPT <rfc822;patchwork-linux-pm@patchwork.kernel.org>); Thu, 7 Feb 2019 07:58:28 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39417 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727413AbfBGM6W (ORCPT <rfc822;linux-pm@vger.kernel.org>); Thu, 7 Feb 2019 07:58:22 -0500 Received: by mail-pg1-f195.google.com with SMTP id r11so4456854pgp.6 for <linux-pm@vger.kernel.org>; Thu, 07 Feb 2019 04:58:21 -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=PcTJr3vpWLYkIMmFeEOBKGBfgKSNXxceX8yGcDYbbqeqJdshZxstNRO6CGrI7fhLqk As9UpgVAA6o/0adAVkyNfBvNJjjF9rg03P/L9BwpoWfNehT92MNoctJopxO6YpR22j8K Hc0hNP2L/IpKga35OXuXSy9K3s3RFhM0rfzZMcbGJuLAknCjLheiq4Cx9EjM/H6Wb5D5 L5cKrr7Boh6S/TK4koiRoTO+4GSvkJBuvKRHbSkoS/PJ5FekzvxEMq2u3zY8VxC1DqbS n4gXCBNHtfiFbtGbmZZgGq/LnC9QKcNRapZ4llki65mSKuHpjvw/P3S6WOLfIGXIVuBS W2Ww== 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=LbOBiPDJ5lUgtolep/todlc09/rDIlKSoB4fftxG6GExgyOdPUMb4a3IPKHoe8+4ls d/W+Akb1fuv/DTGjqO2EKnhjrk55li6uqhKcaghACuupu5n4ACpHhSSG6v3cGYVQjNIB Yi4Y29BQwcCTvdaLRmVKvmKqamQbDnW3VoN8vfgKZy1hBS/2t9hR0E+iB8QNjwqisEkw pzjg3mSjqPcNrzg2RtP08z+2FpIAbgIxWbmYtwvrcNofYSa1fIdAj0Q3NDDm3vaS9Nj5 H0GGS3U+UslPdw+iw5i/UmWE4hkZxq4TZ/8VA2FFagSjqkGtMmaRIB/dIw/1uRFQyL7N qiyg== X-Gm-Message-State: AHQUAuZBanR/S6Ze3b+sG7q4bRhsqpwc9b7YoI3f7SMVlknwcs6UOv3M Z+r+3WB5RLG0tPICgt+IHZTwIQ== X-Google-Smtp-Source: AHgI3Ib0siwCNYRoZpmOhOFFPxCdLkzxCLZlBTfJLe3WuxvkP4UYElin56BTrt3HlaCubMD2CgHqlg== X-Received: by 2002:a63:20e:: with SMTP id 14mr822167pgc.161.1549544300932; Thu, 07 Feb 2019 04:58:20 -0800 (PST) Received: from localhost ([2402:3a80:c80:4138:75dd:3900:1d90:762f]) by smtp.gmail.com with ESMTPSA id p6sm12876887pfn.53.2019.02.07.04.58.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 04:58:20 -0800 (PST) From: Amit Kucheria <amit.kucheria@linaro.org> 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 <daniel.lezcano@linaro.org>, David Brown <david.brown@linaro.org>, Zhang Rui <rui.zhang@intel.com> Cc: linux-pm@vger.kernel.org Subject: [PATCH v1 12/24] drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER Date: Thu, 7 Feb 2019 16:19:30 +0530 Message-Id: <999576e731dfc32bdd382ebb6506bf3d8f4f79e9.1549525708.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <cover.1549525708.git.amit.kucheria@linaro.org> References: <cover.1549525708.git.amit.kucheria@linaro.org> In-Reply-To: <cover.1549525708.git.amit.kucheria@linaro.org> References: <cover.1549525708.git.amit.kucheria@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
thermal: tsens: Refactor to use regmap_field
|
expand
|
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; } }
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 <amit.kucheria@linaro.org> --- drivers/thermal/qcom/tsens.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)