net: bcmgenet: Software reset EPHY after power on
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 30 Oct 2015 01:11:35 +0000 (18:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Nov 2015 20:54:50 +0000 (15:54 -0500)
commit5dbebbb44a6ad94aab2cd1a46f7676f255403f64
tree03935cc66e724ca53a2357a705ef177a8c78999a
parentb43c142f22236b37aa68faf23ac1bbd75f94c5b5
net: bcmgenet: Software reset EPHY after power on

The EPHY on GENET v1->v3 is extremely finicky, and will show occasional
failures based on the timing and reset sequence, ranging from duplicate
packets, to extremely high latencies.

Perform an additional software reset, and re-configuration to make sure it is
in a consistent and working state.

Fixes: 6ac3ce8295e6 ("net: bcmgenet: Remove excessive PHY reset")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h
drivers/net/ethernet/broadcom/genet/bcmmii.c