]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: provide family-specific PHY power up/down operations
authorBruce Allan <bruce.w.allan@intel.com>
Tue, 1 Dec 2009 15:47:22 +0000 (15:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Dec 2009 08:35:52 +0000 (00:35 -0800)
commit2f8676f2d85dabd997514b0ec5b0ae1de656df92
tree9cc8bc9ce40587590fcea9d80e134adaf54567b2
parent4d115cc89c5b3ab5ac82507aa9ce2a3e8f8c8af0
e1000e: provide family-specific PHY power up/down operations

The different families (80003es2lan, 8257x, ICHx/PCH) supported by the
driver each have their own conditions when the PHY can be powered down.
This patch rewrites the PHY power up/down code to fit with the family-
specific style used in the driver.  All pre-existing calls to power up or
down the PHY remain untouched.  A new call to power down the PHY when
removing the driver when the interface is down replaces the current call
to reset the PHY in order to reduce power consumption.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/82571.c
drivers/net/e1000e/e1000.h
drivers/net/e1000e/es2lan.c
drivers/net/e1000e/hw.h
drivers/net/e1000e/ich8lan.c
drivers/net/e1000e/netdev.c
drivers/net/e1000e/phy.c