Name

phy_start_aneg_priv — start auto-negotiation for this PHY device

Synopsis

int phy_start_aneg_priv (struct phy_device * phydev,
 bool sync);
 

Arguments

struct phy_device * phydev

the phy_device struct

bool sync

indicate whether we should wait for the workqueue cancelation

Description

Sanitizes the settings (if we're not autonegotiating them), and then calls the driver's config_aneg function. If the PHYCONTROL Layer is operating, we change the state to reflect the beginning of Auto-negotiation or forcing.