* [U-Boot] [PATCH] powerpc/fman/memac: use default MDIO_HOLD value
@ 2014-04-22 10:21 shh.xie at gmail.com
2014-05-13 16:32 ` York Sun
0 siblings, 1 reply; 2+ messages in thread
From: shh.xie at gmail.com @ 2014-04-22 10:21 UTC (permalink / raw)
To: u-boot
From: Shaohui Xie <Shaohui.Xie@freescale.com>
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>
---
drivers/net/fm/memac_phy.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/net/fm/memac_phy.c b/drivers/net/fm/memac_phy.c
index 2f4bc11..de9c0e9 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(®s->mdio_stat, MDIO_STAT_ENC);
- } else {
+ } else
setbits_be32(®s->mdio_stat, MDIO_STAT_ENC);
- setbits_be32(®s->mdio_stat, MDIO_STAT_HOLD_15_CLK);
- }
/* Wait till the bus is free */
while ((in_be32(®s->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(®s->mdio_stat, MDIO_STAT_ENC);
- } else {
+ } else
setbits_be32(®s->mdio_stat, MDIO_STAT_ENC);
- setbits_be32(®s->mdio_stat, MDIO_STAT_HOLD_15_CLK);
- }
/* Wait till the bus is free */
while ((in_be32(®s->mdio_stat)) & MDIO_STAT_BSY)
--
1.8.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] powerpc/fman/memac: use default MDIO_HOLD value
2014-04-22 10:21 [U-Boot] [PATCH] powerpc/fman/memac: use default MDIO_HOLD value shh.xie at gmail.com
@ 2014-05-13 16:32 ` York Sun
0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2014-05-13 16:32 UTC (permalink / raw)
To: u-boot
On 04/22/2014 05:21 AM, shh.xie at gmail.com wrote:
> From: Shaohui Xie <Shaohui.Xie@freescale.com>
>
> 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>
> ---
Applied to u-boot-mpc85xx/master.
Thanks,
York
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-13 16:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22 10:21 [U-Boot] [PATCH] powerpc/fman/memac: use default MDIO_HOLD value shh.xie at gmail.com
2014-05-13 16:32 ` York Sun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox