History

net: phy: export phy_queue_state_machine

We face the issue that link change interrupt and link status may be reported by different PHY layers. As a result the link change interrupt may occur before the link status changes. Export phy_queue_state_machine to allow PHY drivers to specify a delay between link status change interrupt and link status check. v2: - change jiffies parameter type to unsigned long

Heiner Kallweit committed 7 years ago

Commit 97b33bd1 parent 49644e62 files · +6 −4Browse files

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

Unified · Split

include/linux/phy.h+1−1
@@ -188,7 +188,6 @@ static inline const char *phy_modes(phy_interface_t interface) · 187 unmodified lines
188188
189189
190190 #define PHY_INIT_TIMEOUT 100000
191−#define PHY_STATE_TIME 1
192191 #define PHY_FORCE_TIMEOUT 10
193192
194193 #define PHY_MAX_ADDR 32
@@ -1140,6 +1139,7 @@ int phy_driver_register(struct phy_driver *new_driver, struct module *owner); · 945 unmodified lines
11401139 int phy_drivers_register(struct phy_driver *new_driver, int n,
11411140 struct module *owner);
11421141 void phy_state_machine(struct work_struct *work);
1142+void phy_queue_state_machine(struct phy_device *phydev, unsigned long jiffies);
11431143 void phy_mac_interrupt(struct phy_device *phydev);
11441144 void phy_start_machine(struct phy_device *phydev);
11451145 void phy_stop_machine(struct phy_device *phydev);

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