Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
b515eff3
Commit
b515eff3
authored
Apr 04, 2011
by
Tomasz Wlostowski
Committed by
Alessandro Rubini
Jul 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
calibration ioctl: TX pattern can be enabled regardless of the link state
parent
d38bd756
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
wr_minic.c
kernel/wr_minic/wr_minic.c
+0
-8
No files found.
kernel/wr_minic/wr_minic.c
View file @
b515eff3
...
...
@@ -786,23 +786,15 @@ static int calibration_ioctl(struct net_device *netdev, struct ifreq *rq,
switch
(
cal_req
.
cmd
)
{
case
CAL_CMD_TX_ON
:
if
(
nic
->
iface_up
)
{
tmp
=
phy_read
(
netdev
,
0
,
MDIO_REG_WR_SPEC
);
phy_write
(
netdev
,
0
,
MDIO_REG_WR_SPEC
,
tmp
|
MDIO_WR_SPEC_TX_CAL
);
}
else
{
return
-
EFAULT
;
}
break
;
case
CAL_CMD_TX_OFF
:
if
(
nic
->
iface_up
)
{
tmp
=
phy_read
(
netdev
,
0
,
MDIO_REG_WR_SPEC
);
phy_write
(
netdev
,
0
,
MDIO_REG_WR_SPEC
,
tmp
&
(
~
MDIO_WR_SPEC_TX_CAL
));
}
else
{
return
-
EFAULT
;
}
break
;
case
CAL_CMD_RX_ON
:
...
...
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