Re: [PATCH v4 0/2] hwmon: pmbus: Sony APS-379
From: Chris Packham
Date: Thu Apr 09 2026 - 17:09:00 EST
On 02/04/2026 23:38, Guenter Roeck wrote:
> On 4/1/26 19:40, Chris Packham wrote:
>> This series add support for the PMBus hwmon on the Sony
>> APS-379 power supply module. There's some deviations from
>> the PMBus specification that need to be dealt with.
>>
>> Chris Packham (2):
>> dt-bindings: trivial-devices: Add sony,aps-379
>> hwmon: pmbus: Add support for Sony APS-379
>>
>> .../devicetree/bindings/trivial-devices.yaml | 2 +
>> Documentation/hwmon/aps-379.rst | 58 ++++++
>> Documentation/hwmon/index.rst | 1 +
>> drivers/hwmon/pmbus/Kconfig | 6 +
>> drivers/hwmon/pmbus/Makefile | 1 +
>> drivers/hwmon/pmbus/aps-379.c | 178 ++++++++++++++++++
>> 6 files changed, 246 insertions(+)
>> create mode 100644 Documentation/hwmon/aps-379.rst
>> create mode 100644 drivers/hwmon/pmbus/aps-379.c
>>
>
> Sashiko still doesn't like it.
>
> https://sashiko.dev/#/patchset/20260402024101.4136697-1-chris.packham%40alliedtelesis.co.nz
>
Just out if interest is this something I should be looking to run before
submitting? I was put off by the low quality results (and dubious
license) of some of the earlier AI code assistants so I tend to avoid
them. Time to revisit perhaps.
>
> - Yes, "extracted while probing" is no longer accurate.
> Maybe add a comment explaining that the exponent is constant.
> Maybe even use a define ? That would make struct aps_379_data
> unnecessary.
I kept it for two reasons. 1) the mp5990.c I copied it from had it. 2)
it leaves the door open for having something that uses a different
exponent (possibly adjusted at run time). It's not really needed so I'm
happy to replace it with a define.
> - Rejecting virtual registers: Why indeed ? Is there a reason ?
Copy and paste strikes again. I should probably remove the same thing
from the bpa-rs600.c (I'll need to find one around here).
>
> Thanks,
> Guenter
>