From patchwork Sat Oct 29 05:29:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 13024516 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66A90C433FE for ; Sat, 29 Oct 2022 05:29:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229379AbiJ2F3p (ORCPT ); Sat, 29 Oct 2022 01:29:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiJ2F3n (ORCPT ); Sat, 29 Oct 2022 01:29:43 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76C1911826 for ; Fri, 28 Oct 2022 22:29:41 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id m14-20020a17090a3f8e00b00212dab39bcdso11713496pjc.0 for ; Fri, 28 Oct 2022 22:29:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=31jSUXRLISfaTkdTilHUmaigZg3beIP3lhW1ioCvMJc=; b=Hg4K3nXPtmn2jY5q1GN364CBW72ksirv4hh/PBWxCK/ZY01a5Rdeid9hFy2urInLy+ IOr7UQr5eJ+9+hjQBEuVSpPnp5uxsTcrhpM6DTWT2yPgU3YTa4SQxIq/g07IALFqYwLn Y7aYU7rW5o7Bfl4FNetBmUSqTvp/O7j6nnBKUhsYlFAMWe3pxVzR7i0E08YcZQa2QKI5 UWK2uMfUPso8/0LzPtPX1pgBy0cmsAHvcm/cxlzgTgN97ISM5Vslx3DUe1XNiZcAmUas gYZwsyJrZcOZF3TChHRaIkr6txK73/SxLOzhph7/XbrIvGXjLvTFnxJnC6XrV0hHiDs6 gH5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=31jSUXRLISfaTkdTilHUmaigZg3beIP3lhW1ioCvMJc=; b=jh8GXbSWKD+LqWr0oUR9LDNv4BuFjWETWG7x3fP1SLKmuRchedQF8voOkJteHSF73t UqZh0mAVXuSLNcvJF8e6e+wCUzZGzmnQgoNmENU/DlJpGl+UfKcK8WtKLKJZjAhaBhKX TN90wWfe3147RdbXd8ac/8yj0k56in/IdU1whFvYruPDYiQ1r8KuI2xm4oPxjOWdK68p L1fx8+8pcjiJ7506nwSdZIrDMUb0jcp2XRdXDB/SRon+AKhMamNoTxY7SYy0xxc0Giw/ TcQ6naTLGN8/XryXTFLYheKtmH+EmYL89v32oehMUmBWVvQb/4jYx3m8+BXgqJdPGpM7 dXsQ== X-Gm-Message-State: ACrzQf2JWUIj9vgDJz9BvBGM+cbJvWpqRqvXZtH9nqQUSZ/117yV7qdX rnS61fipn1v6xeTZTwMUnhbh X-Google-Smtp-Source: AMsMyM7F45fd0XuqdXtDRXdSZs/vPMmxMT4eFOwr0RODL26jdgNRy7nZhOGXmcyDuM1KRzNErBYcwQ== X-Received: by 2002:a17:90a:e7ca:b0:20a:966e:8480 with SMTP id kb10-20020a17090ae7ca00b0020a966e8480mr19849402pjb.100.1667021381004; Fri, 28 Oct 2022 22:29:41 -0700 (PDT) Received: from localhost.localdomain ([59.92.103.167]) by smtp.gmail.com with ESMTPSA id s14-20020a170902ea0e00b001785fa792f4sm373728plg.243.2022.10.28.22.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 22:29:40 -0700 (PDT) From: Manivannan Sadhasivam To: amitk@kernel.org, thara.gopinath@gmail.com Cc: andersson@kernel.org, konrad.dybcio@somainline.org, rafael@kernel.org, daniel.lezcano@linaro.org, rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, steev@kali.org, Manivannan Sadhasivam Subject: [PATCH] thermal/drivers/qcom: Demote error log of thermal zone register to debug Date: Sat, 29 Oct 2022 10:59:33 +0530 Message-Id: <20221029052933.32421-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org devm_thermal_of_zone_register() can fail with -ENODEV if thermal zone for the channel is not represented in DT. This is perfectly fine since not all sensors needs to be used for thermal zones but only a few in real world. So demote the error log to debug to avoid spamming users. Signed-off-by: Manivannan Sadhasivam --- drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c index 1b2c43eab27d..ba73336d4d41 100644 --- a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c +++ b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c @@ -678,7 +678,7 @@ static int adc_tm5_register_tzd(struct adc_tm5_chip *adc_tm) &adc_tm5_thermal_ops); if (IS_ERR(tzd)) { if (PTR_ERR(tzd) == -ENODEV) { - dev_warn(adc_tm->dev, "thermal sensor on channel %d is not used\n", + dev_dbg(adc_tm->dev, "thermal sensor on channel %d is not used\n", adc_tm->channels[i].channel); continue; }