From 411e8ce0f1f8dcdb36886516066559a7b09185fd Mon Sep 17 00:00:00 2001 From: Feng Zhang Date: Thu, 2 Nov 2023 19:31:28 +0800 Subject: [PATCH] linux: rock pi e: rtl8211f: use full PHY_ID Use the full PHY_ID to avoid confusion with other phys. Signed-off-by: Feng Zhang --- .../0002-Example-Repair-Ethernet-port-indicators.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linux/stable/0034-rock-pi-e/0002-Example-Repair-Ethernet-port-indicators.patch b/linux/stable/0034-rock-pi-e/0002-Example-Repair-Ethernet-port-indicators.patch index d7b8868f..8b14790d 100644 --- a/linux/stable/0034-rock-pi-e/0002-Example-Repair-Ethernet-port-indicators.patch +++ b/linux/stable/0034-rock-pi-e/0002-Example-Repair-Ethernet-port-indicators.patch @@ -16,8 +16,8 @@ index 693197302..65b4dbdff 100644 #define STMMAC_ALIGN(x) ALIGN(ALIGN(x, SMP_CACHE_BYTES), 16) #define TSO_MAX_BUFF_SIZE (SZ_16K - 1) -+#define RTL8211F_PHY_UID 0x001cc800 -+#define RTL8211F_PHY_UID_MASK 0x001ffc00 ++#define RTL8211F_PHY_ID 0x001cc916 ++#define RTL8211F_PHY_ID_MASK 0x001fffff +#define RTL8211F_PAGE_SELECT 0x1f +#define RTL8211F_LCR_ADDR 0x10 +#define RTL8211F_EEELCR_ADDR 0x11 @@ -75,13 +75,13 @@ index 693197302..65b4dbdff 100644 priv->plat->dump_debug_regs(priv->plat->bsp_priv); + /* Register fixup for PHY RTL8211F */ -+ ret = phy_register_fixup_for_uid(RTL8211F_PHY_UID, RTL8211F_PHY_UID_MASK, phy_rtl8211f_led_fixup); ++ ret = phy_register_fixup_for_uid(RTL8211F_PHY_ID, RTL8211F_PHY_ID_MASK, phy_rtl8211f_led_fixup); + if (ret) { + dev_warn(priv->device, "Failed to register fixup for PHY RTL8211F.\n"); + } + + /* Register fixup for PHY RTL8211F disabling EEE */ -+ ret = phy_register_fixup_for_uid(RTL8211F_PHY_UID, RTL8211F_PHY_UID_MASK, phy_rtl8211f_eee_fixup); ++ ret = phy_register_fixup_for_uid(RTL8211F_PHY_ID, RTL8211F_PHY_ID_MASK, phy_rtl8211f_eee_fixup); + if (ret) { + dev_warn(priv->device, "Failed to register fixup for PHY RTL8211F disabling EEE.\n"); + }