Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
38a95195
Commit
38a95195
authored
21 years ago
by
Stefan Roese
Browse files
Options
Downloads
Patches
Plain Diff
Debug printf's removed.
parent
939403bc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/ppc4xx/miiphy.c
+6
-0
6 additions, 0 deletions
cpu/ppc4xx/miiphy.c
with
6 additions
and
0 deletions
cpu/ppc4xx/miiphy.c
+
6
−
0
View file @
38a95195
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment