patches-6.6: fix patch for linux-6.6.19

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2024-03-02 00:51:21 +08:00
parent cda23b81e8
commit ee8ccdf1dd

View File

@ -4,9 +4,11 @@ Date: Mon, 3 Apr 2023 23:26:04 +0800
Subject: [PATCH] net: phy: realtek: add LED configuration from OF for 8211f Subject: [PATCH] net: phy: realtek: add LED configuration from OF for 8211f
--- ---
drivers/net/phy/realtek.c | 9 +++++++++ drivers/net/phy/realtek.c | 12 ++++++++++++
1 file changed, 9 insertions(+) 1 file changed, 12 insertions(+)
diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
index 337899c69..6d3b30473 100644
--- a/drivers/net/phy/realtek.c --- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c
@@ -28,6 +28,8 @@ @@ -28,6 +28,8 @@
@ -18,7 +20,7 @@ Subject: [PATCH] net: phy: realtek: add LED configuration from OF for 8211f
#define RTL8211F_PHYCR1 0x18 #define RTL8211F_PHYCR1 0x18
#define RTL8211F_PHYCR2 0x19 #define RTL8211F_PHYCR2 0x19
#define RTL8211F_INSR 0x1d #define RTL8211F_INSR 0x1d
@@ -356,6 +358,7 @@ static int rtl8211f_config_init(struct p @@ -347,6 +349,7 @@ static int rtl8211f_config_init(struct phy_device *phydev)
struct rtl821x_priv *priv = phydev->priv; struct rtl821x_priv *priv = phydev->priv;
struct device *dev = &phydev->mdio.dev; struct device *dev = &phydev->mdio.dev;
u16 val_txdly, val_rxdly; u16 val_txdly, val_rxdly;
@ -26,8 +28,8 @@ Subject: [PATCH] net: phy: realtek: add LED configuration from OF for 8211f
int ret; int ret;
ret = phy_modify_paged_changed(phydev, 0xa43, RTL8211F_PHYCR1, ret = phy_modify_paged_changed(phydev, 0xa43, RTL8211F_PHYCR1,
@@ -432,6 +435,15 @@ static int rtl8211f_config_init(struct p @@ -422,6 +425,15 @@ static int rtl8211f_config_init(struct phy_device *phydev)
} return ret;
} }
+ ret = of_property_read_u32(dev->of_node, + ret = of_property_read_u32(dev->of_node,
@ -42,3 +44,6 @@ Subject: [PATCH] net: phy: realtek: add LED configuration from OF for 8211f
return genphy_soft_reset(phydev); return genphy_soft_reset(phydev);
} }
--
2.42.0