net: bcmgenet: add EEE support
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 26 Nov 2014 05:16:35 +0000 (21:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2014 20:08:05 +0000 (15:08 -0500)
commit6ef398ea60d931b97d69ed080bd0bd00fac38ec6
treecab57c23b1a3506cd0ae88c80540f475d517b219
parentd0a6db8dd05da6d65ac1ba111da911de6a34d76a
net: bcmgenet: add EEE support

Allow enabling and disabling EEE using the designated ethtool getters
and setters. GENET allows controlling EEE at the UniMAC, RBUF and TBUF
levels. We also take care of restoring EEE after a suspend/resume cycle
if it was enabled prior to suspending.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h