|
|
@@ -0,0 +1,229 @@
|
|
|
+From 50326b48f0cfbd9324668c5d2e08b39b59dc199f Mon Sep 17 00:00:00 2001
|
|
|
+From: Daniel Golle <[email protected]>
|
|
|
+Date: Mon, 5 Jan 2026 16:37:54 +0000
|
|
|
+Subject: [PATCH 1/5] net: phy: realtek: fix whitespace in struct phy_driver
|
|
|
+ initializers
|
|
|
+
|
|
|
+Consistently use tabs instead of spaces in struct phy_driver
|
|
|
+initializers.
|
|
|
+
|
|
|
+Signed-off-by: Daniel Golle <[email protected]>
|
|
|
+Reviewed-by: Maxime Chevallier <[email protected]>
|
|
|
+Link: https://patch.msgid.link/42b0fac53c5c5646707ce3f3a6dacd2bc082a5b2.1767630451.git.daniel@makrotopia.org
|
|
|
+Signed-off-by: Paolo Abeni <[email protected]>
|
|
|
+---
|
|
|
+ drivers/net/phy/realtek/realtek_main.c | 146 ++++++++++++-------------
|
|
|
+ 1 file changed, 73 insertions(+), 73 deletions(-)
|
|
|
+
|
|
|
+--- a/drivers/net/phy/realtek/realtek_main.c
|
|
|
++++ b/drivers/net/phy/realtek/realtek_main.c
|
|
|
+@@ -1976,7 +1976,7 @@ static irqreturn_t rtl8221b_handle_inter
|
|
|
+ static struct phy_driver realtek_drvs[] = {
|
|
|
+ {
|
|
|
+ PHY_ID_MATCH_EXACT(0x00008201),
|
|
|
+- .name = "RTL8201CP Ethernet",
|
|
|
++ .name = "RTL8201CP Ethernet",
|
|
|
+ .read_page = rtl821x_read_page,
|
|
|
+ .write_page = rtl821x_write_page,
|
|
|
+ }, {
|
|
|
+@@ -2102,7 +2102,7 @@ static struct phy_driver realtek_drvs[]
|
|
|
+ .name = "RTL8226B_RTL8221B 2.5Gbps PHY",
|
|
|
+ .get_features = rtl822x_get_features,
|
|
|
+ .config_aneg = rtl822x_config_aneg,
|
|
|
+- .config_init = rtl822xb_config_init,
|
|
|
++ .config_init = rtl822xb_config_init,
|
|
|
+ .get_rate_matching = rtl822xb_get_rate_matching,
|
|
|
+ .read_status = rtl822xb_read_status,
|
|
|
+ .suspend = genphy_suspend,
|
|
|
+@@ -2111,112 +2111,112 @@ static struct phy_driver realtek_drvs[]
|
|
|
+ .write_page = rtl821x_write_page,
|
|
|
+ }, {
|
|
|
+ PHY_ID_MATCH_EXACT(0x001cc838),
|
|
|
+- .name = "RTL8226-CG 2.5Gbps PHY",
|
|
|
+- .soft_reset = rtl822x_c45_soft_reset,
|
|
|
+- .get_features = rtl822x_c45_get_features,
|
|
|
+- .config_aneg = rtl822x_c45_config_aneg,
|
|
|
+- .config_init = rtl822x_config_init,
|
|
|
+- .read_status = rtl822xb_c45_read_status,
|
|
|
+- .suspend = genphy_c45_pma_suspend,
|
|
|
+- .resume = rtlgen_c45_resume,
|
|
|
++ .name = "RTL8226-CG 2.5Gbps PHY",
|
|
|
++ .soft_reset = rtl822x_c45_soft_reset,
|
|
|
++ .get_features = rtl822x_c45_get_features,
|
|
|
++ .config_aneg = rtl822x_c45_config_aneg,
|
|
|
++ .config_init = rtl822x_config_init,
|
|
|
++ .read_status = rtl822xb_c45_read_status,
|
|
|
++ .suspend = genphy_c45_pma_suspend,
|
|
|
++ .resume = rtlgen_c45_resume,
|
|
|
+ }, {
|
|
|
+ PHY_ID_MATCH_EXACT(0x001cc848),
|
|
|
+- .name = "RTL8226B-CG_RTL8221B-CG 2.5Gbps PHY",
|
|
|
+- .get_features = rtl822x_get_features,
|
|
|
+- .config_aneg = rtl822x_config_aneg,
|
|
|
+- .config_init = rtl822xb_config_init,
|
|
|
++ .name = "RTL8226B-CG_RTL8221B-CG 2.5Gbps PHY",
|
|
|
++ .get_features = rtl822x_get_features,
|
|
|
++ .config_aneg = rtl822x_config_aneg,
|
|
|
++ .config_init = rtl822xb_config_init,
|
|
|
+ .get_rate_matching = rtl822xb_get_rate_matching,
|
|
|
+- .read_status = rtl822xb_read_status,
|
|
|
+- .suspend = genphy_suspend,
|
|
|
+- .resume = rtlgen_resume,
|
|
|
+- .read_page = rtl821x_read_page,
|
|
|
+- .write_page = rtl821x_write_page,
|
|
|
++ .read_status = rtl822xb_read_status,
|
|
|
++ .suspend = genphy_suspend,
|
|
|
++ .resume = rtlgen_resume,
|
|
|
++ .read_page = rtl821x_read_page,
|
|
|
++ .write_page = rtl821x_write_page,
|
|
|
+ }, {
|
|
|
+ .match_phy_device = rtl8221b_vb_cg_c22_match_phy_device,
|
|
|
+- .name = "RTL8221B-VB-CG 2.5Gbps PHY (C22)",
|
|
|
++ .name = "RTL8221B-VB-CG 2.5Gbps PHY (C22)",
|
|
|
+ .probe = rtl822x_probe,
|
|
|
+- .get_features = rtl822x_get_features,
|
|
|
+- .config_aneg = rtl822x_config_aneg,
|
|
|
+- .config_init = rtl822xb_config_init,
|
|
|
++ .get_features = rtl822x_get_features,
|
|
|
++ .config_aneg = rtl822x_config_aneg,
|
|
|
++ .config_init = rtl822xb_config_init,
|
|
|
+ .get_rate_matching = rtl822xb_get_rate_matching,
|
|
|
+- .read_status = rtl822xb_read_status,
|
|
|
+- .suspend = genphy_suspend,
|
|
|
+- .resume = rtlgen_resume,
|
|
|
+- .read_page = rtl821x_read_page,
|
|
|
+- .write_page = rtl821x_write_page,
|
|
|
++ .read_status = rtl822xb_read_status,
|
|
|
++ .suspend = genphy_suspend,
|
|
|
++ .resume = rtlgen_resume,
|
|
|
++ .read_page = rtl821x_read_page,
|
|
|
++ .write_page = rtl821x_write_page,
|
|
|
+ }, {
|
|
|
+ .match_phy_device = rtl8221b_vb_cg_c45_match_phy_device,
|
|
|
+- .name = "RTL8221B-VB-CG 2.5Gbps PHY (C45)",
|
|
|
++ .name = "RTL8221B-VB-CG 2.5Gbps PHY (C45)",
|
|
|
+ .config_intr = rtl8221b_config_intr,
|
|
|
+ .handle_interrupt = rtl8221b_handle_interrupt,
|
|
|
+ .probe = rtl822x_probe,
|
|
|
+- .config_init = rtl822xb_config_init,
|
|
|
++ .config_init = rtl822xb_config_init,
|
|
|
+ .get_rate_matching = rtl822xb_get_rate_matching,
|
|
|
+- .get_features = rtl822x_c45_get_features,
|
|
|
+- .config_aneg = rtl822x_c45_config_aneg,
|
|
|
+- .read_status = rtl822xb_c45_read_status,
|
|
|
+- .suspend = genphy_c45_pma_suspend,
|
|
|
+- .resume = rtlgen_c45_resume,
|
|
|
++ .get_features = rtl822x_c45_get_features,
|
|
|
++ .config_aneg = rtl822x_c45_config_aneg,
|
|
|
++ .read_status = rtl822xb_c45_read_status,
|
|
|
++ .suspend = genphy_c45_pma_suspend,
|
|
|
++ .resume = rtlgen_c45_resume,
|
|
|
+ }, {
|
|
|
+ .match_phy_device = rtl8221b_vm_cg_c22_match_phy_device,
|
|
|
+- .name = "RTL8221B-VM-CG 2.5Gbps PHY (C22)",
|
|
|
++ .name = "RTL8221B-VM-CG 2.5Gbps PHY (C22)",
|
|
|
+ .probe = rtl822x_probe,
|
|
|
+- .get_features = rtl822x_get_features,
|
|
|
+- .config_aneg = rtl822x_config_aneg,
|
|
|
+- .config_init = rtl822xb_config_init,
|
|
|
++ .get_features = rtl822x_get_features,
|
|
|
++ .config_aneg = rtl822x_config_aneg,
|
|
|
++ .config_init = rtl822xb_config_init,
|
|
|
+ .get_rate_matching = rtl822xb_get_rate_matching,
|
|
|
+- .read_status = rtl822xb_read_status,
|
|
|
+- .suspend = genphy_suspend,
|
|
|
+- .resume = rtlgen_resume,
|
|
|
+- .read_page = rtl821x_read_page,
|
|
|
+- .write_page = rtl821x_write_page,
|
|
|
++ .read_status = rtl822xb_read_status,
|
|
|
++ .suspend = genphy_suspend,
|
|
|
++ .resume = rtlgen_resume,
|
|
|
++ .read_page = rtl821x_read_page,
|
|
|
++ .write_page = rtl821x_write_page,
|
|
|
+ }, {
|
|
|
+ .match_phy_device = rtl8221b_vm_cg_c45_match_phy_device,
|
|
|
+- .name = "RTL8221B-VM-CG 2.5Gbps PHY (C45)",
|
|
|
++ .name = "RTL8221B-VM-CG 2.5Gbps PHY (C45)",
|
|
|
+ .config_intr = rtl8221b_config_intr,
|
|
|
+ .handle_interrupt = rtl8221b_handle_interrupt,
|
|
|
+ .probe = rtl822x_probe,
|
|
|
+- .config_init = rtl822xb_config_init,
|
|
|
++ .config_init = rtl822xb_config_init,
|
|
|
+ .get_rate_matching = rtl822xb_get_rate_matching,
|
|
|
+- .get_features = rtl822x_c45_get_features,
|
|
|
+- .config_aneg = rtl822x_c45_config_aneg,
|
|
|
+- .read_status = rtl822xb_c45_read_status,
|
|
|
+- .suspend = genphy_c45_pma_suspend,
|
|
|
+- .resume = rtlgen_c45_resume,
|
|
|
++ .get_features = rtl822x_c45_get_features,
|
|
|
++ .config_aneg = rtl822x_c45_config_aneg,
|
|
|
++ .read_status = rtl822xb_c45_read_status,
|
|
|
++ .suspend = genphy_c45_pma_suspend,
|
|
|
++ .resume = rtlgen_c45_resume,
|
|
|
+ }, {
|
|
|
+ .match_phy_device = rtl8251b_c45_match_phy_device,
|
|
|
+- .name = "RTL8251B 5Gbps PHY",
|
|
|
++ .name = "RTL8251B 5Gbps PHY",
|
|
|
+ .probe = rtl822x_probe,
|
|
|
+- .get_features = rtl822x_get_features,
|
|
|
+- .config_aneg = rtl822x_config_aneg,
|
|
|
+- .read_status = rtl822x_read_status,
|
|
|
+- .suspend = genphy_suspend,
|
|
|
+- .resume = rtlgen_resume,
|
|
|
+- .read_page = rtl821x_read_page,
|
|
|
+- .write_page = rtl821x_write_page,
|
|
|
++ .get_features = rtl822x_get_features,
|
|
|
++ .config_aneg = rtl822x_config_aneg,
|
|
|
++ .read_status = rtl822x_read_status,
|
|
|
++ .suspend = genphy_suspend,
|
|
|
++ .resume = rtlgen_resume,
|
|
|
++ .read_page = rtl821x_read_page,
|
|
|
++ .write_page = rtl821x_write_page,
|
|
|
+ }, {
|
|
|
+ .match_phy_device = rtl_internal_nbaset_match_phy_device,
|
|
|
+- .name = "Realtek Internal NBASE-T PHY",
|
|
|
++ .name = "Realtek Internal NBASE-T PHY",
|
|
|
+ .flags = PHY_IS_INTERNAL,
|
|
|
+ .probe = rtl822x_probe,
|
|
|
+- .get_features = rtl822x_get_features,
|
|
|
+- .config_aneg = rtl822x_config_aneg,
|
|
|
+- .read_status = rtl822x_read_status,
|
|
|
+- .suspend = genphy_suspend,
|
|
|
+- .resume = rtlgen_resume,
|
|
|
+- .read_page = rtl821x_read_page,
|
|
|
+- .write_page = rtl821x_write_page,
|
|
|
++ .get_features = rtl822x_get_features,
|
|
|
++ .config_aneg = rtl822x_config_aneg,
|
|
|
++ .read_status = rtl822x_read_status,
|
|
|
++ .suspend = genphy_suspend,
|
|
|
++ .resume = rtlgen_resume,
|
|
|
++ .read_page = rtl821x_read_page,
|
|
|
++ .write_page = rtl821x_write_page,
|
|
|
+ .read_mmd = rtl822x_read_mmd,
|
|
|
+ .write_mmd = rtl822x_write_mmd,
|
|
|
+ }, {
|
|
|
+ PHY_ID_MATCH_EXACT(0x001ccad0),
|
|
|
+ .name = "RTL8224 2.5Gbps PHY",
|
|
|
+ .flags = PHY_POLL_CABLE_TEST,
|
|
|
+- .get_features = rtl822x_c45_get_features,
|
|
|
+- .config_aneg = rtl822x_c45_config_aneg,
|
|
|
+- .read_status = rtl822x_c45_read_status,
|
|
|
+- .suspend = genphy_c45_pma_suspend,
|
|
|
+- .resume = rtlgen_c45_resume,
|
|
|
++ .get_features = rtl822x_c45_get_features,
|
|
|
++ .config_aneg = rtl822x_c45_config_aneg,
|
|
|
++ .read_status = rtl822x_c45_read_status,
|
|
|
++ .suspend = genphy_c45_pma_suspend,
|
|
|
++ .resume = rtlgen_c45_resume,
|
|
|
+ .cable_test_start = rtl8224_cable_test_start,
|
|
|
+ .cable_test_get_status = rtl8224_cable_test_get_status,
|
|
|
+ }, {
|
|
|
+@@ -2235,7 +2235,7 @@ static struct phy_driver realtek_drvs[]
|
|
|
+ }, {
|
|
|
+ PHY_ID_MATCH_EXACT(0x001ccb00),
|
|
|
+ .name = "RTL9000AA_RTL9000AN Ethernet",
|
|
|
+- .features = PHY_BASIC_T1_FEATURES,
|
|
|
++ .features = PHY_BASIC_T1_FEATURES,
|
|
|
+ .config_init = rtl9000a_config_init,
|
|
|
+ .config_aneg = rtl9000a_config_aneg,
|
|
|
+ .read_status = rtl9000a_read_status,
|