summaryrefslogtreecommitdiffstats
path: root/drivers/net/fm/memac_phy.c
diff options
context:
space:
mode:
authorShaohui Xie <Shaohui.Xie@freescale.com>2014-04-22 18:21:37 +0800
committerYork Sun <yorksun@freescale.com>2014-05-13 08:26:54 -0700
commit3a7ed5aa232da1d2836b5d3962e59e685307122e (patch)
treeb66d74d6d566e4b036e43d5a11dbbd0b20971ee5 /drivers/net/fm/memac_phy.c
parente47c2a68517a3acd8e7668e0fc16a2c168ac30b4 (diff)
downloadblackbird-obmc-uboot-3a7ed5aa232da1d2836b5d3962e59e685307122e.tar.gz
blackbird-obmc-uboot-3a7ed5aa232da1d2836b5d3962e59e685307122e.zip
powerpc/fman/memac: use default MDIO_HOLD value
Current driver uses a Maximum value for MDIO_HOLD when doing 10G MDIO access, this is due to an errata A-006260 on T4 rev1.0 which is fixed on rev2.0, so remove the maximum value to use the default value for rev2.0. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Diffstat (limited to 'drivers/net/fm/memac_phy.c')
-rw-r--r--drivers/net/fm/memac_phy.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/fm/memac_phy.c b/drivers/net/fm/memac_phy.c
index 2f4bc11a6c..de9c0e9cd2 100644
--- a/drivers/net/fm/memac_phy.c
+++ b/drivers/net/fm/memac_phy.c
@@ -29,10 +29,8 @@ int memac_mdio_write(struct mii_dev *bus, int port_addr, int dev_addr,
c45 = 0; /* clause 22 */
dev_addr = regnum & 0x1f;
clrbits_be32(&regs->mdio_stat, MDIO_STAT_ENC);
- } else {
+ } else
setbits_be32(&regs->mdio_stat, MDIO_STAT_ENC);
- setbits_be32(&regs->mdio_stat, MDIO_STAT_HOLD_15_CLK);
- }
/* Wait till the bus is free */
while ((in_be32(&regs->mdio_stat)) & MDIO_STAT_BSY)
@@ -76,10 +74,8 @@ int memac_mdio_read(struct mii_dev *bus, int port_addr, int dev_addr,
c45 = 0; /* clause 22 */
dev_addr = regnum & 0x1f;
clrbits_be32(&regs->mdio_stat, MDIO_STAT_ENC);
- } else {
+ } else
setbits_be32(&regs->mdio_stat, MDIO_STAT_ENC);
- setbits_be32(&regs->mdio_stat, MDIO_STAT_HOLD_15_CLK);
- }
/* Wait till the bus is free */
while ((in_be32(&regs->mdio_stat)) & MDIO_STAT_BSY)
OpenPOWER on IntegriCloud