Someone working on kernel 5.9?

Andrey Jr. Melnikov temnota.am at gmail.com
Wed Nov 11 05:54:49 EST 2020


Ansuel Smith <ansuelsmth at gmail.com> wrote:
> If you want I can port 5.9 to ipq806x and check if there is any
> problem. That way it will be ready when 5.10 is released (i think
> minimal change from 5.9 to 5.10)
tsense patches not apply, ar8216 driver need small fix:

diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c
index 0b0348bfdf..7b9cdc6da4 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8216.c
@@ -887,7 +887,12 @@ ar8216_phy_write(struct ar8xxx_priv *priv, int addr, int regnum, u16 val)
 static int
 ar8229_hw_init(struct ar8xxx_priv *priv)
 {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)
+       phy_interface_t phy_if_mode;
+       int err;
+#else
        int phy_if_mode;
+#endif
 
        if (priv->initialized)
                return 0;
@@ -895,8 +900,13 @@ ar8229_hw_init(struct ar8xxx_priv *priv)
        ar8xxx_write(priv, AR8216_REG_CTRL, AR8216_CTRL_RESET);
        ar8xxx_reg_wait(priv, AR8216_REG_CTRL, AR8216_CTRL_RESET, 0, 1000);
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)
+       err = of_get_phy_mode(priv->pdev->of_node, &phy_if_mode);
+       if (err)
+               return err;
+#else
        phy_if_mode = of_get_phy_mode(priv->pdev->of_node);
-
+#endif
        if (phy_if_mode == PHY_INTERFACE_MODE_GMII) {
                ar8xxx_write(priv, AR8229_REG_OPER_MODE0,
                                 AR8229_OPER_MODE0_MAC_GMII_EN);

> > Koen Vandeputte  [2020-10-29 13:11:57]: Hi, FYI nbd has 5.9 WIP in his staging tree. Someone has already reported success running it on mvebu IIRC. Cheers, Petr

for mt7621 platform:

mt76 driver need update or revert 616d91b68cd56bcb1954b6a5af7d542401fde772 mainline commit.
mt7621-pci need patch http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2020-November/148452.html
at803x patch need rebase (mainline already have at803x_config_aneg() function)
drivers/net/ethernet/ralink/soc_mt7620.c, /drivers/net/ethernet/ralink/mdio.c need same patch (as above) for of_get_phy_mode()

xiaomi mir3g, ubnt er-x sfp, mikrotik rb750gr3 targets is working (without PPE, it's always BUSY).




More information about the openwrt-devel mailing list