Re: [PATCH v2] thermal: tegra-bpmp: Handle offline zones

From: Mikko Perttunen
Date: Fri Mar 31 2023 - 03:13:04 EST


On 3/31/23 00:14, Daniel Lezcano wrote:
On 30/03/2023 11:49, Mikko Perttunen wrote:
From: Mikko Perttunen <mperttunen@xxxxxxxxxx>

Thermal zones located in power domains may not be accessible when
the domain is powergated. In this situation, reading the temperature
will return -BPMP_EFAULT. When evaluating trips, BPMP will internally
use -256C as the temperature for offline zones.

For smooth operation, for offline zones, return -EAGAIN when reading
the temperature and allow registration of zones even if they are
offline during probe.

Signed-off-by: Mikko Perttunen <mperttunen@xxxxxxxxxx>

Applied, thanks


Thank you!
Mikko