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
109ca303
Commit
109ca303
authored
May 05, 2002
by
James Morris
Committed by
David S. Miller
May 05, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tigon3: Handle Netgear GA302T correctly.
parent
87477c8b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
drivers/net/tg3.c
drivers/net/tg3.c
+12
-1
drivers/net/tg3.h
drivers/net/tg3.h
+3
-0
No files found.
drivers/net/tg3.c
View file @
109ca303
/* $Id: tg3.c,v 1.43.2.
79 2002/03/12 07:11:17
davem Exp $
/* $Id: tg3.c,v 1.43.2.
80 2002/03/14 00:10:04
davem Exp $
* tg3.c: Broadcom Tigon3 ethernet driver.
*
* Copyright (C) 2001, 2002 David S. Miller (davem@redhat.com)
...
...
@@ -956,6 +956,17 @@ static int tg3_setup_copper_phy(struct tg3 *tp)
tp
->
link_config
.
active_speed
==
SPEED_10
))
tp
->
mac_mode
|=
MAC_MODE_LINK_POLARITY
;
}
/* ??? Without this setting Netgear GA302T PHY does not
* ??? send/receive packets...
*/
if
((
tp
->
phy_id
&
PHY_ID_MASK
)
==
PHY_ID_BCM5411
&&
tp
->
pci_chip_rev_id
==
CHIPREV_ID_5700_ALTIMA
)
{
tp
->
mi_mode
|=
MAC_MI_MODE_AUTO_POLL
;
tw32
(
MAC_MI_MODE
,
tp
->
mi_mode
);
udelay
(
40
);
}
tw32
(
MAC_MODE
,
tp
->
mac_mode
);
if
(
tp
->
tg3_flags
&
TG3_FLAG_USE_LINKCHG_REG
)
{
...
...
drivers/net/tg3.h
View file @
109ca303
...
...
@@ -99,6 +99,8 @@
#define CHIPREV_ID_5700_A1 0x7001
#define CHIPREV_ID_5700_B0 0x7100
#define CHIPREV_ID_5700_B1 0x7101
#define CHIPREV_ID_5700_B3 0x7102
#define CHIPREV_ID_5700_ALTIMA 0x7104
#define CHIPREV_ID_5700_C0 0x7200
#define CHIPREV_ID_5701_A0 0x0000
#define CHIPREV_ID_5701_B0 0x0100
...
...
@@ -1843,6 +1845,7 @@ struct tg3 {
#define PHY_REV_BCM5401_B0 0x1
#define PHY_REV_BCM5401_B2 0x3
#define PHY_REV_BCM5401_C0 0x6
#define PHY_REV_BCM5411_X0 0x1
/* Found on Netgear GA302T */
enum
phy_led_mode
led_mode
;
...
...
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