Skip to content

Commit

Permalink
Merge pull request #63 from vamrs-feng/main
Browse files Browse the repository at this point in the history
linux: rock pi e: rtl8211f: use full PHY_ID
  • Loading branch information
RadxaYuntian authored Nov 7, 2023
2 parents cc18571 + 1c7137f commit 7bed9f0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 0xffffffff
+#define RTL8211F_PAGE_SELECT 0x1f
+#define RTL8211F_LCR_ADDR 0x10
+#define RTL8211F_EEELCR_ADDR 0x11
Expand Down Expand Up @@ -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");
+ }
Expand Down

0 comments on commit 7bed9f0

Please sign in to comment.