]> git.ipfire.org Git - people/ms/u-boot.git/commit
net: phy: micrel: disable NAND-tree for KSZ8051
authorSylvain Rochet <sylvain.rochet@finsecur.com>
Wed, 7 Oct 2015 20:54:22 +0000 (22:54 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 29 Oct 2015 19:05:48 +0000 (14:05 -0500)
commit4f485150cfdc1cbbf841e46236dd5052fbe5c542
treebff197a80421d61c90fb1ee394917c5461f8c155
parentf3ba55235dddb11bbb615669b43688f4c1b73f69
net: phy: micrel: disable NAND-tree for KSZ8051

NAND-tree is used to check wiring between MAC and PHY using NAND gates
on the PHY side, hence the name.

NAND-tree initial status is latched at reset by probing the IRQ pin.
However some devices are sharing the PHY IRQ pin with other peripherals
such as Atmel SAMA5D[34]x-EK boards when using the optional TM7000
display module, therefore they are switching the PHY in NAND-tree test
mode depending on the current IRQ line status at reset.

This patch ensure PHY is not in NAND-tree test mode only for the Micrel
KSZ8051 PHY used by Atmel. There are other Micrel PHY affected but I
doubt they are used on such weird hardware design.

Signed-off-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/micrel.c