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
3bca62d7
Commit
3bca62d7
authored
Jul 18, 2011
by
Tomasz Wlostowski
Committed by
Alessandro Rubini
Jul 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
endpoint.c: enabled Auto-negotiation by default
parent
14881799
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
endpoint.c
kernel/nic/endpoint.c
+4
-1
No files found.
kernel/nic/endpoint.c
View file @
3bca62d7
...
...
@@ -54,7 +54,7 @@ static void wrn_update_link_status(struct net_device *dev)
u32
ecr
,
bmsr
,
bmcr
,
lpa
;
bmsr
=
wrn_phy_read
(
dev
,
0
,
MII_BMSR
);
bmcr
=
wrn_phy_read
(
dev
,
0
,
MII_BM
S
R
);
bmcr
=
wrn_phy_read
(
dev
,
0
,
MII_BM
C
R
);
//netdev_dbg(dev, "%s: read %x %x", __func__, bmsr, bmcr);
// printk("%s: read %x %x %x\n", __func__, bmsr, bmcr);
...
...
@@ -154,6 +154,9 @@ int wrn_ep_open(struct net_device *dev)
|
EP_DMCR_N_AVG_W
(
256
/* DMTD_AVG_SAMPLES */
),
&
ep
->
ep_regs
->
DMCR
);
wrn_phy_write
(
dev
,
0
,
MII_LPA
,
0
);
wrn_phy_write
(
dev
,
0
,
MII_BMCR
,
BMCR_ANENABLE
|
BMCR_ANRESTART
);
/* Prepare the timer for link-up notifications */
setup_timer
(
&
ep
->
ep_link_timer
,
wrn_ep_check_link
,
timerarg
);
mod_timer
(
&
ep
->
ep_link_timer
,
jiffies
+
WRN_LINK_POLL_INTERVAL
);
...
...
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