ath25: switch default kernel to 5.15
[openwrt/staging/wigyori.git] / target / linux / realtek / files-5.10 / drivers / net / phy / rtl83xx-phy.c
index 4175b950435ebd86315589f20ac11e9df2b62246..491ceb48b6a0a39a899b01467c3e5d22940f5b48 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <linux/module.h>
 #include <linux/delay.h>
+#include <linux/of.h>
 #include <linux/phy.h>
 #include <linux/netdevice.h>
 #include <linux/firmware.h>
@@ -1697,7 +1698,6 @@ void rtl9300_force_sds_mode(int sds, phy_interface_t phy_if)
        u32 v, cr_0, cr_1, cr_2;
        u32 m_bit, l_bit;
 
-       pr_info("%s --------------------- serdes %d forcing to %x ...\n", __func__, sds, sds_mode);
        pr_info("%s: SDS: %d, mode %d\n", __func__, sds, phy_if);
        switch (phy_if) {
        case PHY_INTERFACE_MODE_SGMII:
@@ -1740,7 +1740,7 @@ void rtl9300_force_sds_mode(int sds, phy_interface_t phy_if)
                return;
        }
 
-       pr_info("%s: SDS mode %x\n", __func__, sds_mode);
+       pr_info("%s --------------------- serdes %d forcing to %x ...\n", __func__, sds, sds_mode);
        // Power down SerDes
        rtl9300_sds_field_w(sds, 0x20, 0, 7, 6, 0x3);
        if (sds == 5) pr_info("%s after %x\n", __func__, rtl930x_read_sds_phy(sds, 0x20, 0));