openwrt/target/linux
Robert Marko acc60744a2 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>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:07:24 +00:00
..
apm821xx apm821xx: Netgear WNDR4700 limit kernel lzma dictionary 2021-09-01 08:07:23 +00:00
arc770 arc770: drop support for kernel 4.14 2021-09-01 08:06:56 +00:00
archs38 treewide: use wpad-basic-wolfssl as default 2021-09-01 08:06:52 +00:00
armvirt armvirt: README: rename it from LEDE to OpenWrt 2021-09-01 08:07:21 +00:00
at91 kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
ath25 ath25: fix preinit Ethernet port configuration 2021-09-01 08:06:58 +00:00
ath79 ath79: expand factory.bin support for some Senao Engenius boards 2021-09-01 08:07:23 +00:00
bcm27xx kernel: bump 5.4 to 5.4.85 2021-09-01 08:07:23 +00:00
bcm47xx kernel: bump 5.4 to 5.4.80 2021-09-01 08:07:15 +00:00
bcm53xx kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
bcm63xx kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
gemini kernel: remove support for kernel 4.19 2021-09-01 08:07:08 +00:00
generic kernel: only strip proc for small flash devices 2021-09-01 08:07:23 +00:00
imx6 kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
ipq40xx ipq40xx: net: ethernet: edma: use generic ksettings functions 2021-09-01 08:07:24 +00:00
ipq806x ipq806x: remove unneeded empty lines 2021-09-01 08:07:24 +00:00
ipq807x kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
kirkwood kirkwood: add support for Seagate BlackArmor NAS220 2021-09-01 08:07:23 +00:00
lantiq kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
layerscape kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
malta kernel: remove support for kernel 4.19 2021-09-01 08:07:08 +00:00
mediatek kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
mpc85xx kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
mvebu kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
mxs treewide: make dependency on kmod-usb-net selective 2021-09-01 08:06:49 +00:00
octeon kernel: bump 5.4 to 5.4.75 2021-09-01 08:07:10 +00:00
octeontx kernel: move F2FS_FS_XATTR and F2FS_STAT_FS symbols to generic 2021-09-01 08:07:04 +00:00
omap kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
oxnas kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
pistachio kernel: move some disabled symbols to generic 2021-09-01 08:07:23 +00:00
ramips ramips: add support for ELECOM WRC-1167GST2 2021-09-01 08:07:24 +00:00
realtek realtek: use kernel defined halt 2021-09-01 08:07:23 +00:00
rockchip kernel: bump 5.4 to 5.4.85 2021-09-01 08:07:23 +00:00
sunxi sunxi: add support for Libre Computer ALL-H3-CC H5 2021-09-01 08:07:11 +00:00
tegra tegra: image: remove unnecessary assumptions from bootscript 2021-09-01 08:07:22 +00:00
uml kernel: bump 5.4 to 5.4.71 2021-09-01 08:07:05 +00:00
x86 x86: enable CONFIG_MMC_SDHCI_ACPI for x86_64 2021-09-01 08:07:16 +00:00
zynq kernel: remove support for kernel 4.19 2021-09-01 08:07:08 +00:00
Makefile build: add 'make kernel_xconfig' command 2020-07-08 16:07:05 +02:00