This patch is a step towards allowing PHY drivers to handle more interrupt sources than just link change. E.g. several PHY's have built-in temperature monitoring and can raise an interrupt if a temperature threshold is exceeded. We may be interested in such interrupts also if the phylib state machine isn't started. Therefore move enabling interrupts to phy_request_interrupt(). v2: - patch added to series
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -1147,6 +1147,7 @@ int phy_ethtool_ksettings_set(struct phy_device *phydev, · 1146 unmodified lines | ||
| 1147 | 1147 | const struct ethtool_link_ksettings *cmd); |
| 1148 | 1148 | int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd); |
| 1149 | 1149 | void phy_request_interrupt(struct phy_device *phydev); |
| 1150 | +void phy_free_interrupt(struct phy_device *phydev); | |
| 1150 | 1151 | void phy_print_status(struct phy_device *phydev); |
| 1151 | 1152 | int phy_set_max_speed(struct phy_device *phydev, u32 max_speed); |
| 1152 | 1153 | void phy_remove_link_mode(struct phy_device *phydev, u32 link_mode); |