From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx-relay97-hz2.antispameurope.com (mx-relay97-hz2.antispameurope.com [94.100.136.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 793373CA491 for ; Thu, 5 Mar 2026 16:36:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=94.100.136.197 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772728567; cv=pass; b=nQYNHmzuCW8OMI1y5zF0o7YA8tLdgbQOTN2Rwsd/ktuKpNsx+mIpk2psP4adLQqmJGhHQccHokuA8/usWp9tOAQSzc5Amm/xCJX1AwW4Ct+tyKmzsJSuDPcoIdRQoABk0aMorsyOq9A83Aa6GI0zyhiXFbvJVXhTgrvmoL4jc3w= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772728567; c=relaxed/simple; bh=NvQErdnHtNFrGW72s5itTAzkfc4cQF7Kecy85Y6iySU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uRSw8DtbxqoCNHzTPL/rMGK3dt6gR95+TwIdZVAqe3YSwi5zPky5P/j+xJQFzJwdGqV0gugQ1mlYf130ewr39m7vCnRgxjS2bFt/mJxby4IPuZYUlO1YFIqW9CSTlaOhxpC2L4Ss+aRZ0Vww3ojo/wY+zMkw+9Dq0uoKNVQaOsE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=qtYZmwEg; arc=pass smtp.client-ip=94.100.136.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="qtYZmwEg" ARC-Authentication-Results: i=1; mx-gate97-hz2.hornetsecurity.com 1; spf=pass reason=mailfrom (ip=94.100.132.6, headerfrom=ew.tq-group.com) smtp.mailfrom=ew.tq-group.com smtp.helo=hmail-p-smtp01-out04-hz1.hornetsecurity.com; dmarc=pass header.from=ew.tq-group.com orig.disposition=pass ARC-Message-Signature: a=rsa-sha256; bh=boMpOpClER/Pmo4en2oqAZK91vRLE5sK8g1DMjatc7k=; c=relaxed/relaxed; d=hornetsecurity.com; h=from:to:date:subject:mime-version:; i=1; s=hse1; t=1772728516; b=HCbhQMl1tBT1iWrw1A/AN1UhcKOh3EeD+xwbj0AMB6K+38+B9R6rQNz1icQo+QX6Z8eCGYY6 fFE4QsxAI/yMmc90Nmju+xqRdA1H/bVnsyOexL9VRqF0fmVo15wJ0l5KDJNYxTpOVgQ/qz35emE B/nNf6xbcpsiyafTcM7s4G0zIVVccaYOz4xZFrFx4/4brHv1jl80vlofJqQKJo6x5lUtr2Nz4Fg PpoXEfgFGWwOgmvEYG0W+iSGMKz4tq09ap14X52xyxT9K21OMja4iP31T3exBsaXyX27MiIIJ4M Ar6yVivWQMDrQtrWZQ6TkV1LZs1MjJEx7rR6PG2zyhZtQ== ARC-Seal: a=rsa-sha256; cv=none; d=hornetsecurity.com; i=1; s=hse1; t=1772728516; b=Prlkhizzdn4zAyIsyCst3GG/WSxh75cWPLtZyL/8nZNY3HbIvcRSbOGxSV62THFbQ5JiUKWV XRSl3epJ1sPxanqp5ROzjgRL0g493497xNKSSM66zbCwe4aHau/Yv7K9a/SYMLohp82XVC3a3C4 TjiXt3fgFwzcBFkhxBa4/JHmgDYG5WJpvuGC1+4IaPX9dN96aKM1N2iJ5i/MrnUDHlKarH8x2CS jinBeddlV6DLl3JQGVW1lpkY4yF6Ly6omnOhhEq0ViGukRZ1t5MZ4L0Mb3L2n0IEN4FNyFHh47Z gYuiEqmMola3+H26174LtCtX6kMSwAOOwvHdPbQo6Fhzw== Received: from he-nlb01-hz1.hornetsecurity.com ([94.100.132.6]) by mx-relay97-hz2.antispameurope.com; Thu, 05 Mar 2026 17:35:16 +0100 Received: from steina-w.tq-net.de (host-82-135-125-110.customer.m-online.net [82.135.125.110]) (Authenticated sender: alexander.stein@ew.tq-group.com) by hmail-p-smtp01-out04-hz1.hornetsecurity.com (Postfix) with ESMTPSA id 61D7E2206EE; Thu, 5 Mar 2026 17:35:09 +0100 (CET) From: Alexander Stein To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba Cc: Alexander Stein , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] thermal/of: Add OF node address to output message Date: Thu, 5 Mar 2026 17:35:07 +0100 Message-ID: <20260305163508.2643106-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-cloud-security-sender:alexander.stein@ew.tq-group.com X-cloud-security-recipient:linux-kernel@vger.kernel.org X-cloud-security-crypt: load encryption module X-cloud-security-Mailarchiv: E-Mail archived for: alexander.stein@ew.tq-group.com X-cloud-security-Mailarchivtype:outbound X-cloud-security-Virusscan:CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mx-relay97-hz2.antispameurope.com with 4fRZrs5t6Qz1xmlX X-cloud-security-connect: he-nlb01-hz1.hornetsecurity.com[94.100.132.6], TLS=1, IP=94.100.132.6 X-cloud-security-Digest:96a02eb0533148890475f046e0dce904 X-cloud-security:scantime:1.933 DKIM-Signature: a=rsa-sha256; bh=boMpOpClER/Pmo4en2oqAZK91vRLE5sK8g1DMjatc7k=; c=relaxed/relaxed; d=ew.tq-group.com; h=content-type:mime-version:subject:from:to:message-id:date; s=hse1; t=1772728515; v=1; b=qtYZmwEgX/Pz5O9fzhioU7ajxCYtz0iEkKfyqlz2eLrPqFB2GjcncTlymx6UHJVJ3pYmVkjJ oLbueRaUTnXlpVEGAuY/tJFNPvAlcN+xgd3Tdx3mNrWEdM2VVBPGsGGLySFb76YeV8M/e22m/R0 vLyMGFDueTYK9PdMizHRRsn2diYcENq/F3AzYH+Vvm49c5EtDSLnKl9ML78Fu6PRY+bILgm/12P FgT8xWWDuPndcGUWPB6kStw6RuySpl+77u/Nqx+G71Ot5TLqYc3eEWa70HzLClA0grHwKD/ksT4 r21CvX7a+eUaO9jiJUOxKnF6mcKdAxwRpW/RNyaQLs0XA== Temperature sensors are supposed to have the DT node name temperature-sensors. Having multiple ones the node name alone isn't very helpful. Add the node address to make them more distinguishable. Signed-off-by: Alexander Stein --- Old error messages: thermal_sys: Failed to find thermal zone for temperature-sensor id=0 thermal_sys: Failed to find thermal zone for temperature-sensor id=0 New error messages: thermal_sys: Failed to find thermal zone for temperature-sensor@1c id=0 thermal_sys: Failed to find thermal zone for temperature-sensor@1b id=0 drivers/thermal/thermal_of.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index 6ebb83cb70b2f..99085c806a1f6 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -144,7 +144,7 @@ static struct device_node *of_thermal_zone_find(struct device_node *sensor, int count = of_count_phandle_with_args(child, "thermal-sensors", "#thermal-sensor-cells"); if (count <= 0) { - pr_err("%pOFn: missing thermal sensor\n", child); + pr_err("%pOFP: missing thermal sensor\n", child); return ERR_PTR(-EINVAL); } @@ -156,14 +156,14 @@ static struct device_node *of_thermal_zone_find(struct device_node *sensor, int "#thermal-sensor-cells", i, &sensor_specs); if (ret < 0) { - pr_err("%pOFn: Failed to read thermal-sensors cells: %d\n", child, ret); + pr_err("%pOFP: Failed to read thermal-sensors cells: %d\n", child, ret); return ERR_PTR(ret); } of_node_put(sensor_specs.np); if ((sensor == sensor_specs.np) && id == (sensor_specs.args_count ? sensor_specs.args[0] : 0)) { - pr_debug("sensor %pOFn id=%d belongs to %pOFn\n", sensor, id, child); + pr_debug("sensor %pOFP id=%d belongs to %pOFP\n", sensor, id, child); return no_free_ptr(child); } } @@ -180,7 +180,7 @@ static int thermal_of_monitor_init(struct device_node *np, int *delay, int *pdel if (ret == -EINVAL) { *pdelay = 0; } else if (ret < 0) { - pr_err("%pOFn: Couldn't get polling-delay-passive: %d\n", np, ret); + pr_err("%pOFP: Couldn't get polling-delay-passive: %d\n", np, ret); return ret; } @@ -188,7 +188,7 @@ static int thermal_of_monitor_init(struct device_node *np, int *delay, int *pdel if (ret == -EINVAL) { *delay = 0; } else if (ret < 0) { - pr_err("%pOFn: Couldn't get polling-delay: %d\n", np, ret); + pr_err("%pOFP: Couldn't get polling-delay: %d\n", np, ret); return ret; } @@ -380,23 +380,23 @@ static struct thermal_zone_device *thermal_of_zone_register(struct device_node * np = of_thermal_zone_find(sensor, id); if (IS_ERR(np)) { if (PTR_ERR(np) != -ENODEV) - pr_err("Failed to find thermal zone for %pOFn id=%d\n", sensor, id); + pr_err("Failed to find thermal zone for %pOFP id=%d\n", sensor, id); return ERR_CAST(np); } trips = thermal_of_trips_init(np, &ntrips); if (IS_ERR(trips)) { - pr_err("Failed to parse trip points for %pOFn id=%d\n", sensor, id); + pr_err("Failed to parse trip points for %pOFP id=%d\n", sensor, id); ret = PTR_ERR(trips); goto out_of_node_put; } if (!trips) - pr_info("No trip points found for %pOFn id=%d\n", sensor, id); + pr_info("No trip points found for %pOFP id=%d\n", sensor, id); ret = thermal_of_monitor_init(np, &delay, &pdelay); if (ret) { - pr_err("Failed to initialize monitoring delays from %pOFn\n", np); + pr_err("Failed to initialize monitoring delays from %pOFP\n", np); goto out_kfree_trips; } @@ -417,7 +417,7 @@ static struct thermal_zone_device *thermal_of_zone_register(struct device_node * pdelay, delay); if (IS_ERR(tz)) { ret = PTR_ERR(tz); - pr_err("Failed to register thermal zone %pOFn: %d\n", np, ret); + pr_err("Failed to register thermal zone %pOFP: %d\n", np, ret); goto out_kfree_trips; } -- 2.43.0