From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796309793; b=jN13EEh/lYuza2tLkWPzrhMdEqlllxExrOQDIU7F9b0TaH82k4WG6WYn2+oKcQcSZSMh K364IlJgD9Aa3/tcqAZmdHrnpM1O1JCLM2TAMHFMnPxGQeAvmES660gHAKYDqTV+c1Wbn iW+bWXsGrhinuStirti253oCtDfs2Xfmy7II+Te5rAaHWjOsKLy5fCYK6zcHInW2QVjyM huBvKH9B4SSIt/uUoLdkodEEbgiyH9pGyp7420uvPjdByW/AnS+gCaW9dk3jWnJGWS8J4 84FGaxwMWkUSI7IEB9946E2bdA95aWHJAFYiCHcSF/uI7+VhpQidyA7WYek6+M4+Rkg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796309793; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=h9wbPq4IMIb1559nNSuYlpN5IzyYepZa82V0Q1hkiDk=; b=N94Dm4HzIf4EhUvpHLqMgx4ijQp4VMeyNVm2IAx/pWHw+UNyJCp8ZlYkUtNwngLYNNKY mxppWYlAa7/5+Hx1qs/+FwULi1gwG4DJ+EIQUs6bj56kipDMiWwlI3ISKU3ICh6CkFp2B 6F8fFa8gXryYwv8/TW/a/617k6EeZmdAL7kbEYPIxXZicUYPYVbnm9ZuTZj5aL/uX5B2g 5DzcrwS0Rb76deIwW3nt1zy7rRiiozZDmunznSTff51ya361bUUbD0QMJD2AApbsNT9iO hLIC3xblymBf/qRFP5hXGBu6cBDoX4vcTMyqyKabb04Afe+E2KM+aCb6u6HWnlpUEaA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=jSl+IMj5; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CF3F606A322 for ; Thu, 3 Dec 2026 14:56:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2CF3F606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=jSl+IMj5 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 42D27C0133F; Thu, 3 Dec 2026 14:56:43 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id C985A604ED; Thu, 3 Dec 2026 14:56:31 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9944911EA171A; Thu, 03 Dec 2026 15:56:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796309791; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=h9wbPq4IMIb1559nNSuYlpN5IzyYepZa82V0Q1hkiDk=; b=jSl+IMj5WKXjz35Gl0sZWho/o3laXEftOPMmMPn8dwYPywEi0JyLFkDaUu18q3Z1tqAn78 r66umirI3FKMsNstFYhv1gbPO4qMVwJeTjPKT1i77ACMU8eFLgaF1DlSS4/9Maw4OdRFd3 ndBL9X+As7ieRL7D83DMhgG3+dT0cSBWs8HQqM0tZpNL64dt/wwXyEhTrynx6BptT6R/Rr nqfeqRjViayE6m0sH7rGMrfxhcGKHTM4vN1sy+rvNyuCKbPh08CY1x9BExrz/jisOFCa36 mmA2/R2lmlGw/YQJMRMAJtjGlbeOG8Tp78eVdrWYo7svETV83e0J5hONO0Bq9A== Message-ID: Date: Thu, 3 Dec 2026 15:56:30 +0100 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Betterbird (Linux) Subject: Re: [PATCH net-next 6/8] net: pse-pd: tps23881: Factor out power policy configuration To: sashiko-reviews@lists.linux.dev Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org References: <20261202-feat_tps23861-v1-0-7d8320369817@bootlin.com> <20261202-feat_tps23861-v1-6-7d8320369817@bootlin.com> From: Kory Maincent Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 On 12/3/26 15:11, sashiko-bot@kernel.org wrote: > 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; >> } >> >> +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 = 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? This is right. I have sent a fix accordingly. -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com