mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
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: Trent Piepho <tpiepho@freescale.com> Acked-by: Andy Fleming <afleming@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
51e2a3846e
commit
0acb283967
1 changed files with 6 additions and 0 deletions
|
@ -729,6 +729,12 @@ static void phy_change(struct work_struct *work)
|
|||
if (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;
|
||||
|
||||
irq_enable_err:
|
||||
|
|
Loading…
Reference in a new issue