From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=66.163.188.206 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796169112; b=Po+bRpllWsMuvur5inLbZEreXAABbehS+GsuAvjButDygJylfjNcbKpNCG2wgomXHkXP MheyJNVBY5CYN5MNv9/x6mEnrJK92VJfM82mWfNNAAeKNNtG4vq3ohufoC/WfWx4B1RQH jGvfrEvNiWvyjGgudphAxU4d0qM9r08jZoE1vcpKXB9NhqsVUUpXRCIyuQnXtp4ilbnDe 4bZFgqQ2s5Mz2yeGU7wXOLLdnH3MaEMBmUUsGKJM7kExso+iHGRdWIAoflU5+K4knvXyo Pm69tsIX1DtcfXMPU3vWBHsMnp0iv92+vKuW0UX8xnGdgzNrmbtKC7V+6yYAhtK8qmQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796169112; h=DMARC-Filter:DKIM-Signature:X-SONIC-DKIM-SIGN:X-YMail-OSG:X-Sonic-MF: X-Sonic-ID:Received:Received:Message-ID:Date:MIME-Version:User-Agent: Subject:To:References:Content-Language:In-Reply-To:From:Content-Type: Content-Transfer-Encoding:X-Mailer; bh=EaJKILNa8S9tVWvy4MyWNm5EqCrcJ7MBH+TV12PwZ3o=; b=nLhLt1+4RZqIBEDkvWBNt6MGMlx5UXZIm/fkr1opxr7HdoJReVBw3c87S7dPaJ2A4Rvm 1Um7hvypPALyp+YmGc5Su8408WqahsFMWj5zuwb9QYc3wXEhCI1bGyedIUyxDjN2i1dFF PRAHYPD2uweb/hUuJ3CJHEPmQtJsv9fpBzoBY5wkVclek9bhBk0QrmEwfuPzOK+AsQV40 FUoNp38CLLiIkG1iqtVPbhBJH9o6hK5SBOMxAHQw3/ucPhl2EBHyScrE1d0XQjfz4Hg5y fHqvpDS0krX3FtYzU3Zhqm4IAgI/flPu8ssaQLy6smUp7RV0NvROZlB908f4/bdWPaw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=yahoo.com; spf=pass smtp.mailfrom=yahoo.com; dkim=pass header.d=yahoo.com header.i=@yahoo.com header.a=rsa-sha256 header.s=s2048 header.b=KtuXaDJ0; arc=none smtp.remote-ip=66.163.188.206 Received: from sonic311-25.consmr.mail.ne1.yahoo.com (sonic311-25.consmr.mail.ne1.yahoo.com [66.163.188.206]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2794606A333 for ; Tue, 1 Dec 2026 23:51:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C2794606A333 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.a=rsa-sha256 header.s=s2048 header.b=KtuXaDJ0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1796169111; bh=EaJKILNa8S9tVWvy4MyWNm5EqCrcJ7MBH+TV12PwZ3o=; h=Date:Subject:To:References:In-Reply-To:From:Content-Type:From:Subject:Reply-To:Content-Type; b=KtuXaDJ0025it8MU2JnwOqzvkMXgA6pdcYxhPt78wv79vKOKryPHmyIJyykkcTXZxlBUyMIc/Kmbi8tj3LNJH7P6JR5pmALGVAYRmwZ4HlrULGfFyT+sEOtHJQ8na+NmeyOXeO3NqMtRrYHRsgeEldfujV8G6IAfkKbf0CEsLg1TXSdWQPPEP5jds26H9tqe/dyW8aloPyvlfq+QlfwsMiznrb9A0ZH8jzRBC1CLv8s10o2Sb+h4lJ6XOtixzus2bBcpESVKlsS/ql9yGk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2jBaUQ2n0tV1kEn0xUcQ4BWpDSN6bzgSkGlM8V IMSwzs_24K9zUDWzokHlEPmKjlROjD5Xzo4Gh8zn7ez9QupjJUfe_tZDxD2ADRQcXovVYuYjH_pc vtV2fWg2XalbrJrdEFN8S7r4jT0_923sSwuZFT3SHcMjybXmEcy35oxYg3cne_O.dxONn12D_tYh dteT579a2Z2QVmvlpDjvgWoHxsJ__HsTzMhJRO2GGXkAv9hdwA6s01hWdqDpoP8AXottNRcuhFb_ 9K_BEkYVs.wB4NLXgAyAYgFxKtxa1CYDfEMdlOe085FmHVe4oXDv8e0u_J6RkoLHkTxRbvNX8yiK f6eRUxLppPpAxawdfsTd.3pUqVbij_1AgsCHJs7HT7vdzd5nKzIThkK_qKR.VKs7nRXXHlIJsBCV C3AdIgdC1Eh0KdMV1teXsS3KdUEZahJhGHiA3hvnWcPdgQvFqQZPa1n0ap5RZvFaFZtK7SbQ_m6j UT9fY_pBAl_MnxOgImd33wDIB_Sk1Av8ZiZgr0f8Z4wtULJUIDccUMZ.yx_SUdNJ9xBOJBbdQQc_ 4eBiQYNy6_mvszqUgYgUyYBcL12xKbxjPuJ5H5azvFZoPN1eNb.WuxFrAtjPVtXdXhpSU.kC41r9 lqPrwV6HoadtD.yDFm0W6H3u8MvQblVYoll.gkekM4jxevh1YrwK8x_7O_EGUwuqh2FNlrCz._f0 0qMm8p9QK6G61blc6GSnwKjW6Csu90GMCNeZzcnkJKhad7YmTBjvwk0nW1x9MmSnd9M6U9GBXwph D1bD25GLGXwxwk_YiOEqkS2kI_NiudPeDjMw2W3aSaoQiMd4- X-Sonic-MF: X-Sonic-ID: 8a4e7469-fa1e-4d17-a064-2732651442d9 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Tue, 1 Dec 2026 23:51:51 +0000 Received: by hermes--production-ir2-7c4859dc89-9kgzz (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 860f8b57f5cceb6eb2f3adfc32f1bbcc; Tue, 01 Dec 2026 23:51:47 +0000 (UTC) Message-ID: Date: Wed, 2 Dec 2026 00:51:45 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH net-next v18 08/15] net: dsa: realtek: rtl8365mb: refactor PVID handling 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, alvin.sipraga@analog.com, gusfmora@gmail.com, kuncy7@gmail.com, fabianotassotti@gmail.com, gabonpivovich@gmail.com, contact@c127.dev, o.rempel@pengutronix.de References: <1383a67b-15e4-4c76-8bbf-65d3cbfa1fc1@yahoo.com> Content-Language: pl In-Reply-To: <1383a67b-15e4-4c76-8bbf-65d3cbfa1fc1@yahoo.com> From: Mieczyslaw Nalewaj Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.27100 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo The PVID helpers (rtl8365mb_vlan_port_get_pvid(), rtl8365mb_vlan_pvid_port_set() and rtl8365mb_vlan_pvid_port_clear()) work on a VLAN MC table index, which only family C has. Family D stores a raw VID in a per-port register, so it needs its own implementation, and also needs its PVID registers cleared at setup. Move the helpers behind struct rtl8365mb_family_info, as already done for the VLAN 4k accessors: the existing code becomes the family C implementation (rtl8365mb_c_vlan_port_get_pvid() and the like), and the three functions above only call it through the vlan_port_get_pvid, vlan_pvid_port_set and vlan_pvid_port_clear pointers in the family info. Also add a vlan_port_reset_pvid hook, implemented as a no-op on family C (rtl8365mb_c_vlan_port_reset_pvid()) so existing setup behavior is preserved. The callers are not changed. The following patch adds the family D implementation without any is_d() check in the shared code. No functional change. The family C functions are not static because they are referenced from the family C info in rtl8365mb_main.c. Tested-by: Gustavo Foletto Mora Signed-off-by: Mieczyslaw Nalewaj --- drivers/net/dsa/realtek/rtl8365mb.h | 8 ++ drivers/net/dsa/realtek/rtl8365mb_main.c | 4 + drivers/net/dsa/realtek/rtl8365mb_vlan.c | 101 +++++++++++++++++++++-- drivers/net/dsa/realtek/rtl8365mb_vlan.h | 6 ++ 4 files changed, 111 insertions(+), 8 deletions(-) diff --git a/drivers/net/dsa/realtek/rtl8365mb.h b/drivers/net/dsa/realtek/rtl8365mb.h index be0f49e..c59e657 100644 --- a/drivers/net/dsa/realtek/rtl8365mb.h +++ b/drivers/net/dsa/realtek/rtl8365mb.h @@ -9,6 +9,8 @@ enum rtl8365mb_family { RTL8365MB_FAMILY_D, }; +struct dsa_switch; +struct netlink_ext_ack; struct rtl8365mb_jam_tbl_entry; struct rtl8365mb_vlan4k; @@ -23,6 +25,12 @@ struct rtl8365mb_family_info { struct rtl8365mb_vlan4k *vlan4k); int (*vlan_4k_write)(struct realtek_priv *priv, const struct rtl8365mb_vlan4k *vlan4k); + int (*vlan_port_get_pvid)(struct realtek_priv *priv, int port, + u16 *pvid); + int (*vlan_port_reset_pvid)(struct realtek_priv *priv, int port); + int (*vlan_pvid_port_set)(struct dsa_switch *ds, int port, u16 vid, + struct netlink_ext_ack *extack); + int (*vlan_pvid_port_clear)(struct dsa_switch *ds, int port, u16 vid); }; const struct rtl8365mb_family_info * diff --git a/drivers/net/dsa/realtek/rtl8365mb_main.c b/drivers/net/dsa/realtek/rtl8365mb_main.c index 208d7b9..a521eb6 100644 --- a/drivers/net/dsa/realtek/rtl8365mb_main.c +++ b/drivers/net/dsa/realtek/rtl8365mb_main.c @@ -765,6 +765,10 @@ static const struct rtl8365mb_family_info rtl8365mb_family_c = { .ext_config_forcemode = rtl8365mb_c_ext_config_forcemode, .vlan_4k_read = rtl8365mb_c_vlan_4k_read, .vlan_4k_write = rtl8365mb_c_vlan_4k_write, + .vlan_port_get_pvid = rtl8365mb_c_vlan_port_get_pvid, + .vlan_port_reset_pvid = rtl8365mb_c_vlan_port_reset_pvid, + .vlan_pvid_port_set = rtl8365mb_c_vlan_pvid_port_set, + .vlan_pvid_port_clear = rtl8365mb_c_vlan_pvid_port_clear, }; /** diff --git a/drivers/net/dsa/realtek/rtl8365mb_vlan.c b/drivers/net/dsa/realtek/rtl8365mb_vlan.c index 2f2a1b2..c3c55b8 100644 --- a/drivers/net/dsa/realtek/rtl8365mb_vlan.c +++ b/drivers/net/dsa/realtek/rtl8365mb_vlan.c @@ -858,7 +858,7 @@ static int rtl8365mb_vlan_get_pvid_mc(struct realtek_priv *priv, } /* - * rtl8365mb_vlan_port_get_pvid - Retrieve the port PVID + * rtl8365mb_c_vlan_port_get_pvid - Retrieve the port PVID (family C) * @priv: realtek switch private structure * @port: port index * @pvid: pointer to store the retrieved VLAN ID @@ -868,7 +868,8 @@ static int rtl8365mb_vlan_get_pvid_mc(struct realtek_priv *priv, * Context: Can sleep. Takes and releases &priv->map_lock. * Return: 0 on success or a negative error code on failure. */ -int rtl8365mb_vlan_port_get_pvid(struct realtek_priv *priv, int port, u16 *pvid) +int rtl8365mb_c_vlan_port_get_pvid(struct realtek_priv *priv, int port, + u16 *pvid) { struct rtl8365mb_vlanmc vlanmc; u8 vlanmc_idx; @@ -882,6 +883,43 @@ int rtl8365mb_vlan_port_get_pvid(struct realtek_priv *priv, int port, u16 *pvid) return 0; } +/* + * rtl8365mb_c_vlan_port_reset_pvid() - Put a port's PVID in its neutral state + * (family C) + * @priv: realtek_priv pointer + * @port: the port number + * + * Family C is left as it was before family D support: its PVID registers are + * not touched at setup, to preserve existing driver behavior. + * + * Return: 0. + */ +int rtl8365mb_c_vlan_port_reset_pvid(struct realtek_priv *priv, int port) +{ + return 0; +} + +/* + * rtl8365mb_vlan_port_get_pvid() - Retrieve the port PVID + * @priv: realtek switch private structure + * @port: port index + * @pvid: pointer to store the retrieved VLAN ID + * + * Returns the port PVID if defined or 0 if not, as implemented by the chip + * family. + * + * Context: Can sleep. Takes and releases &priv->map_lock. + * Return: 0 on success or a negative error code on failure. + */ +int rtl8365mb_vlan_port_get_pvid(struct realtek_priv *priv, int port, u16 *pvid) +{ + const struct rtl8365mb_family_info *fi; + + fi = rtl8365mb_get_family_info(priv); + + return fi->vlan_port_get_pvid(priv, port, pvid); +} + /* * rtl8365mb_vlan_port_get_framefilter() - Get the ingress frame filtering mode * for a port @@ -944,8 +982,8 @@ rtl8365mb_vlan_port_set_framefilter(struct realtek_priv *priv, } /* - * rtl8365mb_vlan_pvid_port_set() - Configure a port's PVID and associated - * VLANMC entry + * rtl8365mb_c_vlan_pvid_port_set() - Configure a port's PVID and associated + * VLANMC entry (family C) * @ds: dsa switch instance * @port: port index * @vid: target VID @@ -959,8 +997,8 @@ rtl8365mb_vlan_port_set_framefilter(struct realtek_priv *priv, * Takes and releases &priv->map_lock. * Return: 0 on success, or a negative error code on failure. */ -int rtl8365mb_vlan_pvid_port_set(struct dsa_switch *ds, int port, u16 vid, - struct netlink_ext_ack *extack) +int rtl8365mb_c_vlan_pvid_port_set(struct dsa_switch *ds, int port, u16 vid, + struct netlink_ext_ack *extack) { enum rtl8365mb_frame_ingress accepted_frame, prev_accepted_frame; struct realtek_priv *priv = ds->priv; @@ -1052,7 +1090,32 @@ undo_vlan_mc_port_set: } /* - * rtl8365mb_vlan_pvid_port_clear() - Remove a port's PVID configuration + * rtl8365mb_vlan_pvid_port_set() - Configure a port's PVID + * @ds: dsa switch instance + * @port: port index + * @vid: target VID + * @extack: netlink extended ACK for error reporting + * + * Configures the PVID as implemented by the chip family. + * + * Context: Can sleep. Must be called with &priv->vlan_lock held. + * Takes and releases &priv->map_lock. + * Return: 0 on success, or a negative error code on failure. + */ +int rtl8365mb_vlan_pvid_port_set(struct dsa_switch *ds, int port, u16 vid, + struct netlink_ext_ack *extack) +{ + const struct rtl8365mb_family_info *fi; + struct realtek_priv *priv = ds->priv; + + fi = rtl8365mb_get_family_info(priv); + + return fi->vlan_pvid_port_set(ds, port, vid, extack); +} + +/* + * rtl8365mb_c_vlan_pvid_port_clear() - Remove a port's PVID configuration + * (family C) * @ds: dsa switch instance * @port: port index * @vid: VLAN VID for PVID @@ -1064,7 +1127,7 @@ undo_vlan_mc_port_set: * Takes and releases &priv->map_lock. * Return: 0 on success, or a negative error code on failure. */ -int rtl8365mb_vlan_pvid_port_clear(struct dsa_switch *ds, int port, u16 vid) +int rtl8365mb_c_vlan_pvid_port_clear(struct dsa_switch *ds, int port, u16 vid) { enum rtl8365mb_frame_ingress accepted_frame, prev_accepted_frame; struct realtek_priv *priv = ds->priv; @@ -1137,3 +1200,25 @@ undo_set_framefilter: return ret; } + +/* + * rtl8365mb_vlan_pvid_port_clear() - Remove a port's PVID configuration + * @ds: dsa switch instance + * @port: port index + * @vid: VLAN VID for PVID + * + * Removes the PVID as implemented by the chip family. + * + * Context: Can sleep. Must be called with &priv->vlan_lock held. + * Takes and releases &priv->map_lock. + * Return: 0 on success, or a negative error code on failure. + */ +int rtl8365mb_vlan_pvid_port_clear(struct dsa_switch *ds, int port, u16 vid) +{ + const struct rtl8365mb_family_info *fi; + struct realtek_priv *priv = ds->priv; + + fi = rtl8365mb_get_family_info(priv); + + return fi->vlan_pvid_port_clear(ds, port, vid); +} diff --git a/drivers/net/dsa/realtek/rtl8365mb_vlan.h b/drivers/net/dsa/realtek/rtl8365mb_vlan.h index f6230eb..b5b56ae 100644 --- a/drivers/net/dsa/realtek/rtl8365mb_vlan.h +++ b/drivers/net/dsa/realtek/rtl8365mb_vlan.h @@ -28,6 +28,12 @@ int rtl8365mb_d_vlan_4k_read(struct realtek_priv *priv, u16 vid, struct rtl8365mb_vlan4k *vlan4k); int rtl8365mb_d_vlan_4k_write(struct realtek_priv *priv, const struct rtl8365mb_vlan4k *vlan4k); +int rtl8365mb_c_vlan_port_get_pvid(struct realtek_priv *priv, int port, + u16 *pvid); +int rtl8365mb_c_vlan_port_reset_pvid(struct realtek_priv *priv, int port); +int rtl8365mb_c_vlan_pvid_port_set(struct dsa_switch *ds, int port, u16 vid, + struct netlink_ext_ack *extack); +int rtl8365mb_c_vlan_pvid_port_clear(struct dsa_switch *ds, int port, u16 vid); int rtl8365mb_vlan_port_get_pvid(struct realtek_priv *priv, int port, u16 *pvid); -- 2.53.0