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
23c1627f
Commit
23c1627f
authored
Aug 30, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Add 5750 A3 workaround.
Signed-off-by:
David S. Miller
<
davem@redhat.com
>
parent
f7f6b026
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
drivers/net/tg3.c
drivers/net/tg3.c
+7
-0
drivers/net/tg3.h
drivers/net/tg3.h
+1
-0
No files found.
drivers/net/tg3.c
View file @
23c1627f
...
...
@@ -3723,6 +3723,8 @@ static void tg3_write_sig_legacy(struct tg3 *tp, int kind)
}
}
static
void
tg3_stop_fw
(
struct
tg3
*
);
/* tp->lock is held. */
static
int
tg3_chip_reset
(
struct
tg3
*
tp
)
{
...
...
@@ -3825,6 +3827,11 @@ static int tg3_chip_reset(struct tg3 *tp)
tw32
(
MEMARB_MODE
,
MEMARB_MODE_ENABLE
);
if
(
tp
->
pci_chip_rev_id
==
CHIPREV_ID_5750_A3
)
{
tg3_stop_fw
(
tp
);
tw32
(
0x5000
,
0x400
);
}
tw32
(
GRC_MODE
,
tp
->
grc_mode
);
if
(
tp
->
pci_chip_rev_id
==
CHIPREV_ID_5705_A0
)
{
...
...
drivers/net/tg3.h
View file @
23c1627f
...
...
@@ -124,6 +124,7 @@
#define CHIPREV_ID_5705_A3 0x3003
#define CHIPREV_ID_5750_A0 0x4000
#define CHIPREV_ID_5750_A1 0x4001
#define CHIPREV_ID_5750_A3 0x4003
#define GET_ASIC_REV(CHIP_REV_ID) ((CHIP_REV_ID) >> 12)
#define ASIC_REV_5700 0x07
#define ASIC_REV_5701 0x00
...
...
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