]> asedeno.scripts.mit.edu Git - linux.git/commit
cpsw: ethtool: add support for getting/setting EEE registers
authorYegor Yefremov <yegorslists@googlemail.com>
Mon, 28 Nov 2016 08:41:33 +0000 (09:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 15:04:10 +0000 (10:04 -0500)
commita090994980a15f8cc14fc188b5929bd61d2ae9c3
tree84c24f4887c52852019e2809de8ea9b515664003
parent93ba2222550415e61f773a8e2ecd1f2a665f5ef5
cpsw: ethtool: add support for getting/setting EEE registers

Add the ability to query and set Energy Efficient Ethernet parameters
via ethtool for applicable devices.

This patch doesn't activate full EEE support in cpsw driver, but it
enables reading and writing EEE advertising settings. This way one
can disable advertising EEE for certain speeds.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Acked-by: Rami Rosen <roszenrami@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c