From: Guenter Roeck <linux@roeck-us.net>
To: Delphine CC Chiu <Delphine_CC_Chiu@Wiwynn.com>,
patrick@stwcx.xyz, Jean Delvare <jdelvare@suse.com>,
Jonathan Corbet <corbet@lwn.net>
Cc: Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-i2c@vger.kernel.org, linux-hwmon@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-doc@vger.kernel.org
Subject: Re: [PATCH v4 2/2] hwmon: pmbus: Add ltc4286 driver
Date: Thu, 9 Nov 2023 11:50:19 -0800 [thread overview]
Message-ID: <1fcf588d-ea37-4f86-a920-4da21302192c@roeck-us.net> (raw)
In-Reply-To: <065e97b5-23ce-45f3-95ec-40e798c8a22e@roeck-us.net>
On 11/9/23 09:27, Guenter Roeck wrote:
> On 11/8/23 17:49, Delphine CC Chiu wrote:
>> + info->m[PSC_POWER] = temp_setting;
>> + } else {
>> + info->m[PSC_POWER] = rsense;
>
> I told you before, the default range needs to be set. The range may have been
> changed by the BIOS/ROMMON, or someone could have changed it manually with
> i2cset or some other application, or some other operating system was loaded
> earlier which did its own setting.
>
> I do understand by now that you don't want to do that, but I won't accept
> the driver without it, sorry.
>
As a follow-up on this, it turns out that LTC4287 supports an external EEPROM to
store its configuration as well as "STORE_USER_ALL" and "RESTORE_USER_ALL"
PMBus commands. It is therefore very well possible and even likely that the
voltage range (together with other configurable parameters) was set during
system production.
With that in mind, it seems to me that not only the default (property not present)
case has to be handled, but that a boolean property to reflect the voltage range
is insufficient. I think what is needed instead is a property which specifies
the requested range and which, if not present, explicitly means "use whatever
is currently programmed into the chip".
Thanks,
Guenter
next prev parent reply other threads:[~2023-11-09 19:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-09 1:49 [PATCH v4 0/2] LTC4286 and LTC4287 driver support Delphine CC Chiu
2023-11-09 1:49 ` [PATCH v4 1/2] dt-bindings: hwmon: Add lltc ltc4286 driver bindings Delphine CC Chiu
2023-11-09 17:09 ` Conor Dooley
2023-11-15 8:38 ` Delphine_CC_Chiu/WYHQ/Wiwynn
2023-11-15 12:17 ` Krzysztof Kozlowski
2023-11-21 2:27 ` Delphine_CC_Chiu/WYHQ/Wiwynn
2023-11-09 1:49 ` [PATCH v4 2/2] hwmon: pmbus: Add ltc4286 driver Delphine CC Chiu
2023-11-09 17:27 ` Guenter Roeck
2023-11-09 19:50 ` Guenter Roeck [this message]
2023-11-15 8:46 ` Delphine_CC_Chiu/WYHQ/Wiwynn
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=1fcf588d-ea37-4f86-a920-4da21302192c@roeck-us.net \
--to=linux@roeck-us.net \
--cc=Delphine_CC_Chiu@Wiwynn.com \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patrick@stwcx.xyz \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox