Commit 0acb2839 authored by Trent Piepho's avatar Trent Piepho Committed by David S. Miller

phylib: Wake PHY state machine on interrupt

This way the phy layer will respond to a change in phy state immediately,
instead of up to one second later when the state machine timer runs.
Signed-off-by: default avatarTrent Piepho <tpiepho@freescale.com>
Acked-by: default avatarAndy Fleming <afleming@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 51e2a384
...@@ -729,6 +729,12 @@ static void phy_change(struct work_struct *work) ...@@ -729,6 +729,12 @@ static void phy_change(struct work_struct *work)
if (err) if (err)
goto irq_enable_err; goto irq_enable_err;
/* Stop timer and run the state queue now. The work function for
* state_queue will start the timer up again.
*/
del_timer(&phydev->phy_timer);
schedule_work(&phydev->state_queue);
return; return;
irq_enable_err: irq_enable_err:
......
Markdown is supported
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