1. NAME

genphy_config_advert - sanitize and advertise auto-negotiation parameters

2. SYNOPSIS

int genphy_config_advert(struct phy_device *  phydev );

3. ARGUMENTS

phydev
    target phy_device struct

4. DESCRIPTION

Writes MII_ADVERTISE with the appropriate values, after sanitizing the values to make sure we only advertise what is supported. Returns < 0 on error, 0 if the PHYAqs advertisement hasnAqt changed, and > 0 if it has changed.

5. COPYRIGHT