From: Guenter Roeck <linux@roeck-us.net>
To: Jonathan Cameron <jic23@kernel.org>, victor.duicu@microchip.com
Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
marius.cristea@microchip.com, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
Jean Delvare <jdelvare@suse.com>
Subject: Re: [PATCH v6 0/2] add support for MCP998X
Date: Sat, 4 Oct 2025 07:29:05 -0700 [thread overview]
Message-ID: <44a1a1c4-813d-4540-a73e-b136032e79a2@roeck-us.net> (raw)
In-Reply-To: <20251004151138.77886486@jic23-huawei>
On 10/4/25 07:11, Jonathan Cameron wrote:
> On Tue, 30 Sep 2025 16:31:29 +0300
> <victor.duicu@microchip.com> wrote:
>
>> From: Victor Duicu <victor.duicu@microchip.com>
>>
>> Add support for Microchip MCP998X/33 and MCP998XD/33D Multichannel
>> Automotive Temperature Monitor Family.
>>
>> The chips in the family have different numbers of external channels,
>> ranging from 1 (MCP9982) to 4 channels (MCP9985). Reading diodes in
>> anti-parallel connection is supported by MCP9984/85/33 and
>> MCP9984D/85D/33D. Dedicated hardware shutdown circuitry is present
>> only in MCP998XD and MCP9933D.
>>
>> This driver was submitted in the IIO subsystem because the chips could use
>> interrupts to handle threshold events.
>
> This reasoning isn't particularly strong as hwmon has support for events etc.
> This device is also 'slow' so I'm not immediately seeing a strong reason why
> IIO is the right choice.
>
Correct. hwmon supports both events and udev events.
> After some recent feedback from Guenter I'm keen to get a clearer set
> of reasoning when I take a temperature monitoring chip into IIO.
>
> Also asking that we +CC Guenter for his input on devices where the decision
> isn't clear cut.
IMO this _is_ (or should be) clear cut: This is a hardware monitoring device.
It should be a hardware monitoring driver. FWIW, writing one should be
straightforward (including interrupt/event support).
Guenter
prev parent reply other threads:[~2025-10-04 14:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-30 13:31 victor.duicu
2025-09-30 13:31 ` [PATCH v6 1/2] dt-bindings: iio: temperature: " victor.duicu
2025-09-30 13:31 ` [PATCH v6 2/2] " victor.duicu
2025-10-02 0:13 ` kernel test robot
2025-10-04 14:17 ` Jonathan Cameron
2025-10-04 14:11 ` [PATCH v6 0/2] " Jonathan Cameron
2025-10-04 14:29 ` 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=44a1a1c4-813d-4540-a73e-b136032e79a2@roeck-us.net \
--to=linux@roeck-us.net \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jdelvare@suse.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marius.cristea@microchip.com \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
--cc=victor.duicu@microchip.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
all inboxes | Powered by JetHome®