]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: stmmac: reset force speed bit for ipq806x
authorChristian 'Ansuel' Marangi <ansuelsmth@gmail.com>
Tue, 14 Jun 2022 11:22:28 +0000 (13:22 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 16 Jun 2022 08:13:20 +0000 (10:13 +0200)
commit205a341e8e4ce1e297b94b99d292f4d7b2c73fa1
tree3f4fe2807475dce762590d619a3cfb52f819bcf7
parent715073a1db99a4be4fee93a2bb4859a4a13b5c3d
net: ethernet: stmmac: reset force speed bit for ipq806x

Some bootloader may set the force speed regs even if the actual
interface should use autonegotiation between PCS and PHY.
This cause the complete malfuction of the interface.

To fix this correctly reset the force speed regs if a fixed-link is not
defined in the DTS. With a fixed-link node correctly configure the
forced speed regs to handle any misconfiguration by the bootloader.

Reported-by: Mark Mentovai <mark@moxienet.com>
Co-developed-by: Mark Mentovai <mark@moxienet.com>
Signed-off-by: Mark Mentovai <mark@moxienet.com>
Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
Link: https://lore.kernel.org/r/20220614112228.1998-2-ansuelsmth@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c