Message ID | 20230226225406.979703-6-daniel.lezcano@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-pm-owner@vger.kernel.org> 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 45BD3C7EE33 for <linux-pm@archiver.kernel.org>; Sun, 26 Feb 2023 22:55:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229717AbjBZWzR (ORCPT <rfc822;linux-pm@archiver.kernel.org>); Sun, 26 Feb 2023 17:55:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbjBZWzP (ORCPT <rfc822;linux-pm@vger.kernel.org>); Sun, 26 Feb 2023 17:55:15 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AC8D18157 for <linux-pm@vger.kernel.org>; Sun, 26 Feb 2023 14:54:52 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id m14-20020a7bce0e000000b003e00c739ce4so2780957wmc.5 for <linux-pm@vger.kernel.org>; Sun, 26 Feb 2023 14:54:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8cRPoTQKkI6Vh2gx5bELOPsRnRzqaEtxSxLlrGiyoRc=; b=AwlI9+h33C/jXhy9hGSXpoqDifHlXB8N01uteX63jb4g3pYnKDNsjEM+g14J292EY4 0ifvKScwydnHi5F0t1xAVhPNiB9YcSaXLOWwFt4i540arg/Vz2izeTM58KqljbHjJwtm ZdO1l9lACbRH1MhmytHdH5lMDDN7rLpvv5tHlx6Rv0jz3+JCgCcXBrvrKpJgNp6yIvOF mgf1fLSCbnzdYAG9xELuDZgPJArkFTFx1FN8LNAyDegDEYewE0oprXkWD7JAzDT32Ogv PV9EP3MD5djjxLq6NlXU1o7gn7HuaRtRjcKEfPz5OLgBblTwzpj8WIWQjeUnuEUH8yOv rXPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8cRPoTQKkI6Vh2gx5bELOPsRnRzqaEtxSxLlrGiyoRc=; b=2Qx1jE5HIMe3MUF0IXQTpMOLWSyLTuRlmmsqRjYkKtgbbbnWakCpqXQ1/CiiZGQvLF 3uVfeqiBoYxGrnRKunNWq7xeyi/48rUAaEEjyJewqW0a1rP5JVtgHlP5CFZuc4p7jRCl fuRyG0PLJzXuKDzRq3uxM6G+lDxuaLmv9Sur8M80w+cLitRqkXXLqYCtWrDZxy/oQn2p 49hYv3gRrMU68ESWKhz2k5tdy/IyvgWWURiHStv3qggI7P+isQLG7xepEHQZs2HGH55l uABVPflquQ+jnB48pQHeUwE1KwY3Fd5f16pldfip2hThCv6ymvTxBqeU2ZBmXhEUN4wj XxQA== X-Gm-Message-State: AO0yUKXKQDyfRdTKBMl98CwILt4HUfYhm6cLmk1MmhRZ19dwgoRmbO6p IalJcVlT5Yx1OxPYsblllKeUTA== X-Google-Smtp-Source: AK7set/qQr+fxwzz14sZxqZKk/MMa/tX15pj/YtT6WQkYmYfK2n3tKLfMBep+DgxFH8pWe/yP83hHQ== X-Received: by 2002:a05:600c:4aa7:b0:3e2:66b:e90e with SMTP id b39-20020a05600c4aa700b003e2066be90emr12139451wmp.10.1677452089802; Sun, 26 Feb 2023 14:54:49 -0800 (PST) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:8baa:6b32:391b:62de]) by smtp.gmail.com with ESMTPSA id d10-20020a05600c3aca00b003eb369abd92sm6138074wms.2.2023.02.26.14.54.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 14:54:49 -0800 (PST) From: Daniel Lezcano <daniel.lezcano@linaro.org> To: rafael@kernel.org, daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J . Wysocki" <rafael.j.wysocki@intel.com>, Amit Kucheria <amitk@kernel.org>, Zhang Rui <rui.zhang@intel.com> Subject: [PATCH v3 05/20] thermal/core: Show a debug message when get_temp() fails Date: Sun, 26 Feb 2023 23:53:51 +0100 Message-Id: <20230226225406.979703-6-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230226225406.979703-1-daniel.lezcano@linaro.org> References: <20230226225406.979703-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org |
Series |
Self-encapsulate the thermal zone device structure
|
expand
|
diff --git a/drivers/thermal/thermal_helpers.c b/drivers/thermal/thermal_helpers.c index 0f648131b0b5..9558339f5633 100644 --- a/drivers/thermal/thermal_helpers.c +++ b/drivers/thermal/thermal_helpers.c @@ -107,6 +107,9 @@ int __thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) *temp = tz->emul_temperature; } + if (ret) + dev_dbg(&tz->device, "Failed to get temperature: %d\n", ret); + return ret; }