Skip to content
Snippets Groups Projects
Commit 38a95195 authored by Stefan Roese's avatar Stefan Roese
Browse files

Debug printf's removed.

parent 939403bc
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,9 @@ int miiphy_read (unsigned char addr, unsigned char reg, ...@@ -93,7 +93,9 @@ int miiphy_read (unsigned char addr, unsigned char reg,
while ((in32 (EMAC_STACR) & EMAC_STACR_OC) == 0) { while ((in32 (EMAC_STACR) & EMAC_STACR_OC) == 0) {
udelay (7); udelay (7);
if (i > 5) { if (i > 5) {
#if 0 /* test-only */
printf ("read err 1\n"); printf ("read err 1\n");
#endif
return -1; return -1;
} }
i++; i++;
...@@ -116,16 +118,20 @@ int miiphy_read (unsigned char addr, unsigned char reg, ...@@ -116,16 +118,20 @@ int miiphy_read (unsigned char addr, unsigned char reg,
while ((sta_reg & EMAC_STACR_OC) == 0) { while ((sta_reg & EMAC_STACR_OC) == 0) {
udelay (7); udelay (7);
if (i > 5) { if (i > 5) {
#if 0 /* test-only */
printf ("read err 2\n"); printf ("read err 2\n");
#endif
return -1; return -1;
} }
i++; i++;
sta_reg = in32 (EMAC_STACR); sta_reg = in32 (EMAC_STACR);
} }
if ((sta_reg & EMAC_STACR_PHYE) != 0) { if ((sta_reg & EMAC_STACR_PHYE) != 0) {
#if 0 /* test-only */
printf ("read err 3\n"); printf ("read err 3\n");
printf ("a2: read: EMAC_STACR=0x%0lx, i=%d\n", printf ("a2: read: EMAC_STACR=0x%0lx, i=%d\n",
sta_reg, (int) i); /* test-only */ sta_reg, (int) i); /* test-only */
#endif
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment