diff options
author | Shaohui Xie <Shaohui.Xie@freescale.com> | 2015-08-14 12:23:40 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-17 12:18:09 -0700 |
commit | 11e122cbe90ea5079622fb57bdf2dffe8cf68e57 (patch) | |
tree | 3080f5a6d8efb6859d8256bced3ea08eb75bfe62 /net/switchdev/switchdev.c | |
parent | 5d37852bf7d48e5afb5238a658cc167e7b78b381 (diff) |
net: phy: fix PHY_RUNNING in phy_state_machine
Currently, if phy state is PHY_RUNNING, we always register a CHANGE
when phy works in polling or interrupt ignored, this will make the
adjust_link being called even the phy link did Not changed.
checking the phy link to make sure the link did changed before we
register a CHANGE, if link did not changed, we do nothing.
Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions