From patchwork Wed Mar 20 13:17:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 160680 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp282800jan; Wed, 20 Mar 2019 06:19:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYsosQuwRcuM4iH9oSERXqFo2L7xXLkds4NXY8NytC3UCkqgBfTju+r/QLjiOJ5pLk6pvj X-Received: by 2002:a63:1014:: with SMTP id f20mr7460160pgl.293.1553087965688; Wed, 20 Mar 2019 06:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553087965; cv=none; d=google.com; s=arc-20160816; b=UYG1neY5hzCB7qHeZnK/6Hpan0JTu6Hqk1JAncks7XVq3FB/R8gcZTCI1SBHqEUl7W hsJ0mRb6B4A30ys/KuPgkMKxLfdfkJjiO9dxHfyUZuqrnqSmSnDu42jraN0yGHfYH8cn 5UYktIoI1qf6NIPMHVRKJu1uEVFjgpFbru6oS29IkLna59lwRnc2EyRiT9vLOcXPk9Fx 59W2C1hlp2xLZapS7vb5363hUMu4XEddZVG/rZ0MUcYoyEulnh37+kL782nofVecOMHT IRNdd4kI+pHyMv0703sa+K7+vA6WNAa2LJnSUzAEYt03pgyJwPRe2jrNJHdcVa6cAfYk BsAw== 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=nbhPJ3So1t41O0AINkZkoLECehg48pBEwTarE1dBrEYw1+ep9xjY9Q3SQbT64NAtVO ByD1HxXZj7IFPUq5HWi4TN+i7S3lb8uNbcqPusvxRZYlopEsLzwoe6bzTeDMijyn/gcQ 2+UfymIf1uyI+7Sr3KZ3cSSRo588aDRkzBTfX34L+WNWUS+y8RcWDMpEmoygoWhMYdik u0UTP0vnOhfKEcBiH5XIHbl+1PO8ddTqyEo0tx333ERynxnm5hkS8ZOsYIcM2CFQGpRD +pYY6GeMnFpD3jXg1gZC4U41SXRGnWcbJZdrBVqV9/QGS1GAy1bJVFWsHxs7MhE2UoK4 FU+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iWl+Jh9l; 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 139si1631572pga.219.2019.03.20.06.19.25; Wed, 20 Mar 2019 06:19:25 -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=iWl+Jh9l; 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 S1728267AbfCTNTY (ORCPT + 11 others); Wed, 20 Mar 2019 09:19:24 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44541 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728235AbfCTNTS (ORCPT ); Wed, 20 Mar 2019 09:19:18 -0400 Received: by mail-pf1-f194.google.com with SMTP id a3so1899946pff.11 for ; Wed, 20 Mar 2019 06:19:17 -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:in-reply-to:references :in-reply-to:references; bh=J8JlGYbgg/zRqWjBOjDxf78JZ4BdingiWMKoRwZVd2w=; b=iWl+Jh9lxol2sN66KVe+2+jJwlqM+v2Sl2GnWQwxNRv4PVDX1DEtKSrsoBB6Qch0rH U/qFwGXqMkbG58fzPYfTKEbpF6tSLb7kRg38a9BZ0gVI9NpkhqBLScgb5YStrLtHyWpw VFFCsZFJAy6xi3tPGWeP8b2FBGh5SRMcSGHg30bhWomsAHb0R/mdTGkq38HBicgImpZd LUYhfTvq+l4i5X9wxDekvm5AdK9tFHKfXUkA9z7v+Aca/dIrfsiNLB6EBl7FdRM32CHB UsWnoRlfC3oIwiAAv+1J0eAtkfGqaxCZpd2vhMYyZNR0rseJUguKhiSVXe7//ZSOTIEt iHGA== 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=lw0cyuEGlbSr12teuHa+AAisNpr6o51lo4moD36ZHTcw3v0jev+6HU6VU4wfI4NCDj hPI5v0PIcRXDS9NHQEyJonDrPGzECPqkU07iTVffog/JdztTCd2oLZIwxqlvqWUYEN92 308gp5+dFQJ5xIwkpezcrOrR3OytasFreq7Gkc0Kq698qUP/ErrqMbC93T0gsi0Usect W8GEkpnc4KZh4M42huoNW5pVAy8VSyqm3edQIlGMjwbTv+jjUAbaILjHLBA/gbTvsf7K oCBKeaaAf3wdY8nYqOJ68Xfu6WnkZ1Ufjj1yy4Ydd21SivvLcZBTJn6x4FiHTFIdJz7R 8IQw== X-Gm-Message-State: APjAAAXqT41HTs/8qY4QHITJsmbsCbuMpUvj5IAh3m8qjF0ewWpsbZ07 MvQzaaD/deANnMlr3Zsc7QHxiQ== X-Received: by 2002:a17:902:2f43:: with SMTP id s61mr8037789plb.158.1553087957020; Wed, 20 Mar 2019 06:19:17 -0700 (PDT) Received: from localhost ([114.143.122.221]) by smtp.gmail.com with ESMTPSA id j6sm3801719pfe.79.2019.03.20.06.19.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Mar 2019 06:19:16 -0700 (PDT) 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: [PATCHv3 12/23] drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER Date: Wed, 20 Mar 2019 18:47:52 +0530 Message-Id: <71817f920176103fa387cad14e8d7d38b3636e6a.1553086065.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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; } }