From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sonic314-21.consmr.mail.ne1.yahoo.com (sonic314-21.consmr.mail.ne1.yahoo.com [66.163.189.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED0D53CB2E5 for ; Sat, 10 Oct 2026 19:36:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.163.189.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791661019; cv=none; b=BgcA7gIJBGCv2xcbLSlWWyXXnkPzJcJtjqkV0vQ15ECfSrVN4FU1TmZDi3k9E4jBFs0n+DI8gckuTZ7SbUvCgmu2c03hQ+8nPF2taj5NCjXa5pd7YECIjxvSEC6kfeCDZT9D8V4Y1HafWjOT5DvNIquo6Tbx3DrB0dj1zQb04lY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791661019; c=relaxed/simple; bh=D5M9+31XeXLJHrnkNLGMx6gVKfwG3qeawuHxoqsAmdY=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type: References; b=WKpMrgPPUx4q8Z/RP0w8HhZdnOiG/44poSGWptxDNoVk8efXuLPg6IN1RjASSEe+GxRbCdPHGjqaB/K0xHPvMns0Jz5d2ehW9xN8SMNCiSKU3fXq3wV+NUKBS/u3FYNZRLO545JioJdr1OLxaz53SH6apY4N+K2giJ/F02vudr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=yahoo.com; spf=pass smtp.mailfrom=yahoo.com; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b=EzKxIJfB; arc=none smtp.client-ip=66.163.189.147 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=yahoo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yahoo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b="EzKxIJfB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1791661009; bh=PMFSbBd03q5NVfUMHDXaGYFQ3uX9A1H8j/qddGRNT3o=; h=Date:To:From:Subject:References:From:Subject:Reply-To; b=EzKxIJfBU506TPB0jXQOZp852TaWk27I+ekWcrfx3xEx+TYfav0FrPiuEGMhIxnQyLD5BFQ/j6pPR0P7Shzdn/8ajJ1jmYOSOGSqu4PZGWxACksBWXtUhOz2kG7ofJ6/EFGSM6/SNwKTd/o76ymaQNJtC7LM/ZsJdwlyoQrJG8i2AnR1qz0fHifS53cniNuSTZEjHLByR4Mv57VBUI6GD7dVgoTkZGvXYhDsQU7T1uYqGhtM9ckZGojjQ14DUboEo9GOYL642eKjXZZZShSpiwfXR6qSpo8wK5X54OiUwMP1AFYsTucvKFBaNz1fvDdYtZQpzk1vncN3mEgw1zdTJA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1791661009; bh=AnGCYFI8SzDwa39fZ9B8jHttlsUvrIHAqnVx9x86+7w=; h=X-Sonic-MF:Date:To:From:Subject:From:Subject; b=gDWuC/b0+V/kO7pZ1DMzsaGOJEfIPZWmoQcixUD2OPYCfFWlgNEEPZek9mLq2tNNsGimroCNn5U1+0Gmf2M7GSw3GKeJwZtjlt5xSNL+8dk7FJ9mosOlHYo+FwGWwgRdIBMaLHuxGoaL/o+ffFXQAv5hFx1x9oclYghDApX8/Y1WNVvKPXnmWKTH0cKkIQDLqEFWBquvnHPILtyQ9VNgdwTTGQLOS5Amfby8ok5cCC1XauSyFMPkIe8+dKiqw/HgdxIqH4Y+ojgC/M55JlfyXL+hmk/KEbvVh6N4pN3Pmm+orPaqZlyv3tVk9eDl/Y6vVq+q1iU7oHlJJ29w1DRw4w== X-YMail-OSG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 7jTvYKSlQYAsoyqeQLzin5mI4yM2x24J37HvX50WePGEa32MuXRcjVW6C1XRkG9K2BsjcBnLzOF7 SIV7oj5lrqvzHzvQVUTG__FOpNfLa6C9ZcOq3iegOmfiynqO0t9dOcg3IJoLtmExG0XSlCjy9XbM lj8GbmZpdKmRl7uXtXlikoWR3bct04BOwIqODGgpug.ryTLlo7tZdyXD5Canry7MxTUxnyVkcOCO owXmBj9zsZgJycJBVZRhE60JgCEB5JaUdd8Ccl1o- X-Sonic-MF: X-Sonic-ID: d6363499-9376-430e-affb-d7b1506ec0e7 Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Sat, 10 Oct 2026 19:36:49 +0000 Received: by hermes--production-ir2-5dd9bf4598-bbdwl (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 70b06eb4eb840b21612872ae4bbea301; Sat, 10 Oct 2026 19:36:47 +0000 (UTC) Message-ID: Date: Sat, 10 Oct 2026 21:36:45 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: pl To: linusw@kernel.org, andrew@lunn.ch, olteanv@gmail.com, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, linux@armlinux.org.uk, luizluca@gmail.com, maxime.chevallier@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org From: Mieczyslaw Nalewaj Subject: [PATCH net-next v3 0/9] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: X-Mailer: WebService/1.1.26668 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo This series adds support for the RTL8367S-VB (chip ID 0x6642) to the rtl8365mb driver. The chip belongs to a new "family D" that differs from the existing family C in its VLAN table layout, speed/RGMII configuration and SerDes (SDS13) handling. Patch 1 documents the chip in the devicetree binding. Patch 2 adds the chip family infrastructure (no functional change). Patches 3-4 add port speed and RGMII mode configuration for family D. Patches 5-6 add VLAN 4k table access and raw-VID PVID handling. Patches 7-8 add SDS13 PCS support and re-latching of the SerDes. Patch 9 adds the RTL8367S-VB chip table entry. It comes last, so that no intermediate commit exposes a family D chip with incomplete handling and the series stays bisectable. Family C's functional behaviour is unchanged. The only change in a shared path is a mutex serializing SerDes register access, added in patch 8. The port count is capped at 8 for family D only (patch 9). Tested on TP-Link Archer AX55 v1 (RTL8367S-VB, CPU port over HSGMII to ipq5018) with bridge VLAN filtering and per-port PVIDs. Signed-off-by: Mieczyslaw Nalewaj --- v3: - add a dt-bindings patch (1/9): RTL8367S-VB listed under realtek,rtl8365mb - add chip family infrastructure as its own patch (2/9), no functional change - squash the family D PVID getter and the PVID set/clear patches into one (6/9), so the read and write paths use the same register layout at every point of the series - add the RTL8367S-VB chip table entry last (9/9), after the family D speed, RGMII, VLAN and PCS support, so no intermediate commit can reach the chip with incomplete handling (reported by the automated review) - 6/9: fix the commit message (port p's write lands in port p >> 1) and update the stale kernel-doc and file comments - 8/9: start the re-latch work only for 2500base-x, cancel it from .pcs_disable, from pcs_config() and via a devres action; retry the SDS_MISC restore and come back soon if it fails; rewrite the commit message to match the code (reported by the automated review) - 9/9: document family D in the file header comment and in the learn limit comment (limit confirmed against the Realtek vendor API) v2: https://lore.kernel.org/netdev/28382f3f-03c1-4606-9b11-86f118abeafe@yahoo.com/ - 2/8: mask r_speed to the width of the FORCE_SPEED field before passing it to FIELD_PREP(), so that the family D 2500M value (5) cannot trip the compile-time range check; bit 2 still goes to FORCE_SPEED2 (reported by the automated review). - 4/8: the commit message now explains why EXT_TXC_DLY[5:3] is cleared for RGMII on EXT1: the vendor RGMII setup does it, and the init jam table leaves the field at 2, which would add an extra TX delay on top of tx-internal-delay-ps. Add a comment describing the EXT_TXC_DLY layout (Andrew Lunn's review). - 8/8: document the new struct rtl8365mb members in the kernel-doc comment (sds_lock, sds_relatch, sds_relatch_count, sds_misc_target_val), which fixes the kernel-doc warnings. - 1/8, 3/8, 5/8, 6/8, 7/8: no changes. v1: https://lore.kernel.org/netdev/84fc7483-b22d-45ea-a3b8-3285dc357265@yahoo.com/ Mieczyslaw Nalewaj (9): dt-bindings: net: dsa: realtek: add RTL8367S-VB net: dsa: realtek: rtl8365mb: add chip family infrastructure net: dsa: realtek: rtl8365mb: set speed for family D net: dsa: realtek: rtl8365mb: set RGMII mode for family D net: dsa: realtek: rtl8365mb: set and get vlan 4k for family D net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D net: dsa: realtek: rtl8365mb: add family D SDS13 PCS support net: dsa: realtek: rtl8365mb: re-latch the family D SerDes net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB .../devicetree/bindings/net/dsa/realtek.yaml | 2 +- drivers/net/dsa/realtek/rtl8365mb.h | 14 + drivers/net/dsa/realtek/rtl8365mb_main.c | 603 ++++++++++++++++-- drivers/net/dsa/realtek/rtl8365mb_vlan.c | 342 ++++++++-- 4 files changed, 844 insertions(+), 117 deletions(-) create mode 100644 drivers/net/dsa/realtek/rtl8365mb.h -- 2.53.0