mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v5 0/8] hwmon: (ina3221) Various improvement and add support for SQ52210
@ 2026-01-19 12:14 Wenliang Yan
  2026-01-19 12:14 ` [PATCH v5 1/8] dt-bindings: hwmon: ti,ina3221: Add SQ52210 Wenliang Yan
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Wenliang Yan @ 2026-01-19 12:14 UTC (permalink / raw)
  To: linux, Jean Delvare, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Wenliang Yan, Jonathan Corbet, linux-hwmon, devicetree, linux-kernel

Make modifications according to the guidance provided in the reply.

1.Modify the description for power[123]_input(PATCH 5).

2.Re-annotate the significance of the limit value calculation
and the use of register masks in the sq52210_alert_limit_write.
Modify the calculation process to resolve arithmetic overflow issues.
The limit values SOL, BOL, and BUL are all stored using the upper
13 bits of the register, so shifting is required. In contrast,
the POL value is configured by setting the lower three bits
to 0 directly(PATCH 6).

3.Resolve arithmetic overflow issues in the ina3221_read_power(PATCH 7).

4.Resolve arithmetic overflow issues in the ina3221_read_curr,
and validate channel indices in ina3221_write_in(PATCH 8).


---
v4: https://lore.kernel.org/linux-hwmon/20260114081741.111340-1-wenliang202407@163.com/
v3: https://lore.kernel.org/linux-hwmon/20251120081921.39412-1-wenliang202407@163.com/
v2: https://lore.kernel.org/linux-hwmon/20251118125148.95603-1-wenliang202407@163.com/
v1: https://lore.kernel.org/linux-hwmon/20251111080546.32421-1-wenliang202407@163.com/

Wenliang Yan (8):
  dt-bindings: hwmon: ti,ina3221: Add SQ52210
  hwmon: (ina3221) Add support for SQ52210
  hwmon: (ina3221) Pre-calculate current and power LSB
  hwmon: (ina3221) Support alert configuration
  hwmon: (ina3221) Introduce power attribute and alert characteristics
  hwmon: (ina3221) Support for writing alert limit values and modify the
    'ina3221_read_value' function
  hwmon: (ina3221) Support write/read functions for 'power' attribute
  hwmon: (ina3221) Modify write/read functions for 'in' and 'curr'
    attribute

 .../devicetree/bindings/hwmon/ti,ina3221.yaml |  15 +-
 Documentation/hwmon/ina3221.rst               |  24 +
 drivers/hwmon/ina3221.c                       | 545 +++++++++++++++++-
 3 files changed, 570 insertions(+), 14 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-01-28 17:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-19 12:14 [PATCH v5 0/8] hwmon: (ina3221) Various improvement and add support for SQ52210 Wenliang Yan
2026-01-19 12:14 ` [PATCH v5 1/8] dt-bindings: hwmon: ti,ina3221: Add SQ52210 Wenliang Yan
2026-01-19 12:14 ` [PATCH v5 2/8] hwmon: (ina3221) Add support for SQ52210 Wenliang Yan
2026-01-19 12:14 ` [PATCH v5 3/8] hwmon: (ina3221) Pre-calculate current and power LSB Wenliang Yan
2026-01-19 12:14 ` [PATCH v5 4/8] hwmon: (ina3221) Support alert configuration Wenliang Yan
2026-01-19 12:14 ` [PATCH v5 5/8] hwmon: (ina3221) Introduce power attribute and alert characteristics Wenliang Yan
2026-01-19 12:14 ` [PATCH v5 6/8] hwmon: (ina3221) Support for writing alert limit values and modify the 'ina3221_read_value' function Wenliang Yan
2026-01-19 12:14 ` [PATCH v5 7/8] hwmon: (ina3221) Support write/read functions for 'power' attribute Wenliang Yan
2026-01-19 12:14 ` [PATCH v5 8/8] hwmon: (ina3221) Modify write/read functions for 'in' and 'curr' attribute Wenliang Yan
2026-01-27 18:07 ` [PATCH v5 0/8] hwmon: (ina3221) Various improvement and add support for SQ52210 Guenter Roeck
2026-01-28 17:41   ` Guenter Roeck

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®