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, 21 Mar 2022 16:03:52 +0000 (16:03 +0000)
commit175042e1b3703107ea6ea942b138edebd4994020
tree6d0d7c2fa9e5af35213ee4afeb27488114972e14
parentd8abc05c7c45cb8f4f3d008d64064bd577b6ea40
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