/* phy_stop - Bring down the PHY link, and stop checking the status @phydev: target phy_device struct  */
void phy_stop(struct phy_device *phydev)
/* phy_stop - Bring down the PHY link, and stop checking the status @phydev: target phy_device struct  */
void phy_stop(struct phy_device *phydev)
{
	mutex_lock(&phydev->lock);
	if (PHY_HALTED == phydev->state)
		goto out_unlock;
	if (phydev->irq != PHY_POLL) {
		phy_config_interrupt(phydev, PHY_INTERRUPT_DISABLED);
		phy_clear_interrupt(phydev);
	}
	phydev->state = PHY_HALTED;
out_unlock:
	mutex_unlock(&phydev->lock);
}