Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp320705imj; Thu, 7 Feb 2019 05:00:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ3EfrrPIO9DrQR4A13LnbWJnsbNO23HtNWLi6ZedK5DBThpCXLEP9h4BIMjrqSnwNIYawB X-Received: by 2002:a63:231a:: with SMTP id j26mr14649863pgj.185.1549544425177; Thu, 07 Feb 2019 05:00:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549544425; cv=none; d=google.com; s=arc-20160816; b=QbCYsHX1o9ZQPeht50RPxxFicYOG/AY3dlj0W4ZDT3rZ5xCgHnlfPjSJmMiX9barHU Shl3YuYNqzosEiqd86vYVe/tMAOUTZqpxekZRNpEh1RQpxDIJQWIdW7aE1kGw2/U7B+o 2kHJT6y/XlBMuatv+BkX1sGhF3dwOFDa5CY9xD+D2oXQkeU8rffsaCqTuBE0jflrxWlB vxXeGi0XElH4LCGYwxN9CkvGDqA9w9iVHPEHHjZxxQ9WDC69GXxagOE3w4imruSeIIzg Pah+4FQKaf8ZHhQyLnW1q/wFcExZOI2A7N2lYa/pzETOD4x4EEGTWVYEu8bEGhM+LMBz dGKw== 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=J+ESjV6q2Of+6cKBHdsjhMBGS9XGpuWPBs9TmJ1Ae5X9gbxlxf0y9zLyembLv6uXZz epEus9rrODC6Zn/Er2gicQc5rI0xLatR6oZFeZHoqPyJsAdYBJYDo84DeGyhBbig3Q72 N1bsrLiYIxdZf3NhK0gi5nteRBqBT2JrQaqUV7l5NNCVCNPFOq67eHWu3lFeJB9VIE/J ZP5SPDaoCVD7EI/aUcMo+Vv/ESdJOnY/JgUc7V2JesCpcY4fJl56WQuAk8eerpCQPdjb gMn3jsWrLr8f7cPUmv1X+R072Ldf0z8YL3XBXJ5nr0ABauWfgoLlkI6rUzSXVLOW8Obs nLnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PcTJr3vp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 u72si7501351pgc.360.2019.02.07.05.00.09; Thu, 07 Feb 2019 05:00:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=PcTJr3vp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727645AbfBGM6X (ORCPT + 99 others); Thu, 7 Feb 2019 07:58:23 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:43698 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727191AbfBGM6V (ORCPT ); Thu, 7 Feb 2019 07:58:21 -0500 Received: by mail-pg1-f196.google.com with SMTP id v28so4446606pgk.10 for ; 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=XFgJ2I423YYyH/J0Up42QWBGy7t9qLvNM5akgMaAVy1ScmhCaj2Y1PTEUoEFCRYufD mfmKkPJlnNTIqj+zMbggQJ/P7Qbu0H1OxWlug1UE1O0ldklnX3rmXsLbDXc920ee7UNp rE3T9xeZZDQURV5JVmyGb36RBL4swjTwM9U75p/o0VMllHGEVeHAGeAxcZoGi3WRhMX5 JwUEplWp3RiBTTAtb7EBia/mWSteSolsXZ+Lrr24O0jX1fG5P5t4ZhxAaC+WdZG0Guj5 hs9UkW8ttZf/bOcKDNv9373CabJn3R2YGBatl31ytU721AlTjA531opGv+HNPFtDhHKZ 1Bkg== X-Gm-Message-State: AHQUAubn+3QPCaU7YqjGI9lF4a0g5wXx67hr0CVbFONwgJFLxBMfTl6z KJ7+bx2Y52RTOdELr8Mj31esGbwskgk= 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 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 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: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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; } } -- 2.17.1