Skip to contentSkip to conversation

net: dsa: realtek: add compatible strings for RTL8367RB-VB

PATCH In review Luiz Angelo Daros de Luca 3 participants 7 messages Feb 8, 2022 – Mar 7, 2022

Subsystems (4)
lore
Share & tools
lore

Luiz Angelo Daros de Luca

author maintainer
#0 lore raw

PATCH 1/1 net: dsa: realtek: add compatible strings for RTL8367RB-VB

RTL8367RB-VB was not mentioned in the compatible table, nor in the Kconfig help text.

The driver still detects the variant by itself and ignores which compatible string was used to select it. So, any compatible string will work for any compatible model.

---
 drivers/net/dsa/realtek/Kconfig        | 3 ++-
 drivers/net/dsa/realtek/realtek-mdio.c | 1 +
 drivers/net/dsa/realtek/realtek-smi.c  | 4 ++++
 3 files changed, 7 insertions(+), 1 deletion(-)
drivers/net/dsa/realtek/Kconfig +2 -1
index b7427a8292b2..8eb5148bcc00 100644
@@ -29,7 +29,8 @@ config NET_DSA_REALTEK_RTL8365MB
 	depends on NET_DSA_REALTEK_SMI || NET_DSA_REALTEK_MDIO
 	select NET_DSA_TAG_RTL8_4
 	help
-	  Select to enable support for Realtek RTL8365MB-VC and RTL8367S.
+	  Select to enable support for Realtek RTL8365MB-VC, RTL8367RB-VB
+	  and RTL8367S.
 
 config NET_DSA_REALTEK_RTL8366RB
 	tristate "Realtek RTL8366RB switch subdriver"
drivers/net/dsa/realtek/realtek-mdio.c +1 -0
index 0c5f2bdced9d..e6e3c1769166 100644
@@ -206,6 +206,7 @@ static const struct of_device_id realtek_mdio_of_match[] = {
 #endif
 #if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8365MB)
 	{ .compatible = "realtek,rtl8365mb", .data = &rtl8365mb_variant, },
+	{ .compatible = "realtek,rtl8367rb", .data = &rtl8365mb_variant, },
 	{ .compatible = "realtek,rtl8367s", .data = &rtl8365mb_variant, },
 #endif
 	{ /* sentinel */ },
drivers/net/dsa/realtek/realtek-smi.c +4 -0
index 946fbbd70153..a849b5cbb4e4 100644
@@ -510,6 +510,10 @@ static const struct of_device_id realtek_smi_of_match[] = {
 		.compatible = "realtek,rtl8365mb",
 		.data = &rtl8365mb_variant,
 	},
+	{
+		.compatible = "realtek,rtl8367rb",
+		.data = &rtl8365mb_variant,
+	},
 	{
 		.compatible = "realtek,rtl8367s",
 		.data = &rtl8365mb_variant,
Signature · 1 line
2.35.1
maintainer
#1 lore raw
Quoted 6 lines · Luiz Angelo Daros de Luca

RTL8367RB-VB was not mentioned in the compatible table, nor in the Kconfig help text.

The driver still detects the variant by itself and ignores which compatible string was used to select it. So, any compatible string will work for any compatible model.

Please also update the binding documentation:
Documentation/devicetree/bindings/net/dsa/realtek-smi.txt

Thanks
Andrew

author maintainer
#2 lore raw
Quoted 10 lines · Luiz Angelo Daros de Luca
Quoted 6 lines

RTL8367RB-VB was not mentioned in the compatible table, nor in the Kconfig help text.

The driver still detects the variant by itself and ignores which compatible string was used to select it. So, any compatible string will work for any compatible model.

Please also update the binding documentation:
Documentation/devicetree/bindings/net/dsa/realtek-smi.txt

No, I'll do better. I'll send a new yaml version covering both realtek-smi and realtek-mdio.

Quoted 3 lines

Thanks
Andrew

author maintainer
#3 lore raw
In reply to Andrew Lunn
Quoted 11 lines · Luiz Angelo Daros de Luca
Quoted 6 lines

RTL8367RB-VB was not mentioned in the compatible table, nor in the Kconfig help text.

The driver still detects the variant by itself and ignores which compatible string was used to select it. So, any compatible string will work for any compatible model.

Please also update the binding documentation:
Documentation/devicetree/bindings/net/dsa/realtek-smi.txt

Hello Andrew,

I just sent the doc update.
https://patchwork.kernel.org/project/netdevbpf/list/?series=612748

Thanks,

Reviewed-by on v1 1/1
#5 lore raw
In reply to Luiz Angelo Daros de Luca
Quoted 9 lines · Luiz Angelo Daros de Luca

RTL8367RB-VB was not mentioned in the compatible table, nor in the Kconfig help text.

The driver still detects the variant by itself and ignores which compatible string was used to select it. So, any compatible string will work for any compatible model.

Yours,
Linus Walleij

author maintainer
#4 lore raw
In reply to Andrew Lunn
Quoted 2 lines

Please also update the binding documentation:
Documentation/devicetree/bindings/net/dsa/realtek-smi.txt

Documentation/devicetree/bindings/net/dsa/realtek.yaml was merged

author maintainer
#6 lore raw
In reply to Linus Walleij
Quoted 8 lines
Quoted 8 lines

RTL8367RB-VB was not mentioned in the compatible table, nor in the Kconfig help text.

The driver still detects the variant by itself and ignores which compatible string was used to select it. So, any compatible string will work for any compatible model.

Quoted 7 lines
Quoted 2 lines

Yours,
Linus Walleij

Is there anything else pending I need to do? Docs are already updated (during yaml conversion)

Regards,

Luiz