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
19250a63
Commit
19250a63
authored
Mar 17, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr de2104x] initialize bus mode properly
parent
66172429
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
drivers/net/tulip/de2104x.c
drivers/net/tulip/de2104x.c
+9
-9
No files found.
drivers/net/tulip/de2104x.c
View file @
19250a63
...
...
@@ -28,8 +28,8 @@
*/
#define DRV_NAME "de2104x"
#define DRV_VERSION "0.
6
"
#define DRV_RELDATE "
Sep 1, 2003
"
#define DRV_VERSION "0.
7
"
#define DRV_RELDATE "
Mar 17, 2004
"
#include <linux/config.h>
#include <linux/module.h>
...
...
@@ -1173,18 +1173,18 @@ static int de_reset_mac (struct de_private *de)
u32
status
,
tmp
;
/*
* Reset MAC. Copied from de4x5.c.
* Reset MAC. de4x5.c and tulip.c examined for "advice"
* in this area.
*/
tmp
=
dr32
(
BusMode
);
if
(
tmp
==
0xffffffff
)
return
-
ENODEV
;
mdelay
(
1
);
if
(
dr32
(
BusMode
)
==
0xffffffff
)
return
-
EBUSY
;
dw32
(
BusMode
,
tmp
|
CmdReset
);
/* Reset the chip, holding bit 0 set at least 50 PCI cycles. */
dw32
(
BusMode
,
CmdReset
);
mdelay
(
1
);
dw32
(
BusMode
,
tmp
);
dw32
(
BusMode
,
de_bus_mode
);
mdelay
(
1
);
for
(
tmp
=
0
;
tmp
<
5
;
tmp
++
)
{
...
...
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