rockchip64: Fix RTL8211 phy LED dts setting patch
This commit is contained in:
parent
59b45120eb
commit
79910a5dd7
@ -1,18 +1,18 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From ccdd6b8919f09b003f0881648ea937743c825fd7 Mon Sep 17 00:00:00 2001
|
||||
From: Ricardo Pardini <ricardo@pardini.net>
|
||||
Date: Mon, 20 Oct 2025 21:42:28 +0200
|
||||
Subject: net: phy: realtek: add rtl8211x LED configuration from OF
|
||||
Subject: [PATCH] net: phy: realtek: add rtl8211x LED configuration from OF
|
||||
|
||||
Signed-off-by: retro98boy <retro98boy@qq.com>
|
||||
---
|
||||
drivers/net/phy/realtek/realtek_main.c | 11 ++++++++++
|
||||
drivers/net/phy/realtek/realtek_main.c | 11 +++++++++++
|
||||
1 file changed, 11 insertions(+)
|
||||
|
||||
diff --git a/drivers/net/phy/realtek/realtek_main.c b/drivers/net/phy/realtek/realtek_main.c
|
||||
index 111111111111..222222222222 100644
|
||||
index 6ff038520..c77a0d169 100644
|
||||
--- a/drivers/net/phy/realtek/realtek_main.c
|
||||
+++ b/drivers/net/phy/realtek/realtek_main.c
|
||||
@@ -221,6 +221,15 @@ static int rtl821x_modify_ext_page(struct phy_device *phydev, u16 ext_page,
|
||||
@@ -248,6 +248,15 @@ static int rtl821x_modify_ext_page(struct phy_device *phydev, u16 ext_page,
|
||||
return phy_restore_page(phydev, oldpage, ret);
|
||||
}
|
||||
|
||||
@ -28,15 +28,15 @@ index 111111111111..222222222222 100644
|
||||
static int rtl821x_probe(struct phy_device *phydev)
|
||||
{
|
||||
struct device *dev = &phydev->mdio.dev;
|
||||
@@ -254,6 +263,8 @@ static int rtl8211f_probe(struct phy_device *phydev)
|
||||
if (ret < 0)
|
||||
@@ -712,6 +721,8 @@ static int rtl8211f_config_init(struct phy_device *phydev)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
+ rtl821x_led_of_init(phydev);
|
||||
+
|
||||
/* Disable all PME events */
|
||||
ret = phy_write_paged(phydev, RTL8211F_WOL_PAGE,
|
||||
RTL8211F_WOL_SETTINGS_EVENTS, 0);
|
||||
ret = rtl8211f_config_clk_out(phydev);
|
||||
if (ret) {
|
||||
dev_err(dev, "clkout configuration failed: %pe\n",
|
||||
--
|
||||
Armbian
|
||||
2.53.0
|
||||
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From ccdd6b8919f09b003f0881648ea937743c825fd7 Mon Sep 17 00:00:00 2001
|
||||
From: Ricardo Pardini <ricardo@pardini.net>
|
||||
Date: Mon, 20 Oct 2025 21:42:28 +0200
|
||||
Subject: net: phy: realtek: add rtl8211x LED configuration from OF
|
||||
Subject: [PATCH] net: phy: realtek: add rtl8211x LED configuration from OF
|
||||
|
||||
Signed-off-by: retro98boy <retro98boy@qq.com>
|
||||
---
|
||||
drivers/net/phy/realtek/realtek_main.c | 11 ++++++++++
|
||||
drivers/net/phy/realtek/realtek_main.c | 11 +++++++++++
|
||||
1 file changed, 11 insertions(+)
|
||||
|
||||
diff --git a/drivers/net/phy/realtek/realtek_main.c b/drivers/net/phy/realtek/realtek_main.c
|
||||
index 111111111111..222222222222 100644
|
||||
index 6ff038520..c77a0d169 100644
|
||||
--- a/drivers/net/phy/realtek/realtek_main.c
|
||||
+++ b/drivers/net/phy/realtek/realtek_main.c
|
||||
@@ -248,6 +248,15 @@ static int rtl821x_modify_ext_page(struct phy_device *phydev, u16 ext_page,
|
||||
@ -28,15 +28,15 @@ index 111111111111..222222222222 100644
|
||||
static int rtl821x_probe(struct phy_device *phydev)
|
||||
{
|
||||
struct device *dev = &phydev->mdio.dev;
|
||||
@@ -281,6 +290,8 @@ static int rtl8211f_probe(struct phy_device *phydev)
|
||||
if (ret < 0)
|
||||
@@ -712,6 +721,8 @@ static int rtl8211f_config_init(struct phy_device *phydev)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
+ rtl821x_led_of_init(phydev);
|
||||
+
|
||||
/* Disable all PME events */
|
||||
ret = phy_write_paged(phydev, RTL8211F_WOL_PAGE,
|
||||
RTL8211F_WOL_SETTINGS_EVENTS, 0);
|
||||
ret = rtl8211f_config_clk_out(phydev);
|
||||
if (ret) {
|
||||
dev_err(dev, "clkout configuration failed: %pe\n",
|
||||
--
|
||||
Armbian
|
||||
2.53.0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user