]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: phy: micrel: make sure the factory test bit is cleared
authorNicolas Ferre <nicolas.ferre@microchip.com>
Wed, 23 Oct 2019 10:46:44 +0000 (10:46 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 9 Dec 2019 15:47:42 +0000 (09:47 -0600)
commitb2f2643b393e6aff522dd7f608411a695ea9d67f
treeee365aa039512c14cfe876c80492d00954c53dbd
parent19820db0bd97fd4e202019594abe9a9604aa5534
net: phy: micrel: make sure the factory test bit is cleared

The KSZ8081 PHY has a factory test mode which is set at the de-assertion
of the reset line based on the RXER (KSZ8081RNA/RND) or TXC
(KSZ8081MNX/RNB) pin. If a pull-down is missing, or if the pin has a
pull-up, the factory test mode should be cleared by manually writing a 0
(according to the datasheet).
Create another ksz8081_config function to handle this case.

Suggested-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/micrel_ksz8xxx.c