]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: use MAC link status for fixed phy
authorDoug Berger <opendmb@gmail.com>
Tue, 28 Aug 2018 19:33:15 +0000 (12:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Aug 2018 02:51:35 +0000 (19:51 -0700)
commitdda8365131310540c1cf5cb7185ae26a3d86e54b
tree67096b48f26c17a0ece7eae70c2f0fb6554fd48f
parent101993b48f5a3b0fc2fda767e7e89b743f525557
net: bcmgenet: use MAC link status for fixed phy

When using the fixed PHY with GENET (e.g. MOCA) the PHY link
status can be determined from the internal link status captured
by the MAC. This allows the PHY state machine to use the correct
link state with the fixed PHY even if MAC link event interrupts
are missed when the net device is opened.

Fixes: 3232a7fbbf63 ("net: bcmgenet: enable MoCA link state change detection")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.h
drivers/net/ethernet/broadcom/genet/bcmmii.c