[OpenWrt-Devel] [PATCH 2/2] kernel: rtl8367b: add configuration for extif2

Chuanhong Guo gch981213 at gmail.com
Mon Mar 16 23:22:39 EDT 2020


On Mon, Mar 16, 2020 at 6:37 PM Chuanhong Guo <gch981213 at gmail.com> wrote:
> +#define   RTL8367B_DIS2_RGMII_SHIFT            0
> +#define   RTL8367B_DIS2_RGMII_MASK             0xf
> +
> +#define RTL8367B_EXT_RGMXF_REG(_x)             \
> +         ((_x) == 2 ? 0x13c5 : 0x1306 + (_x))
>  #define   RTL8367B_EXT_RGMXF_DUMMY0_SHIFT      5
>  #define   RTL8367B_EXT_RGMXF_DUMMY0_MASK       0x7ff
>  #define   RTL8367B_EXT_RGMXF_TXDELAY_SHIFT     3

A change here is missing during my manual patch application:
--- a/target/linux/generic/files/drivers/net/phy/rtl8367b.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8367b.c
@@ -176,7 +176,8 @@
 #define   RTL8367B_EXT_RGMXF_TXDELAY_MASK      1
 #define   RTL8367B_EXT_RGMXF_RXDELAY_MASK      0x7

-#define RTL8367B_DI_FORCE_REG(_x)              (0x1310 + (_x))
+#define RTL8367B_DI_FORCE_REG(_x)              \
+         ((_x) == 2 ? 0x13c4 : 0x1310 + (_x))
 #define   RTL8367B_DI_FORCE_MODE               BIT(12)
 #define   RTL8367B_DI_FORCE_NWAY               BIT(7)
 #define   RTL8367B_DI_FORCE_TXPAUSE            BIT(6)

I've fixed this one in my staging tree.

-- 
Regards,
Chuanhong Guo

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list