Commit 3664090e authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by David S. Miller
Browse files

phylib: Fix delay argument of schedule_delayed_work

The commit a390d1f3

 ("phylib: convert state_queue work to
delayed_work") missed converting 'expires' value to 'delay' value.
Signed-off-by: default avatarAtsushi Nemoto <>
Acked-by: default avatarMarcin Slusarz <>
Signed-off-by: default avatarDavid S. Miller <>
parent 9d8d05ae
......@@ -434,7 +434,7 @@ void phy_start_machine(struct phy_device *phydev,
phydev->adjust_state = handler;
INIT_DELAYED_WORK(&phydev->state_queue, phy_state_machine);
schedule_delayed_work(&phydev->state_queue, jiffies + HZ);
schedule_delayed_work(&phydev->state_queue, HZ);
......@@ -946,6 +946,5 @@ static void phy_state_machine(struct work_struct *work)
if (err < 0)
jiffies + PHY_STATE_TIME * HZ);
schedule_delayed_work(&phydev->state_queue, PHY_STATE_TIME * HZ);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment