summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2012-06-29 15:33:03 +0800
committerJosh Wu <josh.wu@atmel.com>2012-09-25 17:27:52 +0800
commit6813ef804685c08f6004415b74265e93eda98e92 (patch)
tree7ea642f3c4b6350b5e2b133d1d7846d7499ad2b4 /drivers/net
parentf09ba5a4edbd3707ae0abd3fe937c4f0ccbd0993 (diff)
gmac : remove debug information
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/gmacb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/gmacb.c b/drivers/net/gmacb.c
index db8f68e568e..af1f552ab00 100644
--- a/drivers/net/gmacb.c
+++ b/drivers/net/gmacb.c
@@ -405,7 +405,6 @@ static int macb_phy_init(struct macb_device *macb)
if (!(status & BMSR_LSTATUS)) {
/* Try to re-negotiate if we don't have link already. */
macb_phy_reset(macb);
- printf(">>>>reset phy\n");
for (i = 0; i < CONFIG_SYS_MACB_AUTONEG_TIMEOUT / 100; i++) {
status = macb_mdio_read(macb, MII_BMSR);
if (status & BMSR_LSTATUS)
@@ -419,7 +418,7 @@ static int macb_phy_init(struct macb_device *macb)
netdev->name, status);
return 0;
} else {
- // Judge whether work in 1000Base-T mode
+ /* Judge whether work in 1000Base-T mode */
adv = macb_mdio_read(macb, MII_STAT1000);
lpa = macb_mdio_read(macb, MII_CTRL1000);
if (adv & (1 << 11)) {
@@ -445,7 +444,7 @@ static int macb_phy_init(struct macb_device *macb)
ncfgr |= MACB_BIT(FD);
macb_writel(macb, NCFGR, ncfgr);
} else {
- // Judge whether work in 100Base-T mode
+ /* Judge whether work in 100Base-T mode */
adv = macb_mdio_read(macb, MII_ADVERTISE);
lpa = macb_mdio_read(macb, MII_LPA);
media = mii_nway_result(lpa & adv);