[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260119121446.17469-1-wenliang202407@163.com>
Date: Mon, 19 Jan 2026 07:14:38 -0500
From: Wenliang Yan <wenliang202407@....com>
To: linux@...ck-us.net,
Jean Delvare <jdelvare@...e.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: Wenliang Yan <wenliang202407@....com>,
Jonathan Corbet <corbet@....net>,
linux-hwmon@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v5 0/8] hwmon: (ina3221) Various improvement and add support for SQ52210
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
Powered by blists - more mailing lists