From: "Niklas Söderlund" <niklas.soderlund@ragnatech.se>
To: Yaohan Li <shunsheng1218@gmail.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
Daniel Lezcano <daniel.lezcano@kernel.org>,
Zhang Rui <rui.zhang@intel.com>,
Lukasz Luba <lukasz.luba@arm.com>,
Magnus Damm <magnus.damm@gmail.com>,
linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] thermal: rcar_gen3: release the IRQ handlers before the zones are freed
Date: Tue, 24 Nov 2026 07:40:40 +0100 [thread overview]
Message-ID: <20261124064040.GF3898744@ragnatech.se> (raw)
In-Reply-To: <179548695107.1834709.12105107414276177799@gmail.com>
Hi Yaohan,
On 2026-11-24 10:22:31 +0800, Yaohan Li wrote:
> Hi Niklas,
>
> Yes, I agree. I have reworked the probe to look up the IRQs first,
> initialize the sensors with IRQEN cleared, and request the handlers after
> all the thermal zones have been registered. A devres action disables the
> interrupt sources before the handlers are freed, so ->remove() is no
> longer needed.
>
> Since the thermal core copies the zone operations during registration,
> set_trips() still has to be selected beforehand.
>
> The current version retains the no-IRQ fallback for -ENXIO and propagates
> -EPROBE_DEFER and other lookup errors. However, if IRQ lookup succeeds
> but requesting a handler fails, probe now fails instead of falling back
> to polling.
It needs to revert back to polling. IIRC the interrupts are used to get
quick notification of a trip point but if interrupts are not
enabled/supported it can still find it using the polling method.
>
> Would you be happy with that change, or would you prefer to retain the
> original fallback on IRQ request failure as well?
A bug fix should not alter behavior, other then fixing the bug ;-)
>
> The reworked patch builds on arm64, but I have not tested it on hardware.
>
> Thanks,
> Yaohan
--
Kind Regards,
Niklas Söderlund
prev parent reply other threads:[~2026-11-24 6:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 14:53 [PATCH] thermal: rcar_gen3: quiesce the interrupt source before releasing it Yaohan Li
2026-11-18 9:31 ` Niklas Söderlund
2026-11-19 2:29 ` [PATCH v2] thermal: rcar_gen3: release the IRQ handlers before the zones are freed Yaohan Li
2026-11-22 14:48 ` Niklas Söderlund
2026-11-23 2:21 ` Yaohan Li
2026-11-23 6:47 ` Niklas Söderlund
2026-11-24 2:22 ` Yaohan Li
2026-11-24 6:40 ` Niklas Söderlund [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124064040.GF3898744@ragnatech.se \
--to=niklas.soderlund@ragnatech.se \
--cc=daniel.lezcano@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=magnus.damm@gmail.com \
--cc=rafael@kernel.org \
--cc=rui.zhang@intel.com \
--cc=shunsheng1218@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®