]> git.baikalelectronics.ru Git - kernel.git/commit
lan743x: Use correct MAC_CR configuration for 1 GBit speed
authorRoelof Berg <rberg@berg-solutions.de>
Wed, 3 Jun 2020 21:54:14 +0000 (23:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jun 2020 22:57:03 +0000 (15:57 -0700)
commitf6dea20d63b32687f5a4963f86eb9f44841403bc
tree0ffd33ebc976421a8325aebaf332e00f1a1c2f25
parentb22fb0109133d9a32b242cc363c25a7f4b919e20
lan743x: Use correct MAC_CR configuration for 1 GBit speed

Corrected the MAC_CR configuration bits for 1 GBit operation. The data
sheet allows MAC_CR(2:1) to be 10 and also 11 for 1 GBit/s speed, but
only 10 works correctly.

Devices tested:
Microchip Lan7431, fixed-phy mode
Microchip Lan7430, normal phy mode

Fixes: e625dae96783 ("lan743x: Added fixed link and RGMII support")
Signed-off-by: Roelof Berg <rberg@berg-solutions.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan743x_main.c