Skip to content
Commit 84a527a4 authored by Shaohui Xie's avatar Shaohui Xie Committed by David S. Miller
Browse files

net: phylib: fix interrupts re-enablement in phy_start



If phy was suspended and is starting, current driver always enable
phy's interrupts, if phy works in polling, phy can raise unexpected
interrupt which will not be handled, the interrupt will block system
enter suspend again. So interrupts should only be re-enabled if phy
works in interrupt.

Signed-off-by: default avatarShaohui Xie <Shaohui.Xie@nxp.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 10a81980
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