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
ac37cc4a
Commit
ac37cc4a
authored
Oct 16, 2002
by
Tim Hockin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/net/eepro100.c:
* mii cleanups * use mii_check_link() * check link every timer
parent
9af95a10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
drivers/net/eepro100.c
drivers/net/eepro100.c
+3
-12
No files found.
drivers/net/eepro100.c
View file @
ac37cc4a
...
@@ -119,6 +119,7 @@ static int debug = -1; /* The debug level */
...
@@ -119,6 +119,7 @@ static int debug = -1; /* The debug level */
#include <linux/etherdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/skbuff.h>
#include <linux/ethtool.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
MODULE_AUTHOR
(
"Maintainer: Andrey V. Savochkin <saw@saw.sw.com.sg>"
);
MODULE_AUTHOR
(
"Maintainer: Andrey V. Savochkin <saw@saw.sw.com.sg>"
);
MODULE_DESCRIPTION
(
"Intel i82557/i82558/i82559 PCI EtherExpressPro driver"
);
MODULE_DESCRIPTION
(
"Intel i82557/i82558/i82559 PCI EtherExpressPro driver"
);
...
@@ -488,7 +489,6 @@ struct speedo_private {
...
@@ -488,7 +489,6 @@ struct speedo_private {
unsigned
char
acpi_pwr
;
unsigned
char
acpi_pwr
;
signed
char
rx_mode
;
/* Current PROMISC/ALLMULTI setting. */
signed
char
rx_mode
;
/* Current PROMISC/ALLMULTI setting. */
unsigned
int
tx_full
:
1
;
/* The Tx queue is full. */
unsigned
int
tx_full
:
1
;
/* The Tx queue is full. */
unsigned
int
full_duplex
:
1
;
/* Full-duplex operation requested. */
unsigned
int
flow_ctrl
:
1
;
/* Use 802.3x flow control. */
unsigned
int
flow_ctrl
:
1
;
/* Use 802.3x flow control. */
unsigned
int
rx_bug
:
1
;
/* Work around receiver hang errata. */
unsigned
int
rx_bug
:
1
;
/* Work around receiver hang errata. */
unsigned
char
default_port
:
8
;
/* Last dev->if_port value. */
unsigned
char
default_port
:
8
;
/* Last dev->if_port value. */
...
@@ -1017,10 +1017,7 @@ speedo_open(struct net_device *dev)
...
@@ -1017,10 +1017,7 @@ speedo_open(struct net_device *dev)
if
((
sp
->
phy
[
0
]
&
0x8000
)
==
0
)
if
((
sp
->
phy
[
0
]
&
0x8000
)
==
0
)
sp
->
mii_if
.
advertising
=
mdio_read
(
dev
,
sp
->
phy
[
0
]
&
0x1f
,
MII_ADVERTISE
);
sp
->
mii_if
.
advertising
=
mdio_read
(
dev
,
sp
->
phy
[
0
]
&
0x1f
,
MII_ADVERTISE
);
if
(
mdio_read
(
dev
,
sp
->
phy
[
0
]
&
0x1f
,
MII_BMSR
)
&
BMSR_LSTATUS
)
mii_check_link
(
&
sp
->
mii_if
);
netif_carrier_on
(
dev
);
else
netif_carrier_off
(
dev
);
if
(
speedo_debug
>
2
)
{
if
(
speedo_debug
>
2
)
{
printk
(
KERN_DEBUG
"%s: Done speedo_open(), status %8.8x.
\n
"
,
printk
(
KERN_DEBUG
"%s: Done speedo_open(), status %8.8x.
\n
"
,
...
@@ -1182,15 +1179,9 @@ static void speedo_timer(unsigned long data)
...
@@ -1182,15 +1179,9 @@ static void speedo_timer(unsigned long data)
sp
->
flow_ctrl
=
flow_ctrl
;
sp
->
flow_ctrl
=
flow_ctrl
;
sp
->
rx_mode
=
-
1
;
/* Trigger a reload. */
sp
->
rx_mode
=
-
1
;
/* Trigger a reload. */
}
}
/* Clear sticky bit. */
mdio_read
(
dev
,
phy_num
,
MII_BMSR
);
/* If link beat has returned... */
if
(
mdio_read
(
dev
,
phy_num
,
MII_BMSR
)
&
BMSR_LSTATUS
)
netif_carrier_on
(
dev
);
else
netif_carrier_off
(
dev
);
}
}
}
}
mii_check_link
(
&
sp
->
mii_if
);
if
(
speedo_debug
>
3
)
{
if
(
speedo_debug
>
3
)
{
printk
(
KERN_DEBUG
"%s: Media control tick, status %4.4x.
\n
"
,
printk
(
KERN_DEBUG
"%s: Media control tick, status %4.4x.
\n
"
,
dev
->
name
,
inw
(
ioaddr
+
SCBStatus
));
dev
->
name
,
inw
(
ioaddr
+
SCBStatus
));
...
...
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