diff options
| author | Tony Lindgren <tony@atomide.com> | 2018-08-28 12:58:03 -0400 |
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2018-08-28 12:58:03 -0400 |
| commit | ea4d65f14f6aaa53e379b93c5544245ef081b3e7 (patch) | |
| tree | a15485f4f1cf547a52b31fa8e16e14b9579b7200 /include/linux/phy.h | |
| parent | ce32d59ee2cd036f6e8a6ed17a06a0b0bec5c67c (diff) | |
| parent | 496f3347d834aec91c38b45d6249ed00f58ad233 (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.h | 12 |
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 | */ | ||
| 832 | static 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); | |||
| 942 | void phy_stop(struct phy_device *phydev); | 952 | void phy_stop(struct phy_device *phydev); |
| 943 | int phy_start_aneg(struct phy_device *phydev); | 953 | int phy_start_aneg(struct phy_device *phydev); |
| 944 | int phy_aneg_done(struct phy_device *phydev); | 954 | int phy_aneg_done(struct phy_device *phydev); |
| 955 | int phy_speed_down(struct phy_device *phydev, bool sync); | ||
| 956 | int phy_speed_up(struct phy_device *phydev); | ||
| 945 | 957 | ||
| 946 | int phy_stop_interrupts(struct phy_device *phydev); | 958 | int phy_stop_interrupts(struct phy_device *phydev); |
| 947 | int phy_restart_aneg(struct phy_device *phydev); | 959 | int phy_restart_aneg(struct phy_device *phydev); |
