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
nexedi
linux
Commits
41cc1c1a
Commit
41cc1c1a
authored
Jul 10, 2003
by
jcchen@icplus.com.tw
Committed by
Stephen Hemminger
Jul 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr sundance] increase eeprom read timeout
parent
c3d5155c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
drivers/net/sundance.c
drivers/net/sundance.c
+8
-2
No files found.
drivers/net/sundance.c
View file @
41cc1c1a
...
@@ -87,11 +87,15 @@
...
@@ -87,11 +87,15 @@
Version LK1.09 (D-Link):
Version LK1.09 (D-Link):
- Fix the flowctrl bug.
- Fix the flowctrl bug.
- Set Pause bit in MII ANAR if flow control enabled.
- Set Pause bit in MII ANAR if flow control enabled.
Version LK1.09a (ICPlus):
- Add the delay time in reading the contents of EEPROM
*/
*/
#define DRV_NAME "sundance"
#define DRV_NAME "sundance"
#define DRV_VERSION "1.01+LK1.09a"
#define DRV_VERSION "1.01+LK1.09a"
#define DRV_RELDATE "1
6-May
-2003"
#define DRV_RELDATE "1
0-Jul
-2003"
/* The user-configurable values.
/* The user-configurable values.
...
@@ -744,12 +748,14 @@ static int change_mtu(struct net_device *dev, int new_mtu)
...
@@ -744,12 +748,14 @@ static int change_mtu(struct net_device *dev, int new_mtu)
return
0
;
return
0
;
}
}
#define eeprom_delay(ee_addr) readl(ee_addr)
/* Read the EEPROM and MII Management Data I/O (MDIO) interfaces. */
/* Read the EEPROM and MII Management Data I/O (MDIO) interfaces. */
static
int
__devinit
eeprom_read
(
long
ioaddr
,
int
location
)
static
int
__devinit
eeprom_read
(
long
ioaddr
,
int
location
)
{
{
int
boguscnt
=
1000
;
/* Typical 19
0 ticks. */
int
boguscnt
=
1000
0
;
/* Typical 190
0 ticks. */
writew
(
0x0200
|
(
location
&
0xff
),
ioaddr
+
EECtrl
);
writew
(
0x0200
|
(
location
&
0xff
),
ioaddr
+
EECtrl
);
do
{
do
{
eeprom_delay
(
ioaddr
+
EECtrl
);
if
(
!
(
readw
(
ioaddr
+
EECtrl
)
&
0x8000
))
{
if
(
!
(
readw
(
ioaddr
+
EECtrl
)
&
0x8000
))
{
return
readw
(
ioaddr
+
EEData
);
return
readw
(
ioaddr
+
EEData
);
}
}
...
...
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