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)
commit8bca458990dd8c6d001b2fb52063aa18e8ca7444
tree3f4fe2807475dce762590d619a3cfb52f819bcf7
parent9ec092d2feb69045dd289845024301fb91c064ee
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