net: lan78xx: Support auto-downshift to 100Mb/s
authorPhil Elwell <phil@raspberrypi.org>
Mon, 26 Nov 2018 19:46:58 +0000 (19:46 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:32:49 +0000 (11:32 +0000)
commit86e26796960509a7b99db0540623d1a68cfb0312
tree3ca1b3d35185c89c72c95c75000696cf1e028ca1
parent1ac79c7740b0a13f5b0f92da4de261f77e9b9fb9
net: lan78xx: Support auto-downshift to 100Mb/s

Ethernet cables with faulty or missing pairs (specifically pairs C and
D) allow auto-negotiation to 1000Mbs, but do not support the successful
establishment of a link. Add a DT property, "microchip,downshift-after",
to configure the number of auto-negotiation failures after which it
falls back to 100Mbs. Valid values are 2, 3, 4, 5 and 0, where 0 means
never downshift.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Documentation/devicetree/bindings/net/microchip,lan78xx.txt
drivers/net/phy/microchip.c
include/linux/microchipphy.h