net: phy: micrel: disable NAND-tree for KSZ8021, KSZ8031, KSZ8051, KSZ8081
authorSylvain Rochet <sylvain.rochet@finsecur.com>
Fri, 13 Feb 2015 20:35:33 +0000 (21:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Feb 2015 04:30:55 +0000 (20:30 -0800)
commit2b0ba96cea6066d2543066fa524120b384f3bd6b
treeb6f8ac9fb6c223c763e82887f19d02110aae6872
parent3b4711757d7903ab6fa88a9e7ab8901b8227da60
net: phy: micrel: disable NAND-tree for KSZ8021, KSZ8031, KSZ8051, KSZ8081

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 for all Micrel PHYs
using IRQ line as a NAND-tree toggle mode at reset.

Signed-off-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c
This page took 0.025369 seconds and 5 git commands to generate.