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
d1c7d252
Commit
d1c7d252
authored
Aug 18, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Always set MAC_EVENT_LNKSTATE_CHANGED even when serdes polling.
Signed-off-by:
David S. Miller
<
davem@redhat.com
>
parent
be62bda5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
drivers/net/tg3.c
drivers/net/tg3.c
+3
-6
No files found.
drivers/net/tg3.c
View file @
d1c7d252
...
@@ -1619,7 +1619,7 @@ static int tg3_setup_copper_phy(struct tg3 *tp, int force_reset)
...
@@ -1619,7 +1619,7 @@ static int tg3_setup_copper_phy(struct tg3 *tp, int force_reset)
tw32_f
(
MAC_MODE
,
tp
->
mac_mode
);
tw32_f
(
MAC_MODE
,
tp
->
mac_mode
);
udelay
(
40
);
udelay
(
40
);
if
(
tp
->
tg3_flags
&
(
TG3_FLAG_USE_LINKCHG_REG
|
TG3_FLAG_POLL_SERDES
)
)
{
if
(
tp
->
tg3_flags
&
TG3_FLAG_USE_LINKCHG_REG
)
{
/* Polled via timer. */
/* Polled via timer. */
tw32_f
(
MAC_EVENT
,
0
);
tw32_f
(
MAC_EVENT
,
0
);
}
else
{
}
else
{
...
@@ -2269,11 +2269,8 @@ static int tg3_setup_fiber_phy(struct tg3 *tp, int force_reset)
...
@@ -2269,11 +2269,8 @@ static int tg3_setup_fiber_phy(struct tg3 *tp, int force_reset)
if
(
tp
->
phy_id
==
PHY_ID_BCM8002
)
if
(
tp
->
phy_id
==
PHY_ID_BCM8002
)
tg3_init_bcm8002
(
tp
);
tg3_init_bcm8002
(
tp
);
/* Enable link change interrupt unless serdes polling. */
/* Enable link change event even when serdes polling. */
if
(
!
(
tp
->
tg3_flags
&
TG3_FLAG_POLL_SERDES
))
tw32_f
(
MAC_EVENT
,
MAC_EVENT_LNKSTATE_CHANGED
);
tw32_f
(
MAC_EVENT
,
MAC_EVENT_LNKSTATE_CHANGED
);
else
tw32_f
(
MAC_EVENT
,
0
);
udelay
(
40
);
udelay
(
40
);
current_link_up
=
0
;
current_link_up
=
0
;
...
...
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