Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
4ea7f299
Commit
4ea7f299
authored
Nov 11, 2005
by
Ayaz Abdulla
Committed by
Jeff Garzik
Nov 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr forcedeth] remove superfluous rx engine stop/start
Signed-off-by:
Ayaz Abdulla
<
aabdulla@nvidia.com
>
parent
125d128b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
12 deletions
+22
-12
drivers/net/forcedeth.c
drivers/net/forcedeth.c
+22
-12
No files found.
drivers/net/forcedeth.c
View file @
4ea7f299
...
...
@@ -97,6 +97,7 @@
* in the second (and later) nv_open call
* 0.43: 10 Aug 2005: Add support for tx checksum.
* 0.44: 20 Aug 2005: Add support for scatter gather and segmentation.
* 0.45: 18 Sep 2005: Remove nv_stop/start_rx from every link check
*
* Known bugs:
* We suspect that on some hardware no TX done interrupts are generated.
...
...
@@ -108,7 +109,7 @@
* DEV_NEED_TIMERIRQ will not harm you on sane hardware, only generating a few
* superfluous timer interrupts from the nic.
*/
#define FORCEDETH_VERSION "0.4
4
"
#define FORCEDETH_VERSION "0.4
5
"
#define DRV_NAME "forcedeth"
#include <linux/module.h>
...
...
@@ -1612,6 +1613,17 @@ static void nv_set_multicast(struct net_device *dev)
spin_unlock_irq
(
&
np
->
lock
);
}
/**
* nv_update_linkspeed: Setup the MAC according to the link partner
* @dev: Network device to be configured
*
* The function queries the PHY and checks if there is a link partner.
* If yes, then it sets up the MAC accordingly. Otherwise, the MAC is
* set to 10 MBit HD.
*
* The function returns 0 if there is no link partner and 1 if there is
* a good link partner.
*/
static
int
nv_update_linkspeed
(
struct
net_device
*
dev
)
{
struct
fe_priv
*
np
=
netdev_priv
(
dev
);
...
...
@@ -1751,13 +1763,11 @@ set_speed:
static
void
nv_linkchange
(
struct
net_device
*
dev
)
{
if
(
nv_update_linkspeed
(
dev
))
{
if
(
netif_carrier_ok
(
dev
))
{
nv_stop_rx
(
dev
);
}
else
{
if
(
!
netif_carrier_ok
(
dev
))
{
netif_carrier_on
(
dev
);
printk
(
KERN_INFO
"%s: link up.
\n
"
,
dev
->
name
);
}
nv_start_rx
(
dev
);
}
}
else
{
if
(
netif_carrier_ok
(
dev
))
{
netif_carrier_off
(
dev
);
...
...
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