aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2018-08-28 12:58:03 -0400
committerTony Lindgren <tony@atomide.com>2018-08-28 12:58:03 -0400
commitea4d65f14f6aaa53e379b93c5544245ef081b3e7 (patch)
treea15485f4f1cf547a52b31fa8e16e14b9579b7200 /include/linux/phy.h
parentce32d59ee2cd036f6e8a6ed17a06a0b0bec5c67c (diff)
parent496f3347d834aec91c38b45d6249ed00f58ad233 (diff)
Merge branch 'perm-fix' into omap-for-v4.19/fixes-v2
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);