Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux: rock pi e: rtl8211f: use full PHY_ID #63

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
RadxaYuntian marked this conversation as resolved.
Show resolved Hide resolved
+ 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