Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9b64d5a3
Commit
9b64d5a3
authored
Sep 28, 2002
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[net drivers] fix MII lib force-media ethtool path
(contributed by Edward Peng @ D-Link)
parent
14e742dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/net/mii.c
drivers/net/mii.c
+3
-3
No files found.
drivers/net/mii.c
View file @
9b64d5a3
...
@@ -130,14 +130,14 @@ int mii_ethtool_sset(struct mii_if_info *mii, struct ethtool_cmd *ecmd)
...
@@ -130,14 +130,14 @@ int mii_ethtool_sset(struct mii_if_info *mii, struct ethtool_cmd *ecmd)
bmcr
=
mii
->
mdio_read
(
dev
,
mii
->
phy_id
,
MII_BMCR
);
bmcr
=
mii
->
mdio_read
(
dev
,
mii
->
phy_id
,
MII_BMCR
);
tmp
=
bmcr
&
~
(
BMCR_ANENABLE
|
BMCR_SPEED100
|
BMCR_FULLDPLX
);
tmp
=
bmcr
&
~
(
BMCR_ANENABLE
|
BMCR_SPEED100
|
BMCR_FULLDPLX
);
if
(
ecmd
->
speed
==
SPEED_100
)
if
(
ecmd
->
speed
==
SPEED_100
)
bmcr
|=
BMCR_SPEED100
;
tmp
|=
BMCR_SPEED100
;
if
(
ecmd
->
duplex
==
DUPLEX_FULL
)
{
if
(
ecmd
->
duplex
==
DUPLEX_FULL
)
{
bmcr
|=
BMCR_FULLDPLX
;
tmp
|=
BMCR_FULLDPLX
;
mii
->
full_duplex
=
1
;
mii
->
full_duplex
=
1
;
}
else
}
else
mii
->
full_duplex
=
0
;
mii
->
full_duplex
=
0
;
if
(
bmcr
!=
tmp
)
if
(
bmcr
!=
tmp
)
mii
->
mdio_write
(
dev
,
mii
->
phy_id
,
MII_BMCR
,
bmcr
);
mii
->
mdio_write
(
dev
,
mii
->
phy_id
,
MII_BMCR
,
tmp
);
mii
->
duplex_lock
=
1
;
mii
->
duplex_lock
=
1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment