History

net: phy: enable interrupts when PHY is attached already

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

Heiner Kallweit committed 7 years ago

Commit 07b09281 parent 8e2ea3e3 files · +24 −15Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/phy.h+1−0
@@ -1147,6 +1147,7 @@ int phy_ethtool_ksettings_set(struct phy_device *phydev, · 1146 unmodified lines
1147 const struct ethtool_link_ksettings *cmd);1147 const struct ethtool_link_ksettings *cmd);
1148int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd);1148int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd);
1149void phy_request_interrupt(struct phy_device *phydev);1149void phy_request_interrupt(struct phy_device *phydev);
1150void phy_free_interrupt(struct phy_device *phydev);
1150void phy_print_status(struct phy_device *phydev);1151void phy_print_status(struct phy_device *phydev);
1151int phy_set_max_speed(struct phy_device *phydev, u32 max_speed);1152int phy_set_max_speed(struct phy_device *phydev, u32 max_speed);
1152void phy_remove_link_mode(struct phy_device *phydev, u32 link_mode);1153void phy_remove_link_mode(struct phy_device *phydev, u32 link_mode);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t