History

net: phy: add callback for custom interrupt handler to struct phy_driver

The phylib interrupt handler handles link change events only currently. However PHY drivers may want to use other interrupt sources too, e.g. to report temperature monitoring events. Therefore add a callback to struct phy_driver allowing PHY drivers to implement a custom interrupt handler.

Heiner Kallweit committed 7 years ago

Commit 49644e61 parent 07b09282 files · +10 −2Browse files

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

Unified · Split

include/linux/phy.h+3−0
@@ -537,6 +537,9 @@ struct phy_driver { · 536 unmodified lines
537537 */
538538 int (*did_interrupt)(struct phy_device *phydev);
539539
540+ /* Override default interrupt handling */
541+ int (*handle_interrupt)(struct phy_device *phydev);
542+
540543 /* Clears up any memory if needed */
541544 void (*remove)(struct phy_device *phydev);
542545

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