From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: Markus Schneider-Pargmann <msp@baylibre.com>,
Fabien Parent <fparent@baylibre.com>,
Amjad Ouled-Ameur <aouledameur@baylibre.com>,
Daniel Golle <daniel@makrotopia.org>,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
Alex Riabchenko <d3adme4t@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Matthias Brugger <matthias.bgg@gmail.com>
Subject: Re: Aw: regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks
Date: Tue, 12 Sep 2023 14:57:45 +0200 [thread overview]
Message-ID: <07a569b9-e691-64ea-dd65-3b49842af33d@linaro.org> (raw)
In-Reply-To: <trinity-f3e7d8e0-2e93-4e84-a489-3993c819d2c3-1693488871086@3c-app-gmx-bs12>
Hi Frank,
thanks for reporting and investigating the issue.
On 31/08/2023 15:34, Frank Wunderlich wrote:
> Hi,
>
> looked a bit deeper into it and it looks like i only need to add the fields in the mtk_thermal_data struct
>
> --- a/drivers/thermal/mediatek/auxadc_thermal.c
> +++ b/drivers/thermal/mediatek/auxadc_thermal.c
> @@ -690,6 +690,9 @@ static const struct mtk_thermal_data mt7986_thermal_data = {
> .adcpnp = mt7986_adcpnp,
> .sensor_mux_values = mt7986_mux_values,
> .version = MTK_THERMAL_V3,
> + .apmixed_buffer_ctl_reg = APMIXED_SYS_TS_CON1,
> + .apmixed_buffer_ctl_mask = GENMASK(31, 6) | BIT(3),
> + .apmixed_buffer_ctl_set = BIT(0),
> };
>
> in my quick test the temprature can be read again and i'm near room temperature...i though it was a bit higher before, but as far as i understand the code, the values were fixed before and only made it configurable.
>
> if someone can confirm that i'm right, i can send official patch.
At the first glance, it seems the proposed change is correct and could
be proposed as a hot fix.
However, the conditions with the version and the apmixed_buffer_ctl_reg
looks a bit fuzzy.
Markus, can you revisit this part of code and consolidate the
configurable approach ?
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
next prev parent reply other threads:[~2023-09-12 12:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-31 9:25 regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks Frank Wunderlich
2023-08-31 9:53 ` Bagas Sanjaya
2023-09-12 12:23 ` Linux regression tracking #update (Thorsten Leemhuis)
2023-11-01 11:03 ` Linux regression tracking #update (Thorsten Leemhuis)
2023-08-31 13:34 ` Aw: " Frank Wunderlich
2023-09-12 12:57 ` Daniel Lezcano [this message]
2023-09-12 13:46 ` Markus Schneider-Pargmann
2023-09-12 20:38 ` Frank Wunderlich
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=07a569b9-e691-64ea-dd65-3b49842af33d@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=aouledameur@baylibre.com \
--cc=d3adme4t@gmail.com \
--cc=daniel@makrotopia.org \
--cc=fparent@baylibre.com \
--cc=frank-w@public-files.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=msp@baylibre.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