mbox series

[net,0/3] net: bcmgenet: restore internal EPHY support (part 2)

Message ID 1572980846-37707-1-git-send-email-opendmb@gmail.com
Headers show
Series net: bcmgenet: restore internal EPHY support (part 2) | expand

Message

Doug Berger Nov. 5, 2019, 7:07 p.m. UTC
This is a follow up to my previous submission (see [1]).

The first commit provides what is intended to be a complete solution
for the issues that can result from insufficient clocking of the MAC
during reset of its state machines. It should be backported to the
stable releases.

It is intended to replace the partial solution of commit 1f515486275a 
("net: bcmgenet: soft reset 40nm EPHYs before MAC init") which is
reverted by the second commit of this series and should not be back-
ported as noted in [2].

The third commit corrects a timing hazard with a polled PHY that can
occur when the MAC resumes and also when a v3 internal EPHY is reset
by the change in commit 25382b991d25 ("net: bcmgenet: reset 40nm EPHY 
on energy detect"). It is expected that commit 25382b991d25 be back-
ported to stable first before backporting this commit.

[1] https://lkml.org/lkml/2019/10/16/1706
[2] https://lkml.org/lkml/2019/10/31/749

Doug Berger (3):
  net: bcmgenet: use RGMII loopback for MAC reset
  Revert "net: bcmgenet: soft reset 40nm EPHYs before MAC init"
  net: bcmgenet: reapply manual settings to the PHY

 drivers/net/ethernet/broadcom/genet/bcmgenet.c |  35 +++---
 drivers/net/ethernet/broadcom/genet/bcmgenet.h |   2 +-
 drivers/net/ethernet/broadcom/genet/bcmmii.c   | 145 ++++++++++++++++---------
 3 files changed, 110 insertions(+), 72 deletions(-)

Comments

David Miller Nov. 6, 2019, 7:05 p.m. UTC | #1
From: Doug Berger <opendmb@gmail.com>
Date: Tue,  5 Nov 2019 11:07:23 -0800

> This is a follow up to my previous submission (see [1]).

Series applied.