ramips: Power down phy on disabled switch ports
authorGabor Juhos <juhosg@openwrt.org>
Wed, 29 Aug 2012 10:37:45 +0000 (10:37 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 29 Aug 2012 10:37:45 +0000 (10:37 +0000)
commit9ea1da3c301bc96bdc09a3f1e31de70076ae6c1a
tree62c19d9ca52472e73570ba5e2d1048ba947a40e9
parent98ec68aa2512f4ecb259da9abb23a1325d2cecd3
ramips: Power down phy on disabled switch ports

Power down phy on disabled switch ports.

Haven't measured this myself yet, but according to this
http://www.8devices.com/community/viewtopic.php?f=6&t=156
it can save about 300mW of power.

[juhosg: fix checkpatch warning]

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33304 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ramips/files/drivers/net/ethernet/ramips/ramips_esw.c