From: Maximilian Luz <luzmaximilian@gmail.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Jean Delvare <jdelvare@suse.com>,
Hans de Goede <hdegoede@redhat.com>,
Ivor Wanders <ivor@iwanders.net>,
linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org
Subject: Re: [PATCH v2] hwmon: Add thermal sensor driver for Surface Aggregator Module
Date: Wed, 7 Aug 2024 22:11:30 +0200 [thread overview]
Message-ID: <b66f1fed-20a2-4de3-85c5-bf6fb90c2649@gmail.com> (raw)
In-Reply-To: <5208afb1-92dc-43d3-b6ed-36a2fdd40ec7@roeck-us.net>
On 8/7/24 9:50 PM, Guenter Roeck wrote:
> On 8/7/24 12:25, Maximilian Luz wrote:
>> On 8/7/24 2:32 AM, Guenter Roeck wrote:
>>> On 8/4/24 16:08, Maximilian Luz wrote:
>>
>> [...]
>>
>>>> diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
>>>> index b60fe2e58ad6..70c6385f0ed6 100644
>>>> --- a/drivers/hwmon/Kconfig
>>>> +++ b/drivers/hwmon/Kconfig
>>>> @@ -2080,6 +2080,16 @@ config SENSORS_SURFACE_FAN
>>>> Select M or Y here, if you want to be able to read the fan's speed.
>>>> +config SENSORS_SURFACE_TEMP
>>>> + tristate "Microsoft Surface Thermal Sensor Driver"
>>>> + depends on SURFACE_AGGREGATOR
>>>
>>> As the kernel test robot points out, this dependency is wrong.
>>> __ssam_device_driver_register() is only available
>>> if SURFACE_AGGREGATOR_BUS is enabled.
>>
>> Right, I should have spotted this before submission, sorry. This should
>> be
>>
>> depends on SURFACE_AGGREGATOR
>> depends on SURFACE_AGGREGATOR_BUS
>>
>
> SURFACE_AGGREGATOR_BUS already depends on SURFACE_AGGREGATOR, so the extra
> dependency is not needed.
Unfortunately, SURFACE_AGGREGATOR_BUS is a bool and SURFACE_AGGREGATOR
tri-state, and the inference of whether SURFACE_AGGREGATOR needs to be
built in or not breaks because of that. Meaning we could have something
like
SENSORS_SURFACE_TEMP=y (tri-state, module)
SURFACE_AGGREGATOR_BUS=y (bool, optional-code-flag)
SURFACE_AGGREGATOR=m (tri-state, module)
because SURFACE_AGGREGATOR_BUS is fine with either m or y. But in
reality, SENSORS_SURFACE_TEMP=y would require SURFACE_AGGREGATOR=y.
Maybe there's a better way to solve this? I guess it should be possible
to convert SURFACE_AGGREGATOR_BUS into a tri-state (even though it's
really just a flag to build a certain part of code into
SURFACE_AGGREGATOR).
I think at this point we could also consider removing that flag entirely
and just build the bus support in unconditionally... but that discussion
is outside of the scope here.
>> I'll fix that for v3 and likely re-spin this weekend. Anything else I
>> should address for that?
>>
>
> I didn't notice anything, but then I didn't try to build the code myself,
> or try to run checkpatch. My tools run checkpatch --strict, as necessary
> for hwmon submissions, so you might want to make sure that it passes.
Perfect, I already checked that. Thank you!
Best regards,
Max
next prev parent reply other threads:[~2024-08-07 20:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-04 23:08 [PATCH v2] hwmon: Add thermal sensor driver for Surface Aggregator Module Maximilian Luz
2024-08-06 19:41 ` kernel test robot
2024-08-07 0:32 ` Guenter Roeck
2024-08-07 19:25 ` Maximilian Luz
2024-08-07 19:50 ` Guenter Roeck
2024-08-07 20:11 ` Maximilian Luz [this message]
2024-08-07 20:37 ` Guenter Roeck
2024-08-10 1:19 ` Maximilian Luz
2024-08-09 23:35 ` Konrad Dybcio
2024-08-10 0:34 ` Ivor Wanders
2024-08-10 1:04 ` Maximilian Luz
2024-08-10 1:14 ` Konrad Dybcio
2024-08-19 10:26 ` Konrad Dybcio
2024-08-19 20:03 ` Maximilian Luz
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=b66f1fed-20a2-4de3-85c5-bf6fb90c2649@gmail.com \
--to=luzmaximilian@gmail.com \
--cc=hdegoede@redhat.com \
--cc=ivor@iwanders.net \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
/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