Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796078326; b=r0xXc1zm4MtUJqJFjckTBeHHKdICsfJk/LDawHPodn/vm14Flbf6yRz2DcS+Awsb9CTl 4gBBst+10NauUfCQjPkXhWnUUkEoAJevKr9hL3+xrXRc1oHZSLmd53G5uhhcqpwQO/rUv jEGw1RJG1+/A72hkbyDVGAi/QoM0cBLkszjOdhiTT00OhWBo1lw1DvTauqPBpOOorB1Vc V8CeDc2f7c++Gzp/VH+0tj/vOM4FTjVscwhP/l4aD1YIdIGcdrFO6Ub9W9mLsKHJK8Qor km4TG0ou0suY/SnT5jplTrxWarjL3O/vo0+xX8Ok6AN8koibNYGYuh5uC1dobhP1a5A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796078326; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=gnjSUt3MF0l06UXj27FZ6Pix1G12POOP6yr7we6LFnk=; b=F56gn5LHjRFF7gY2c5wUnm3Yjk0q6GCht+tS3SfiIaUNCQNJPzUpw3mBAg1fQVe6R+JM /x/IvzOVIltGJtn34VioThDfaDAaAhYvfB+B7P6VN7qZILw1Z1nepZRz5yQ1/TUpEARLi Pj8Lrrf5lZsOF2V+b20UZunUQizMMMak8fujq2I11Ioh4Isow+10n3Er9AN5AYYzlblau JbTPQhj2awo6eiwcv6Yours/9x7PywHfmJv3z16rF6mAUjRBg67CfmzUbJAy/kDzm2lVx G34fv7CwB3biPqYNN+Eif0oZodPgpJwDl1k27wQukhsv/qlfSsIerPXS621IqMOxuKQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AOiK+VUq; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7F35606A31A; Mon, 30 Nov 2026 22:38:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AOiK+VUq Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69AE01F00897; Mon, 30 Nov 2026 22:38:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796078325; bh=gnjSUt3MF0l06UXj27FZ6Pix1G12POOP6yr7we6LFnk=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=AOiK+VUqjHU56wvh93hGREssd9C/Lp55K9MjC3N7dkC97tDMyy8YTivpX9ROPpGav eTmLymEZ3rz9MlQMU5VknQTtGAxKbHu05YM8dqmYi8rQ43Geu/qoAqFTV/mnBqZ47I zNQAv+MOIt9Z6dxgFGOfGwW1RQZtKeDiODjrVD6HveUNNlvFA2h/D2MCUsHAH+o1Ya WAqf90uJweyJrAR6gFaP238LUHmqwn7GrnnhfsLV33dgC5I4FEgqAF2cD+jDvPNSZO NIknwc61HPdjjft1BqIGPfgEeI7TfLMB2LQt5/V50UQn+bzSStOBTZCotB1AUCn6Qn ZKoK73FPGk09g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/2] hwmon: ina2xx: add support for TI INA236 power monitor Reply-To: sashiko-reviews@lists.linux.dev To: "Florian Fainelli" Cc: =?utf-8?b?b3BlbiBsaXN0OkhBUkRXQVJFIE1PTklUT1JJTkc=?= , =?utf-8?b?b3BlbiBsaXN0Ok9QRU4gRklSTVdBUkUgQU5EIEZMQVRURU5FRCBERVZJQ0Ug?= =?utf-8?b?VFJFRSBCSU5ESU5HUw==?= , robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261130223310.2979752-3-florian.fainelli@broadcom.com> References: <20261130223310.2979752-1-florian.fainelli@broadcom.com> <20261130223310.2979752-3-florian.fainelli@broadcom.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 22:38:45 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] hwmon: ina2xx: redundant ina236 enum and duplicate ina2xx_config entry - [Low] hwmon: ina2xx: missing INA236 in Documentation/hwmon/ina2xx.rst and Kconfig -- commit 351424d3ad21da9a6be43b706bb618d413e818b0 Author: Yuval Raviv hwmon: ina2xx: add support for TI INA236 power monitor This commit adds support for the Texas Instruments INA236 power monitor to the ina2xx driver by adding an enum value, configuration table entry, and I2C and OF match table entries. > diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c > index 19b35f3bf3a3c..3cacf07f805d5 100644 > --- a/drivers/hwmon/ina2xx.c > +++ b/drivers/hwmon/ina2xx.c > @@ -126,6 +126,7 @@ enum ina2xx_ids { > ina226, > ina232, > ina234, > + ina236, > ina260, > sy24655 > }; > @@ -225,6 +226,21 @@ static const struct ina2xx_config ina2xx_config[] = =3D { > .current_shift =3D 0, > .has_update_interval =3D true, > }, > + [ina236] =3D { > + /* same electrical characteristics as ina232 */ > + .config_default =3D INA226_CONFIG_DEFAULT, > + .calibration_value =3D 2048, > + .shunt_div =3D 400, > + .shunt_voltage_shift =3D 0, > + .bus_voltage_shift =3D 0, > + .bus_voltage_lsb =3D 1600, > + .power_lsb_factor =3D 32, > + .has_alerts =3D true, > + .has_ishunt =3D false, > + .has_power_average =3D false, > + .current_shift =3D 0, > + .has_update_interval =3D true, > + }, > [ina260] =3D { > .config_default =3D INA260_CONFIG_DEFAULT, > .shunt_div =3D 400, [Severity: Low] Since INA236 uses the exact same configuration as INA232 and no code path in the driver distinguishes between them, could the ina236 entries in ina2xx_id[] and ina2xx_of_match[] point directly to ina232 instead of adding a separate enum value and duplicating ina2xx_config[ina232]? Other compatible chips in this driver (ina220 using ina219, and ina230/ina231 using ina226) share the existing enum ID directly. > @@ -1140,6 +1156,7 @@ static const struct i2c_device_id ina2xx_id[] =3D { > { .name =3D "ina231", .driver_data =3D ina226 }, > { .name =3D "ina232", .driver_data =3D ina232 }, > { .name =3D "ina234", .driver_data =3D ina234 }, > + { .name =3D "ina236", .driver_data =3D ina236 }, > { .name =3D "ina260", .driver_data =3D ina260 }, > { .name =3D "sy24655", .driver_data =3D sy24655 }, > { } [Severity: Low] Should Documentation/hwmon/ina2xx.rst and the SENSORS_INA2XX help text in drivers/hwmon/Kconfig also be updated to list INA236 among the supported chips, per Documentation/hwmon/submitting-patches.rst? --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130223310.2979= 752-1-florian.fainelli@broadcom.com?part=3D2