All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zev Weiss <zev@bewilderbeest.net>
To: Ban Feng <baneric926@gmail.com>
Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
	conor+dt@kernel.org, jdelvare@suse.com, corbet@lwn.net,
	openbmc@lists.ozlabs.org, linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org, DELPHINE_CHIU@wiwynn.com,
	naresh.solanki@9elements.com, billy_tsai@aspeedtech.com,
	kcfeng0@nuvoton.com, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, kwliu@nuvoton.com,
	linux@roeck-us.net
Subject: Re: [PATCH v4 3/3] hwmon: Driver for Nuvoton NCT7363Y
Date: Tue, 12 Mar 2024 16:18:22 -0700	[thread overview]
Message-ID: <cd63bec7-01c6-466e-b772-3a3d3d90a7d5@hatter.bewilderbeest.net> (raw)
In-Reply-To: <CALz278Zgfgob573vgWz4PgC7vb=i8xt3kC1hSjo_cQi00B0XAg@mail.gmail.com>

On Wed, Mar 06, 2024 at 11:35:31PM PST, Ban Feng wrote:
>Hi Zev,
>
>On Sat, Mar 2, 2024 at 4:19 PM Zev Weiss <zev@bewilderbeest.net> wrote:
>>
>> On Mon, Feb 26, 2024 at 04:56:06PM PST, baneric926@gmail.com wrote:
>> >From: Ban Feng <kcfeng0@nuvoton.com>
>> >
>> >NCT7363Y is an I2C based hardware monitoring chip from Nuvoton.
>> >
>> >Signed-off-by: Ban Feng <kcfeng0@nuvoton.com>
>> >---

<snip>

>> >+
>> >+static const struct of_device_id nct7363_of_match[] = {
>> >+      { .compatible = "nuvoton,nct7363" },
>>
>> As far as I can see from the code in this driver, it looks like this
>> driver should also be compatible with the nct7362; shall we add the ID
>> table entry for it now?  (Though I only have a datasheet for the
>> nct7362, not the nct7363, so I don't know exactly how they differ.)
>
>As far as I know, the difference between these two ICs is 0x2A~0x2C
>Fading LED for 7362, and 0x2A Watchdog Timer for 7363.
>In my v1 patch, I indeed add the nct7362 to the ID table, however,
>this makes it more complicated and our datasheet isn't public yet.
>I think maybe supporting more chips will be done in the future, but not now.
>

If the only differences are in features the driver doesn't utilize, I'm 
not clear on how it adds any complexity.  As far as I'm aware, neither 
datasheet is public (NCT7363 nor NCT7362), so if we're going to have a 
public driver for one, why not also do so for the other?  It's a single 
additional line -- and furthermore, having made that change and tested 
it out, I can report that the driver seems to work just fine on NCT7362 
hardware as well.


Zev


WARNING: multiple messages have this Message-ID (diff)
From: Zev Weiss <zev@bewilderbeest.net>
To: Ban Feng <baneric926@gmail.com>
Cc: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	corbet@lwn.net, linux-hwmon@vger.kernel.org,
	devicetree@vger.kernel.org, kcfeng0@nuvoton.com,
	kwliu@nuvoton.com, openbmc@lists.ozlabs.org,
	linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
	DELPHINE_CHIU@wiwynn.com, naresh.solanki@9elements.com,
	billy_tsai@aspeedtech.com
Subject: Re: [PATCH v4 3/3] hwmon: Driver for Nuvoton NCT7363Y
Date: Tue, 12 Mar 2024 16:18:22 -0700	[thread overview]
Message-ID: <cd63bec7-01c6-466e-b772-3a3d3d90a7d5@hatter.bewilderbeest.net> (raw)
In-Reply-To: <CALz278Zgfgob573vgWz4PgC7vb=i8xt3kC1hSjo_cQi00B0XAg@mail.gmail.com>

On Wed, Mar 06, 2024 at 11:35:31PM PST, Ban Feng wrote:
>Hi Zev,
>
>On Sat, Mar 2, 2024 at 4:19 PM Zev Weiss <zev@bewilderbeest.net> wrote:
>>
>> On Mon, Feb 26, 2024 at 04:56:06PM PST, baneric926@gmail.com wrote:
>> >From: Ban Feng <kcfeng0@nuvoton.com>
>> >
>> >NCT7363Y is an I2C based hardware monitoring chip from Nuvoton.
>> >
>> >Signed-off-by: Ban Feng <kcfeng0@nuvoton.com>
>> >---

<snip>

>> >+
>> >+static const struct of_device_id nct7363_of_match[] = {
>> >+      { .compatible = "nuvoton,nct7363" },
>>
>> As far as I can see from the code in this driver, it looks like this
>> driver should also be compatible with the nct7362; shall we add the ID
>> table entry for it now?  (Though I only have a datasheet for the
>> nct7362, not the nct7363, so I don't know exactly how they differ.)
>
>As far as I know, the difference between these two ICs is 0x2A~0x2C
>Fading LED for 7362, and 0x2A Watchdog Timer for 7363.
>In my v1 patch, I indeed add the nct7362 to the ID table, however,
>this makes it more complicated and our datasheet isn't public yet.
>I think maybe supporting more chips will be done in the future, but not now.
>

If the only differences are in features the driver doesn't utilize, I'm 
not clear on how it adds any complexity.  As far as I'm aware, neither 
datasheet is public (NCT7363 nor NCT7362), so if we're going to have a 
public driver for one, why not also do so for the other?  It's a single 
additional line -- and furthermore, having made that change and tested 
it out, I can report that the driver seems to work just fine on NCT7362 
hardware as well.


Zev


  reply	other threads:[~2024-03-12 23:19 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-27  0:56 [PATCH v4 0/3] hwmon: Driver for Nuvoton NCT7363Y baneric926
2024-02-27  0:56 ` baneric926
2024-02-27  0:56 ` [PATCH v4 1/3] dt-bindings: hwmon: fan: Add fan binding to schema baneric926
2024-02-27  0:56   ` baneric926
2024-03-05  0:22   ` Zev Weiss
2024-03-05  0:22     ` Zev Weiss
2024-03-05  0:41     ` Guenter Roeck
2024-03-05  0:41       ` Guenter Roeck
2024-03-05  0:49       ` Guenter Roeck
2024-03-05  0:49         ` Guenter Roeck
2024-03-07  7:41     ` Ban Feng
2024-03-07  7:41       ` Ban Feng
2024-03-07 18:53   ` Guenter Roeck
2024-03-07 18:53     ` Guenter Roeck
2024-03-18  0:58     ` Ban Feng
2024-03-18  0:58       ` Ban Feng
2024-02-27  0:56 ` [PATCH v4 2/3] dt-bindings: hwmon: Add NCT7363Y documentation baneric926
2024-02-27  0:56   ` baneric926
2024-02-28  7:30   ` Paul Menzel
2024-02-28  7:30     ` Paul Menzel
2024-03-06  7:56     ` Ban Feng
2024-03-06  7:56       ` Ban Feng
2024-02-27  0:56 ` [PATCH v4 3/3] hwmon: Driver for Nuvoton NCT7363Y baneric926
2024-02-27  0:56   ` baneric926
2024-02-28  7:57   ` Paul Menzel
2024-02-28  7:57     ` Paul Menzel
2024-02-28  9:03     ` Guenter Roeck
2024-02-28  9:03       ` Guenter Roeck
2024-02-28 11:03       ` Paul Menzel
2024-02-28 11:03         ` Paul Menzel
2024-02-28 16:03         ` Guenter Roeck
2024-02-28 16:03           ` Guenter Roeck
2024-02-28 16:25           ` Commit messages (was: [PATCH v4 3/3] hwmon: Driver for Nuvoton NCT7363Y) Paul Menzel
2024-02-28 16:25             ` Paul Menzel
2024-03-07  0:58             ` Ban Feng
2024-03-07  0:58               ` Ban Feng
2024-03-07  0:55     ` [PATCH v4 3/3] hwmon: Driver for Nuvoton NCT7363Y Ban Feng
2024-03-07  0:55       ` Ban Feng
2024-03-02  8:18   ` Zev Weiss
2024-03-02  8:18     ` Zev Weiss
2024-03-05  0:28     ` Zev Weiss
2024-03-05  0:28       ` Zev Weiss
2024-03-07  7:36       ` Ban Feng
2024-03-07  7:36         ` Ban Feng
2024-03-07  7:35     ` Ban Feng
2024-03-07  7:35       ` Ban Feng
2024-03-12 23:18       ` Zev Weiss [this message]
2024-03-12 23:18         ` Zev Weiss
2024-03-12 23:58         ` Guenter Roeck
2024-03-12 23:58           ` Guenter Roeck
2024-03-13  0:21           ` Zev Weiss
2024-03-13  0:21             ` Zev Weiss
2024-03-18  1:02             ` Ban Feng
2024-03-18  1:02               ` Ban Feng
2024-03-19  0:35               ` Zev Weiss
2024-03-19  0:35                 ` Zev Weiss

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=cd63bec7-01c6-466e-b772-3a3d3d90a7d5@hatter.bewilderbeest.net \
    --to=zev@bewilderbeest.net \
    --cc=DELPHINE_CHIU@wiwynn.com \
    --cc=baneric926@gmail.com \
    --cc=billy_tsai@aspeedtech.com \
    --cc=conor+dt@kernel.org \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=jdelvare@suse.com \
    --cc=kcfeng0@nuvoton.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=kwliu@nuvoton.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=naresh.solanki@9elements.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=robh+dt@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.