]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ethernet: freescale: set FEC ethtool regs version
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 14 Feb 2019 16:15:35 +0000 (11:15 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 17:45:35 +0000 (12:45 -0500)
commitf9bcc9f3ee4fbbe8f11dfec76745476f5780517e
treee0e5c6abb45400c8b47ad0399335145d7f2893eb
parentc969c6e7ab8cb42b5c787c567615474fdbad9d6a
net: ethernet: freescale: set FEC ethtool regs version

Currently the ethtool_regs version is set to 0 for FEC devices.

Use this field to store the register dump version exposed by the
kernel. The choosen version 2 corresponds to the kernel compile test:

        #if defined(CONFIG_M523x) || defined(CONFIG_M527x)
        || defined(CONFIG_M528x) || defined(CONFIG_M520x)
        || defined(CONFIG_M532x) || defined(CONFIG_ARM)
        || defined(CONFIG_ARM64) || defined(CONFIG_COMPILE_TEST)

and version 1 corresponds to the opposite. Binaries of ethtool unaware
of this version will dump the whole set as usual.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c