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
25409de1
Commit
25409de1
authored
Oct 31, 2002
by
Alan Cox
Committed by
Linus Torvalds
Oct 31, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] use longer delays on 3c509
Som boards dont seem to be in spec
parent
57075741
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
drivers/net/3c509.c
drivers/net/3c509.c
+9
-5
No files found.
drivers/net/3c509.c
View file @
25409de1
...
...
@@ -51,11 +51,13 @@
- Full duplex support
v1.19 16Oct2002 Zwane Mwaikambo <zwane@linuxpower.ca>
- Additional ethtool features
v1.19a 28Oct2002 Davud Ruggiero <jdr@farfalle.com>
- Increase *read_eeprom udelay to workaround oops with 2 cards.
*/
#define DRV_NAME "3c509"
#define DRV_VERSION "1.19"
#define DRV_RELDATE "
16
Oct2002"
#define DRV_VERSION "1.19
a
"
#define DRV_RELDATE "
28
Oct2002"
/* A few values that may be tweaked. */
...
...
@@ -570,8 +572,9 @@ int __init el3_probe(struct net_device *dev, int card_idx)
static
ushort
read_eeprom
(
int
ioaddr
,
int
index
)
{
outw
(
EEPROM_READ
+
index
,
ioaddr
+
10
);
/* Pause for at least 162 us. for the read to take place. */
udelay
(
500
);
/* Pause for at least 162 us. for the read to take place.
Some chips seem to require much longer */
mdelay
(
2
);
return
inw
(
ioaddr
+
12
);
}
...
...
@@ -585,7 +588,8 @@ static ushort __init id_read_eeprom(int index)
outb
(
EEPROM_READ
+
index
,
id_port
);
/* Pause for at least 162 us. for the read to take place. */
udelay
(
500
);
/* Some chips seem to require much longer */
mdelay
(
4
);
for
(
bit
=
15
;
bit
>=
0
;
bit
--
)
word
=
(
word
<<
1
)
+
(
inb
(
id_port
)
&
0x01
);
...
...
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