OSDN Git Service

net: fec: setup right value for mdio hold time
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 27 Mar 2015 10:08:32 +0000 (11:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Mar 2015 20:40:36 +0000 (13:40 -0700)
commit63c607321492c5efc7a31bc4ea734b877f8e7f87
tree23ea754a8db8793feffd24744dec59eb9e1f21f5
parent4ad19de8774e2a7b075b3e8ea48db85adcf33fa6
net: fec: setup right value for mdio hold time

The FEC modules used on i.MX28 and newer have a register to tune the MDIO
output hold time that should be at least 10 ns. Up to now this value was not
explicitly set and so resulted in less hold time if the fec clock was
faster than 100 MHz.

This was noticed on an i.MX28 machine that uses an input clock of ~150
Mhz which resulted in unreliable communication with a Marvell switch.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c