Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Tzung-Bi Shih <tzungbi@kernel.org>
Cc: Hardware Monitoring <linux-hwmon@vger.kernel.org>
Subject: Re: [PATCH] hwmon: Remove obsolete adm1021 and max6642 drivers
Date: Sun, 14 Jul 2024 05:38:43 -0700	[thread overview]
Message-ID: <3a959b04-7ffc-4e6a-a79d-e21742050167@roeck-us.net> (raw)
In-Reply-To: <ZpN47C2Zey-eX1o6@tzungbi-laptop>

On 7/14/24 00:06, Tzung-Bi Shih wrote:
> On Sat, Jul 13, 2024 at 11:53:00AM -0700, Guenter Roeck wrote:
>> On 7/13/24 08:22, Tzung-Bi Shih wrote:
>>> On Fri, Jul 12, 2024 at 10:35:48AM -0700, Guenter Roeck wrote:
>>>> diff --git a/drivers/hwmon/adm1021.c b/drivers/hwmon/adm1021.c
>>> [...]
>>>> -static const struct i2c_device_id adm1021_id[] = {
>>>> -	{ "adm1021", adm1021 },
>>>> -	{ "adm1023", adm1023 },
>>>> -	{ "max1617", max1617 },
>>>> -	{ "max1617a", max1617a },
>>>
>>> The device ID "max1617a" only in Documentation/hwmon/lm90.rst but not in
>>> drivers/hwmon/lm90.c which results in max1617a is no longer supported after
>>> applying the patch.
>>>
>>
>> Thanks for noticing. It is an oversight, really. The chip is the same.
>> max1617a is even mentioned in the lm90 documentation.
>> The chip is detected and supported as "max1617" in the lm90 driver.
>> Here are the notes from that driver.
>>
>>   * Note: Multiple chips with different markings labeled as
>>   * "MAX1617" (no "A") were observed to report manufacturer ID
>>   * 0x4d and device ID 0x01. It is unknown if other variants of
>>   * MAX1617/MAX617A with different behavior exist. The detection
>>   * code below works for those chips.
> 
> Ack.
> 
> Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
> 
>> Either case, all configurations enabling the adm1021 driver also enable the
>> lm90 driver, and that in turn prevents the adm1021 driver from being built.
>> Effectively that means that the adm1021 driver hasn't been built for a long
>> time.
> 
> Curious about how this happens: is there a way for telling build system that
> we prefer lm90 to adm1021?
> 

This was

config SENSORS_ADM1021
         tristate "Analog Devices ADM1021 and compatibles"
         depends on I2C
         depends on SENSORS_LM90=n
         ^^^^^^^^^^^^^^^^^^^^^^^^^

Thanks,
Guenter


      reply	other threads:[~2024-07-14 12:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-12 17:35 [PATCH] hwmon: Remove obsolete adm1021 and max6642 drivers Guenter Roeck
2024-07-13 15:22 ` Tzung-Bi Shih
2024-07-13 18:53   ` Guenter Roeck
2024-07-14  7:06     ` Tzung-Bi Shih
2024-07-14 12:38       ` Guenter Roeck [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=3a959b04-7ffc-4e6a-a79d-e21742050167@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=tzungbi@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