From: "Nuno Sá" <noname.nuno@gmail.com>
To: Guenter Roeck <linux@roeck-us.net>,
nuno.sa@analog.com, linux-hwmon@vger.kernel.org,
linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
linux-doc@vger.kernel.org
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jean Delvare <jdelvare@suse.com>,
Jonathan Corbet <corbet@lwn.net>,
Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>
Subject: Re: [PATCH v4 2/3] hwmon: ltc4283: Add support for the LTC4283 Swap Controller
Date: Fri, 12 Dec 2025 16:55:48 +0000 [thread overview]
Message-ID: <f530e0c818048bb3ce5c3505a35c1ef99acdf9f1.camel@gmail.com> (raw)
In-Reply-To: <ee7b7dcf-7756-4ffc-8a2c-e2cf33aac725@roeck-us.net>
On Fri, 2025-12-12 at 08:46 -0800, Guenter Roeck wrote:
> On 12/12/25 08:34, Nuno Sá wrote:
> > On Sat, 2025-12-06 at 10:40 -0800, Guenter Roeck wrote:
> > > On 12/4/25 08:15, Nuno Sá via B4 Relay wrote:
> > > > From: Nuno Sá <nuno.sa@analog.com>
> > > >
> > > > Support the LTC4283 How Swap Controller. The device features programmable
> > > > current limit with foldback and independently adjustable inrush current to
> > > > optimize the MOSFET safe operating area (SOA). The SOA timer limits MOSFET
> > > > temperature rise for reliable protection against overstresses.
> > > >
> > > > An I2C interface and onboard ADC allow monitoring of board current,
> > > > voltage, power, energy, and fault status.
> > > >
> > > > Signed-off-by: Nuno Sá <nuno.sa@analog.com>
> > >
> > > I finally found the time to write module test code for the driver.
> > >
> >
> > Thanks!
> >
> > > Some early feedback:
> > >
> > > - The driver must work with non-devicetree systems and without device
> > > property support. Select defaults where necessary.
> >
> > I'll double check that... But one thing that already comes to mind is rsense? Rsense
>
> Yes.
>
> > is the main design choice for a thing like this. Not sure we can decide on a meaningful
> > default for it? I believe we have the same situation for ltc4282.c
> >
>
> Agreed, but that doesn't make it better (and I don't have a unit test for that chip).
> Default would be your call. I usually go for 1 mOhm.
>
> If you have access to it, can you send me a register dump for LTC4282 ?
I'm doing home office these days and I'm not sure I brought that chip with me. If I have
it, I'll do it!
>
> > > - Attributes marked as readable in the is_visible function must be readable.
> > > It is not acceptable to return -EOPNOTSUPP. That applies to all
> > > reset_history attributes and maybe to others.
> >
> > Hmm that's a mistake. They should be WO and I have the same bug in ltc4282 so I need to
> > send a patch.
> >
>
> ... which helps explain why I want to be able to run unit tests (which requires defaults).
>
Makes sense. But from a dt bindings point of view, I assume we should still keep it as a
mandatory property?
- Nuno Sá
next prev parent reply other threads:[~2025-12-12 16:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-04 16:15 [PATCH v4 0/3] hwmon: Add support for the LTC4283 Hot Swap Controller Nuno Sá via B4 Relay
2025-12-04 16:15 ` [PATCH v4 1/3] dt-bindings: hwmon: Document the LTC4283 " Nuno Sá via B4 Relay
2025-12-04 16:15 ` [PATCH v4 2/3] hwmon: ltc4283: Add support for " Nuno Sá via B4 Relay
2025-12-06 18:40 ` Guenter Roeck
2025-12-12 16:34 ` Nuno Sá
2025-12-12 16:46 ` Guenter Roeck
2025-12-12 16:55 ` Nuno Sá [this message]
2025-12-12 17:21 ` Guenter Roeck
2025-12-12 17:31 ` Guenter Roeck
2025-12-11 17:56 ` Guenter Roeck
2025-12-12 16:50 ` Nuno Sá
2025-12-12 17:07 ` Guenter Roeck
2025-12-15 8:20 ` Tomas Melin
2025-12-15 14:04 ` Guenter Roeck
2025-12-04 16:15 ` [PATCH v4 3/3] gpio: gpio-ltc4283: " Nuno Sá via B4 Relay
2025-12-10 23:46 ` Linus Walleij
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=f530e0c818048bb3ce5c3505a35c1ef99acdf9f1.camel@gmail.com \
--to=noname.nuno@gmail.com \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=krzk+dt@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=nuno.sa@analog.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;
as well as URLs for NNTP newsgroup(s).