From: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: sre@kernel.org, hansg@kernel.org, ilpo.jarvinen@linux.intel.com,
linux@roeck-us.net, andersson@kernel.org, konradybcio@kernel.org,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
bryan.odonoghue@linaro.org, platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
neil.armstrong@linaro.org, gaurav.kohli@oss.qualcomm.com,
manaf.pallikunhi@oss.qualcomm.com,
priyansh.jain@oss.qualcomm.com
Subject: Re: [PATCH v6 2/3] platform: arm64: lenovo-thinkpad-t14s-ec: Add hwmon support for temperatures
Date: Wed, 8 Jul 2026 10:38:49 +0200 [thread overview]
Message-ID: <ac9c6ace-31f1-4bd5-9d81-ec850179e85b@oss.qualcomm.com> (raw)
In-Reply-To: <c2e5e168-bc94-4b17-87e6-8974bb83be3e@kernel.org>
Le 08/07/2026 à 10:24, Krzysztof Kozlowski a écrit :
> On 08/07/2026 09:31, Daniel Lezcano wrote:
>> On 7/8/26 08:30, Krzysztof Kozlowski wrote:
>>> On Tue, Jul 07, 2026 at 09:22:27PM +0200, Daniel Lezcano wrote:
>>>> +static const struct hwmon_ops t14s_ec_hwmon_ops = {
>>>> + .is_visible = t14s_ec_hwmon_is_visible,
>>>> + .read = t14s_ec_hwmon_read,
>>>> + .read_string = t14s_ec_hwmon_read_string,
>>>> +};
>>>> +
>>>> +static const struct hwmon_channel_info *t14s_ec_hwmon_info[] = {
>>>> + HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ),
>>>> + HWMON_CHANNEL_INFO(temp,
>>>> + HWMON_T_INPUT | HWMON_T_LABEL,
>>>> + HWMON_T_INPUT | HWMON_T_LABEL,
>>>> + HWMON_T_INPUT | HWMON_T_LABEL,
>>>> + HWMON_T_INPUT | HWMON_T_LABEL,
>>>> + HWMON_T_INPUT | HWMON_T_LABEL,
>>>> + HWMON_T_INPUT | HWMON_T_LABEL),
>>>> + NULL
>>>> +};
>>>> +
>>>> +static const struct hwmon_chip_info t14s_ec_chip_info = {
>>>> + .ops = &t14s_ec_hwmon_ops,
>>>> + .info = t14s_ec_hwmon_info,
>>>> +};
>>>> +
>>>> +static int t14s_ec_hwmon_probe(struct t14s_ec *ec)
>>>> +{
>>>> + struct device *dev;
>>>> + struct t14s_ec_hwmon_sys_thermx sys_thermx[] = {
>>>> + { .label = "soc", .reg = T14S_EC_SYS_THERM0 },
>>>> + { .label = "keyboard", .reg = T14S_EC_SYS_THERM1 },
>>>> + { .label = "base", .reg = T14S_EC_SYS_THERM2 },
>>>> + { .label = "charging", .reg = T14S_EC_SYS_THERM3 },
>>>> + { .label = "qtm", .reg = T14S_EC_SYS_THERM6 },
>>>> + { .label = "ssd", .reg = T14S_EC_SYS_THERM7 },
>>>> + };
>>>> +
>>>> + ec->ec_hwmon.sys_thermx = devm_kmemdup_array(ec->dev, sys_thermx,
>>>> + ARRAY_SIZE(sys_thermx),
>>>> + sizeof(sys_thermx[0]), GFP_KERNEL);
>>>> + if (!ec->ec_hwmon.sys_thermx)
>>>> + return -ENOMEM;
>>>> +
>>>> + dev = devm_hwmon_device_register_with_info(ec->dev, "t14s_ec", ec,
>>>> + &t14s_ec_chip_info, NULL);
>>>
>>> Last time I commented this looks like actual ABI break. You did not respond to
>>> that, so I assume my finding was right, thus:
>>> 1. binding is not correct (although driver should be fixed, not binding)
>>> 2. the code still breaks users
>>
>> Sorry I misunderstood it was a question expecting an answer but an
>> affirmation.
>>
>> By ABI break do you mean:
>
> Existing ABI contract is changed in an incompatible way, which has
> observable effects as below:
>>
>> * new driver with old DT will fail ?
>
> ^^^ this one.
When we are incrementally adding features to a platform and like here
reverse engineering the device protocol of the EC. It is difficult to
give a complete bindings as we are discovering things little by little.
How to prevent handling all versions in the code when providing
iterative completion in the bindings ?
Is it possible to have something like sysfs?
Documentation/ABI/[testing|stable|removed|obsolete]
but for DT bindings ?
next prev parent reply other threads:[~2026-07-08 8:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 19:22 [PATCH v6 0/3] Lenovo ThinkPad T14s EC thermal monitoring and thermal zone integration Daniel Lezcano
2026-07-07 19:22 ` [PATCH v6 1/3] dt-bindings: embedded-controller: Add Lenovo ThinkPad T14s thermal sensor provider support Daniel Lezcano
2026-07-07 19:30 ` sashiko-bot
2026-07-07 21:34 ` Daniel Lezcano
2026-07-08 6:31 ` Krzysztof Kozlowski
2026-07-07 19:22 ` [PATCH v6 2/3] platform: arm64: lenovo-thinkpad-t14s-ec: Add hwmon support for temperatures Daniel Lezcano
2026-07-07 19:28 ` sashiko-bot
2026-07-08 6:30 ` Krzysztof Kozlowski
2026-07-08 7:31 ` Daniel Lezcano
2026-07-08 8:24 ` Krzysztof Kozlowski
2026-07-08 8:38 ` Daniel Lezcano [this message]
2026-07-08 11:48 ` Dmitry Baryshkov
2026-07-07 19:22 ` [PATCH v6 3/3] arm64: dts: qcom: x1e78100-t14s: Add thermal zones for keyboard skin and charging sensors Daniel Lezcano
2026-07-07 19:30 ` sashiko-bot
2026-07-08 12:03 ` [PATCH v6 0/3] Lenovo ThinkPad T14s EC thermal monitoring and thermal zone integration Stephan Gerhold
2026-07-08 13:16 ` Daniel Lezcano
2026-07-08 13:39 ` Stephan Gerhold
2026-07-08 14:09 ` Daniel Lezcano
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=ac9c6ace-31f1-4bd5-9d81-ec850179e85b@oss.qualcomm.com \
--to=daniel.lezcano@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gaurav.kohli@oss.qualcomm.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=manaf.pallikunhi@oss.qualcomm.com \
--cc=neil.armstrong@linaro.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=priyansh.jain@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=sre@kernel.org \
/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