diff options
author | Alexander Kurz <akurz@blala.de> | 2016-02-21 19:06:30 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-24 19:23:40 +0100 |
commit | 5bd9561e53e45867aad89102fc6362c8ee8ffd80 (patch) | |
tree | e3aa043941e1740f49b68a8f8d114c7be37fd43c /drivers/net/ep93xx.c | |
parent | e8993bc545732cbaecc381ebc6ce1aff6b08247d (diff) | |
download | barebox-5bd9561e53e45867aad89102fc6362c8ee8ffd80.tar.gz barebox-5bd9561e53e45867aad89102fc6362c8ee8ffd80.tar.xz |
net ep93xx mii: do not supress MII preamble transmission
PHY like the ks8721bl used on the edb9302 and similar evaluation boards
will initially not respond to the ep93xx_phy_read/write functions when
the MII-preamble is supressed. The supression is switched on by default
and must be switched off by clearing bit 8, see also EP93xx Users guide.
Removing the orphaned MII_SUPPRESS_PREAMBLE config option, note:
setting MII_SUPPRESS_PREAMBLE would actually enable the preamble transmission.
Signed-off-by: Alexander Kurz <akurz@blala.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/ep93xx.c')
-rw-r--r-- | drivers/net/ep93xx.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/ep93xx.c b/drivers/net/ep93xx.c index 90c12fce75..527ce253b5 100644 --- a/drivers/net/ep93xx.c +++ b/drivers/net/ep93xx.c @@ -589,14 +589,12 @@ static int ep93xx_phy_read(struct mii_bus *bus, int phy_addr, int phy_reg) pr_debug("+ep93xx_phy_read\n"); /* - * Save the current SelfCTL register value. Set MAC to suppress + * Save the current SelfCTL register value. Set MAC to send * preamble bits. Wait for any previous MII command to complete * before issuing the new command. */ self_ctl = readl(®s->selfctl); -#if defined(CONFIG_MII_SUPPRESS_PREAMBLE) /* TODO */ writel(self_ctl & ~(1 << 8), ®s->selfctl); -#endif /* defined(CONFIG_MII_SUPPRESS_PREAMBLE) */ while (readl(®s->miists) & MIISTS_BUSY) ; /* noop */ @@ -632,14 +630,12 @@ static int ep93xx_phy_write(struct mii_bus *bus, int phy_addr, pr_debug("+ep93xx_phy_write\n"); /* - * Save the current SelfCTL register value. Set MAC to suppress + * Save the current SelfCTL register value. Set MAC to send * preamble bits. Wait for any previous MII command to complete * before issuing the new command. */ self_ctl = readl(®s->selfctl); -#if defined(CONFIG_MII_SUPPRESS_PREAMBLE) /* TODO */ writel(self_ctl & ~(1 << 8), ®s->selfctl); -#endif /* defined(CONFIG_MII_SUPPRESS_PREAMBLE) */ while (readl(®s->miists) & MIISTS_BUSY) ; /* noop */ |