dmfe: enforce consistent timing delay.
authorfrançois romieu <romieu@fr.zoreil.com>
Tue, 17 Apr 2012 11:11:40 +0000 (11:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Apr 2012 02:54:13 +0000 (22:54 -0400)
commit0c20494050a848af4479dbaa89e632a8c5903cf3
treebd869102a3f5f6b071d097e756b5e0293572f61c
parent584c5e2ad3ada1a5ccfffa68347b79c3681cc36e
dmfe: enforce consistent timing delay.

The driver does not always use the same timing for what looks like
the same operations.

- DCR0
  Use the same udelay everywhere for reset. Upper bound is 100 us.
- DCR9
  Use 5us delay for srom clock. 1us delay for phy_write_1bit (writes
  PHY_DATA_[01]) are not changed as they stay withing a 2,5MHz MDIO
  clock range.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Reviewed-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dec/tulip/dmfe.c