tn3399_openwrt/target/linux/ipq40xx
Robert Marko 72c3997003 ipq40xx: 5.4: fix ethernet driver
In 5.4 kernel old u32 array way of setting network features was dropped and linkmode is now the only way.
So lets migrate the EDMA driver to support linkmode.
Also, old get/set settings API for ethtool is also dropped so lets convert to new ksettings API while at it as it demands linkmode.

Now, gigabit works properly as well as ethtool.
Previously you would get this in ethtool:
root@OpenWrt:/# ethtool eth1
Settings for eth1:
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x00000000 (0)

        Link detected: yes

Now, features are properly advertised:
root@OpenWrt:/# ethtool eth1
Settings for eth1:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: No
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 4
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x00000000 (0)

        Link detected: yes

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2020-03-16 22:21:45 +01:00
..
base-files ipq40xx: add support for 8devices Habanero DVK 2020-03-09 00:53:50 +01:00
files-4.19/arch/arm/boot/dts ipq40xx: add support for 8devices Habanero DVK 2020-03-09 00:53:50 +01:00
files-5.4 ipq40xx: 5.4: fix ethernet driver 2020-03-16 22:21:45 +01:00
generic ipqx0xx: add Generic subtarget 2019-08-22 21:15:28 +02:00
image ipq40xx: replace ${} with $() 2020-03-11 19:24:37 +01:00
patches-4.19 generic: 4.19: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
patches-5.4 ipq40xx: 5.4: fix networking PHY driver 2020-03-16 22:21:45 +01:00
profiles
config-4.19 ipq40xx: add IPQ4019 SD/MMC controller support 2020-03-09 00:53:50 +01:00
config-5.4 ipq40xx: 5.4: enable NAND 2020-03-15 15:26:34 +01:00
Makefile ipq40xx: add v5.4 support 2020-02-28 17:50:46 +01:00