]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: bcmgenet: reset 40nm EPHY on energy detect
authorDoug Berger <opendmb@gmail.com>
Wed, 16 Oct 2019 23:06:32 +0000 (16:06 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 17:47:43 +0000 (18:47 +0100)
commite0dc4243675ff5efad554eb8a63089169ffe58f3
tree8a4f352d324fc674ee695c228d9f4139441f4359
parente24f82bdd4231058e3e83cd395b0dbfff794d346
net: bcmgenet: reset 40nm EPHY on energy detect

BugLink: https://bugs.launchpad.net/bugs/1852111
[ Upstream commit 25382b991d252aed961cd434176240f9de6bb15f ]

The EPHY integrated into the 40nm Set-Top Box devices can falsely
detect energy when connected to a disabled peer interface. When the
peer interface is enabled the EPHY will detect and report the link
as active, but on occasion may get into a state where it is not
able to exchange data with the connected GENET MAC. This issue has
not been observed when the link parameters are auto-negotiated;
however, it has been observed with a manually configured link.

It has been empirically determined that issuing a soft reset to the
EPHY when energy is detected prevents it from getting into this bad
state.

Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/broadcom/genet/bcmgenet.c