aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 6cd09098427c..cd6f637cbbfb 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -825,6 +825,16 @@ static inline bool phy_interrupt_is_valid(struct phy_device *phydev)
825} 825}
826 826
827/** 827/**
828 * phy_polling_mode - Convenience function for testing whether polling is
829 * used to detect PHY status changes
830 * @phydev: the phy_device struct
831 */
832static inline bool phy_polling_mode(struct phy_device *phydev)
833{
834 return phydev->irq == PHY_POLL;
835}
836
837/**
828 * phy_is_internal - Convenience function for testing if a PHY is internal 838 * phy_is_internal - Convenience function for testing if a PHY is internal
829 * @phydev: the phy_device struct 839 * @phydev: the phy_device struct
830 */ 840 */
@@ -942,6 +952,8 @@ void phy_start(struct phy_device *phydev);
942void phy_stop(struct phy_device *phydev); 952void phy_stop(struct phy_device *phydev);
943int phy_start_aneg(struct phy_device *phydev); 953int phy_start_aneg(struct phy_device *phydev);
944int phy_aneg_done(struct phy_device *phydev); 954int phy_aneg_done(struct phy_device *phydev);
955int phy_speed_down(struct phy_device *phydev, bool sync);
956int phy_speed_up(struct phy_device *phydev);
945 957
946int phy_stop_interrupts(struct phy_device *phydev); 958int phy_stop_interrupts(struct phy_device *phydev);
947int phy_restart_aneg(struct phy_device *phydev); 959int phy_restart_aneg(struct phy_device *phydev);