Article View: linux.kernel.netdev
Article #17020Re: [PATCH net-next] net: pse-pd: realtek-pse-mcu: add RTL8238C device ID
From: netdev-bot+sashiko
Date: Mon, 16 Nov 2026 09:40
Date: Mon, 16 Nov 2026 09:40
87 lines
11475 bytes
11475 bytes
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The new RTL8238C entry (`rtl8238c_info`, drivers/net/pse-
pd/realtek-pse-mcu-core.c:163) copies every RTL8238B value:…
--
net: pse-pd: realtek-pse-mcu: add RTL8238C device ID
This commit adds PSE MCU device id 0x0238 (RTL8238C) to the realtek PSE
MCU driver. Some Ubiquiti USW Pro Max 16 PoE units ship with this MCU,
and before this change probe failed on them. The new entry reuses the
RTL8238B power limits, LSB scaling and power limit command.
Link: https://github.com/blocktrron/poemgr/blob/17771dd7b3a74a64c14351d1cbf8e61676934cbe/rtl8239.h#L13
> diff --git a/drivers/net/pse-pd/realtek-pse-mcu-core.c b/drivers/net/pse-pd/realtek-pse-mcu-core.c
> index c70b09ca20122..9ae61184b5734 100644
> --- a/drivers/net/pse-pd/realtek-pse-mcu-core.c
> +++ b/drivers/net/pse-pd/realtek-pse-mcu-core.c
[ ... ]
> @@ -159,6 +160,14 @@ static const struct rtpse_mcu_chip_info rtl8238b_info = {
> .pw_set_lsb_mW = 200,
> };
>
> +static const struct rtpse_mcu_chip_info rtl8238c_info = {
> + .max_mW_per_port = 30000,
> + .name = "RTL8238C",
> + .pw_read_lsb_mW = 200,
> + .pw_set_cmd = RTPSE_MCU_CMD_PORT_SET_POWER_LIMIT,
> + .pw_set_lsb_mW = 200,
> +};
[Severity: Medium]
Is there a source that confirms these values for id 0x0238?
The commit message cites poemgr for the name. The argument that the
high byte tracks the chip revision shows the id numbering is consistent,
but it doesn't say anything about the units or the power rating the MCU
firmware uses. The same table already has chips with different units:
RTL8239 and RTL8239C use 400 mW LSBs, the EXT set command and a 90 W cap.
These four fields set everything the driver programs and reads back for
power limits. In rtpse_mcu_port_set_pw_limit():
if (max_mW < 0 || max_mW > chip->max_mW_per_port)
return -ERANGE;
...
prg_val = min_t(unsigned int, DIV_ROUND_UP(max_mW, chip->pw_set_lsb_mW), U8_MAX);
and in rtpse_mcu_port_get_pw_limit():
return min_t(u32, config.max_power * pse->chip->pw_read_lsb_mW,
pse->chip->max_mW_per_port);
Suppose the 0x0238 firmware uses 0.4 W units like the RTL8239 family. A
30 W request would then go out as raw 150, and the MCU would enforce
about 60 W. The read-back would be off by 2x, and the min_t() clamp to
30000 would hide that, so ethtool would report a limit the hardware
doesn't enforce.
Now suppose the part supports more than 30 W per port. Valid requests
would then fail with -ERANGE, and get_pw_limit would report less than
the real limit.
The commit message says "PoE works on all ports used". That covers power
delivery under the MCU's default limits. Was a set/get round trip also
tested on this unit, for example setting 15 W, reading 15 W back and
checking that the MCU enforces it? Vendor material that confirms the
units and per-port cap would also settle this.
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/EEsDzyK4pKqMZ9P6eCtfk5Qp2SXyprlFB4e4uQ7_O1iw3BuvnNm95DKBxuHy-mp3vdmUWhob9UWOzN9VWXoYyQIADqKPNvJt_gfaLaWpSkU%3D%40proton.me
Technical Details
Message-ID:
<179482205440.3136.2338492217413626298@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364147-linux-kernel-netdev=dewy.ruReferences:
<EEsDzyK4pKqMZ9P6eCtfk5Qp2SXyprlFB4e4uQ7_O1iw3BuvnNm95DKBxuHy-mp3vdmUWhob9UWOzN9VWXoYyQIADqKPNvJt_gfaLaWpSkU=@proton.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364147-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next] net: pse-pd: realtek-pse-mcu: add RTL8238C device ID Date: Mon, 16 Nov 2026 09:40:54 +0000 Organization: Usenet Network Message-ID: <179482205440.3136.2338492217413626298@kernel.org> References: <EEsDzyK4pKqMZ9P6eCtfk5Qp2SXyprlFB4e4uQ7_O1iw3BuvnNm95DKBxuHy-mp3vdmUWhob9UWOzN9VWXoYyQIADqKPNvJt_gfaLaWpSkU=@proton.me> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2024014"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:NT3mWHAhecz0gDypo7RiqaCAFFY= sha256:o3t/WHT2sEN1ACWUpb3lPRyPiMB9Xgq3vzCax8HkWJY= sha1:Q+/0ui+GFQZEQyMC+c/UyZxt/X8= sha256:NVyH5FVoE7qPQlXIruYcFJmxeqt/OyDZVI8DkFF3ngM= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 33F3E114B7E; Mon, 16 Nov 2026 12:41:20 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HUXa9yUKB5E2; Mon, 16 Nov 2026 12:41:12 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-364147-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id E25A7114B5D; Mon, 16 Nov 2026 12:41:02 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id C73CD2F693; Mon, 16 Nov 2026 09:40:57 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794822057; b=pJOSqumk6jxM3rgDUYjRmMnc+FofUci7FAAZXx8h48hEeJbjpF5SmDpUSN3RX+YCm+j4 ErcXa5Dw9yna9Tw1pkP9gYjFhBPvrfm9wuw1itQex4rFj8mf5UErInrjVjH33VFApSP79 x99raKKqGDY/Ud9VS7oxg14SCgrI4QTBugUYgYb3i/f5hS2tjnyADvZe7kNAm8JuZBuql eeCeXxnLqUZT8JCwNiLvWNFIqcj32b6Evrz4XU+NUDYZFMdqRlypfpiJRtQ2w5WWPw0yn nVuXAYsOJTlMrhPFfXXb/fDWlbDKVtYUPChqdtuoVWytKfqmH9bjzmshvSSzohAh3Iw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794822057; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=t0A4JqVei88PAda0QTFJyXNVpSQwkMts1vM2mvYyV1M=; b=LI3yS8N/orrixArXqHPrDxM5N2Ypb7mg1iHQ8lnYDT8+qegQwMn98KCk7RPU0ujQ2DbR 7rlfvRhxllHvw8LCPFqMjFUwQnGdvWhWbH/j4GSjKcTmNHGgsjBLZPcw5doojkTlfkaDr QoaIROG1bMS646XrpF9HikxfCnBNMvCMZzE5CHTnub1hY+sqS4PXYmRkv+felaOdJU4B7 9lbTzLQz2+qlKGhK/vCFpmqWCgK1m56vi5V0q4AJa0D5g00YUzAq3eNRstaOcJqZi53Hl WPqaz34znE6TvZ3cXFH5b53NaiL4Xqi83WRxH4/44CWzWCAAe0zk8DGREGZN6fmEFtA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=V6zOiqdA; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFF5C606A33E; Mon, 16 Nov 2026 09:40:56 +0000 (UTC) X-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=V6zOiqdA X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794822056; b=tYyIhO25jEEKPgNXfl6C+PZqOXlXy4pT2LlKtbkhQpQtgJLF233zM6Zk5Heu9TCehTIY KO+UN6VE3xPNh+D7PikQOCxLZ56YT3hhj9GiA92s+KYWDdF2sDolwK/EM9Gda8dgT8vjf uf8WsRqCIeB57mHoi3bYN3dYqP3WxftWj0sZnImb1f+Qi4SOPMXziBO8WtboVhbRzbvTd G4iA5uj4m93kzCkb+NuygbzK6t1kIaZ6dlJVEnp8CQYgfyMloUAPljoToHM96UklGXECZ HU8dpGuTfwQr6OdhNrp8Hzimf7gONxhOTxgTQVhl3bS2lc2pu2ExOPkQzftxOWPOeoQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794822056; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=t0A4JqVei88PAda0QTFJyXNVpSQwkMts1vM2mvYyV1M=; b=181vHcB/YstQIOoXOq2Ggzjl9eRI6J/hSIt6LEguyQaZ5wikkcmP3kGFRGv3nQukpI0P nxOtAOZM8G3Blz6RwPkTk01z9FbrrBsOFaIK2FzU1MiUHx3QaEjauVS4jivDuu/zwcLRd yWbIKDTy9Xm0g6d0lsxVuHchPa7SeIHrkSty7csHneTde0jvZqCtply5WcBjgf3dmMiNE TtktqHih/ScJDmcMYkbhoBIBzJrCg3/E6ZbNT26dPsjEt23rDKjusSH0Dek5IsR6d0pcJ 2d8RjE0octiFuBTis7sfk93p4AQcU/2Vyui1AHO278/zPHvQOdWi2nMXcuxBQLaVo2w== X-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=V6zOiqdA; arc=none smtp.remote-ip=100.103.45.18 X-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 1A27B606A331; Mon, 16 Nov 2026 09:40:55 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4FE01F000C9; Mon, 16 Nov 2026 09:40:54 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794822055; bh=t0A4JqVei88PAda0QTFJyXNVpSQwkMts1vM2mvYyV1M=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=V6zOiqdAAzNzhN6GeWrTqb5jIK/4Sf+HkBlfm882cesBU4JWbExjQ9nV0kFYnU+1B BYT3gvtWB9GRTlbHP7mZn1SlrvEweW5r8/+je4W4DA2PFoXBh6PK07HurzXIaxjY7G Gcv06gKTPkko6hKveMoDjCbOyPbtjG2gM7QBkhO23rDJ12p4TeJVsAzBRyt39FLMQ8 RH44YRU2kMUzw6U48XzHuWgGDdTcWJrlnDWjS+aO4xd3YLr4m888jP78r8yTgQ7Mjv wBU5DRZ28E8lrQb5ERtFCaTzimLb6e4DFY55jLUpqs47JNRpVDG9LXZtValOAeM+Rj UlOHK7BGtK18g== X-Cc: jelonek.jonas@gmail.com, jonas@jonasjelonek.de, o.rempel@pengutronix.de, kory.maincent@bootlin.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <EEsDzyK4pKqMZ9P6eCtfk5Qp2SXyprlFB4e4uQ7_O1iw3BuvnNm95DKBxuHy-mp3vdmUWhob9UWOzN9VWXoYyQIADqKPNvJt_gfaLaWpSkU=@proton.me> X-sashiko-severity: Medium X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list