From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796307069; b=H4qoruMFeP9urGx4BuaYxdrWbJNVbePDrDPDjtWzblmr3nl+I1/Mqx7POqGsW/YpBiim sku02C6OSjnmhUHyn6LvQCWDIkoUYw6bCdPPNyeza/YX4jzOEcNRiMxZc3JzQ8l6f/RKz 3H9YgqfedrzTGgNT+ZW8VeUhS3j0H8pxq1xmsqopiTkqseMkhq8cXj7ewn5MDwhIvcA6W FvugjuV4NcpTy84c8RpALICxpHqnNaUq+RAHPrGR8TqBlnUxFVLOQ9H8RpdCyBD8Zza14 D/mU06YvUpQ0iBddNwezBNA0h1PhVPPty6qxyFqqPaUmHjP1foeEjXP2pVr5eIqWbcg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796307069; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=sze9lnZS4BoUOzV4+w+6P5g+4xPqm5PKURTsgXa5tCo=; b=LFZiyRVgPVIpTiE9KfKq853g3AQX9k49mApfqPWDlLxVR5vF3bNjj/nkzCwKhmk3IeAp P5YSl5L+ET9dOIGSUrzgbixCiY/jWUVABKBPXjDIWyDhEsYU+jQ/SC0JBSc+2QAaWk2UK SNL/rasG25jLHdavKIvTFWM1nrT6ECJspbfmufeZ3aJfgP1FW0hcaNFmXbBNmkLLIeGTV DRBgy72FpGHm5TrgEEJNMUR+C3MxnIdJGZK2BmY4BESe7LV3fjDMH65CvecJOJjsnhtfG zU3z8xTDOwMTinB0yUiTZaqmyw/UTqcA9sD9YNVkid8XdZOslb/dgYhnZlz6QcSMsYg== 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=QroJkzEH; 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 E2EA8606A68D for ; Thu, 3 Dec 2026 14:11:08 +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=QroJkzEH Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61A651F00926; Thu, 3 Dec 2026 14:11:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796307068; bh=sze9lnZS4BoUOzV4+w+6P5g+4xPqm5PKURTsgXa5tCo=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=QroJkzEHsM5ZesuT1LR7F/SOQsxrleu9MBk+BxlufLV8/3DVwNQ562qcsziefV+jV I9GHQ3sK3r+ww6uE1ITnUPLcLKd+lq7WHAB04yaeUuAil5ySloVMvTFRykApvMJdA3 QDuIXI6YIwAyYBAgAm7Vv6JgDlkUs1pucK6RLcdpoRgnyB/ftAWHQY0k6zfwhoHapv kTXoKzDjiYf3zh9eQoo7x1Q/Ubj52HhofuE0/0LnsxavkoBTweUAoGWnsxtERWM47w 13UaafeKfSbMfaq649LPHB+SkYUASQNgJj6Oq4sd1sI1GyhZkyjhQuiELXJzzL2KBu pwCW32XGbmD0A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next 6/8] net: pse-pd: tps23881: Factor out power policy configuration Reply-To: sashiko-reviews@lists.linux.dev To: =?utf-8?b?S29yeSBNYWluY2VudCAoQWRkU2VjdXJlKQ==?= Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261202-feat_tps23861-v1-6-7d8320369817@bootlin.com> References: <20261202-feat_tps23861-v1-0-7d8320369817@bootlin.com> <20261202-feat_tps23861-v1-6-7d8320369817@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 14:11:08 +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 no new issues in this patch, but noticed 1 related pre-existing issue it does not introduce: - [High] net: pse-pd: tps23881: 16-bit foldback value truncated in tps23881_pi_enable_manual_pol() [1] -- commit a24d988872c37423e41bab88b1a60b38aaeef9aa Author: Kory Maincent (AddSecure) net: pse-pd: tps23881: Factor out power policy configuration This commit factors out the sequence that enables manual power policy and configures the power policy limit into a new tps23881_pi_conf_pw_pol_limit() helper. > diff --git a/drivers/net/pse-pd/tps23881.c b/drivers/net/pse-pd/tps23881.c > index 04ee7f8f3e18a..a7ff69e2561b4 100644 > --- a/drivers/net/pse-pd/tps23881.c > +++ b/drivers/net/pse-pd/tps23881.c > @@ -215,6 +215,23 @@ static int tps23881_pi_enable(struct pse_controller_= dev *pcdev, int id) > return 0; > } > =20 > +static int tps23881_pi_conf_pw_pol_limit(struct tps23881_priv *priv, int= id) > +{ > + int ret; > + > + /* No power policy */ > + if (priv->port[id].pw_pol < 0) > + return 0; > + > + ret =3D tps23881_pi_enable_manual_pol(priv, id); [Severity: High] This problem wasn't introduced by this patch, but does tps23881_pi_enable_manual_pol() truncate the 16-bit TPS23881_REG_FOLDBACK value [1] on channels 4 through 7? drivers/net/pse-pd/tps23881.c:tps23881_pi_enable_manual_pol() { ret =3D i2c_smbus_read_byte_data(client, TPS23881_REG_FOLDBACK); if (ret < 0) return ret; ... chan =3D priv->port[id].chan[0]; val =3D tps23881_set_val(ret, chan, 0, BIT(chan % 4), BIT(chan % 4)); return i2c_smbus_write_byte_data(client, TPS23881_REG_FOLDBACK, val); } The driver enables 16-bit register access (TPS23881_REG_NBITACC), so tps23881_set_val() shifts the bit for channels 4 through 7 into bits 8..15 of val. Using i2c_smbus_read_byte_data() and i2c_smbus_write_byte_data() instead of the word accessors drops the upper byte, leaving the manual power policy disabled on ports mapped to channels 4 through 7. [1] https://sashiko.dev/#/bug/linux-200958a2-c64a-48bf-b1f6-1584a6f2b35d --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202-feat_tps23= 861-v1-0-7d8320369817@bootlin.com?part=3D6