]> bbs.cooldavid.org Git - net-next-2.6.git/commit
phy: power management support
authorGiuseppe Cavallaro <peppe.cavallaro@st.com>
Sat, 29 Nov 2008 00:24:56 +0000 (16:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Nov 2008 00:24:56 +0000 (16:24 -0800)
commit0f0ca340e57bd7446855fefd07a64249acf81223
tree9a3af0f86f8bcce9eb86a38bf4dd5f4a2c5da2d1
parent914804b95caa61c633431262044034ab05c78ba4
phy: power management support

This patch adds the power management support into the physical
abstraction layer.

Suspend and resume functions respectively turns on/off the bit 11
into the PHY Basic mode control register.
Generic PHY device starts supporting PM.

In order to support the wake-on LAN and avoid to put in power down
the PHY device, the MDIO is aware of what the Ethernet device wants to do.

Voluntary, no CONFIG_PM defines were added into the sources.
Also generic suspend/resume functions are exported to allow
other drivers use them (such as genphy_config_aneg etc.).

Within the phy_driver_register function, we need to remove the
memset. It overrides the device driver owner and it is not good.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c
drivers/net/phy/phy_device.c
include/linux/phy.h