• Giuseppe Cavallaro's avatar
    phy: power management support · 0f0ca340
    Giuseppe Cavallaro authored
    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: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    0f0ca340
mdio_bus.c 7.47 KB