Skip to content

Commit 3664090

Browse files
atsushi-nemotodavem330
authored andcommitted
phylib: Fix delay argument of schedule_delayed_work
The commit a390d1f ("phylib: convert state_queue work to delayed_work") missed converting 'expires' value to 'delay' value. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Acked-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9d8d05a commit 3664090

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎drivers/net/phy/phy.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ void phy_start_machine(struct phy_device *phydev,
434434
phydev->adjust_state = handler;
435435

436436
INIT_DELAYED_WORK(&phydev->state_queue, phy_state_machine);
437-
schedule_delayed_work(&phydev->state_queue, jiffies + HZ);
437+
schedule_delayed_work(&phydev->state_queue, HZ);
438438
}
439439

440440
/**
@@ -946,6 +946,5 @@ static void phy_state_machine(struct work_struct *work)
946946
if (err < 0)
947947
phy_error(phydev);
948948

949-
schedule_delayed_work(&phydev->state_queue,
950-
jiffies + PHY_STATE_TIME * HZ);
949+
schedule_delayed_work(&phydev->state_queue, PHY_STATE_TIME * HZ);
951950
}

0 commit comments

Comments
 (0)