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
Kirill Smelkov
linux
Commits
62350638
Commit
62350638
authored
Nov 27, 2002
by
Stefan Rompf
Committed by
Jeff Garzik
Nov 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr starfire] add netif_carrier_{on,off} calls
parent
542e3ab3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
drivers/net/starfire.c
drivers/net/starfire.c
+3
-0
No files found.
drivers/net/starfire.c
View file @
62350638
...
...
@@ -905,6 +905,7 @@ static int netdev_open(struct net_device *dev)
return
-
ENOMEM
;
}
netif_carrier_off
(
dev
);
init_ring
(
dev
);
/* Set the size of the Rx buffers. */
writel
((
np
->
rx_buf_sz
<<
RxBufferLenShift
)
|
...
...
@@ -1587,6 +1588,7 @@ static void netdev_media_change(struct net_device *dev)
else
np
->
mii_if
.
full_duplex
=
0
;
}
netif_carrier_on
(
dev
);
printk
(
KERN_DEBUG
"%s: Link is up, running at %sMbit %s-duplex
\n
"
,
dev
->
name
,
np
->
speed100
?
"100"
:
"10"
,
...
...
@@ -1602,6 +1604,7 @@ static void netdev_media_change(struct net_device *dev)
writel
(
np
->
tx_mode
,
ioaddr
+
TxMode
);
}
}
else
{
netif_carrier_off
(
dev
);
printk
(
KERN_DEBUG
"%s: Link is down
\n
"
,
dev
->
name
);
}
}
...
...
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