openwrt/target/linux
Robert Marko 9d69505194 ipq40xx: net: ethernet: edma: use generic ksettings functions
Since we now have a proper PHY driver for QCA807x and AR803x has already
been supported properly there is no need for the driver to be poking
on PHY registers for ethtool ops.

So, lets simply use the generic
phy_ethtool_ksettings_get/phy_ethtool_ksettings_set functions.

This also has the advantage of properly populating stuff other than
speeds like, transceiver type, MDI-X etc.

ethtool before:
root@OpenWrt:/# ethtool eth1
Settings for eth1:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                1000baseX/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/Full
                                1000baseX/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

ethtool after:
root@OpenWrt:/# ethtool eth1
Settings for eth1:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                1000baseX/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/Full
                                1000baseX/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: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 4
        Transceiver: external
        Auto-negotiation: on
        MDI-X: off (auto)
        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-12-23 16:36:08 +01:00
..
apm821xx apm821xx: Netgear WNDR4700 limit kernel lzma dictionary 2020-12-22 19:11:50 +01:00
arc770 arc770: drop support for kernel 4.14 2020-09-02 16:29:22 +02:00
archs38 treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
armvirt armvirt: README: rename it from LEDE to OpenWrt 2020-12-14 21:38:10 +00:00
at91 kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
ath25 ath25: fix preinit Ethernet port configuration 2020-09-10 18:52:15 +02:00
ath79 ath79: expand factory.bin support for some Senao Engenius boards 2020-12-22 19:11:50 +01:00
bcm27xx kernel: bump 5.4 to 5.4.85 2020-12-22 19:11:50 +01:00
bcm47xx kernel: bump 5.4 to 5.4.80 2020-11-26 11:17:55 +01:00
bcm53xx kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
bcm63xx kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
gemini kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
generic kernel: only strip proc for small flash devices 2020-12-22 19:11:50 +01:00
imx6 kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
ipq40xx ipq40xx: net: ethernet: edma: use generic ksettings functions 2020-12-23 16:36:08 +01:00
ipq806x ipq806x: remove unneeded empty lines 2020-12-22 21:44:57 +01:00
ipq807x kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
kirkwood kirkwood: add support for Seagate BlackArmor NAS220 2020-12-22 19:11:50 +01:00
lantiq kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
layerscape kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
malta kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
mediatek kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
mpc85xx kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
mvebu kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
mxs treewide: make dependency on kmod-usb-net selective 2020-08-10 12:54:30 +02:00
octeon kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
octeontx kernel: move F2FS_FS_XATTR and F2FS_STAT_FS symbols to generic 2020-10-09 23:20:19 +01:00
omap kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
oxnas kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
pistachio kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
ramips ramips: add support for ELECOM WRC-1167GST2 2020-12-22 21:44:57 +01:00
realtek realtek: use kernel defined halt 2020-12-22 19:11:50 +01:00
rockchip kernel: bump 5.4 to 5.4.85 2020-12-22 19:11:50 +01:00
sunxi sunxi: add support for Libre Computer ALL-H3-CC H5 2020-11-12 18:21:17 +01:00
tegra tegra: image: remove unnecessary assumptions from bootscript 2020-12-22 18:59:10 +01:00
uml kernel: bump 5.4 to 5.4.71 2020-10-15 17:46:54 +02:00
x86 x86: enable CONFIG_MMC_SDHCI_ACPI for x86_64 2020-12-03 23:51:07 -10:00
zynq kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
Makefile build: add 'make kernel_xconfig' command 2020-07-08 16:07:05 +02:00