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
a3ca50f9
Commit
a3ca50f9
authored
Mar 28, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Kill 'force' arg to tg3_phy_reset, it is always set.
parent
9c4495e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
drivers/net/tg3.c
drivers/net/tg3.c
+4
-10
No files found.
drivers/net/tg3.c
View file @
a3ca50f9
...
...
@@ -664,7 +664,7 @@ static int tg3_phy_reset_5703_4_5(struct tg3 *tp)
/* This will reset the tigon3 PHY if there is no valid
* link unless the FORCE argument is non-zero.
*/
static
int
tg3_phy_reset
(
struct
tg3
*
tp
,
int
force
)
static
int
tg3_phy_reset
(
struct
tg3
*
tp
)
{
u32
phy_status
;
int
err
;
...
...
@@ -674,12 +674,6 @@ static int tg3_phy_reset(struct tg3 *tp, int force)
if
(
err
!=
0
)
return
-
EBUSY
;
/* If we have link, and not forcing a reset, then nothing
* to do.
*/
if
((
phy_status
&
BMSR_LSTATUS
)
!=
0
&&
(
force
==
0
))
return
0
;
if
(
GET_ASIC_REV
(
tp
->
pci_chip_rev_id
)
==
ASIC_REV_5703
||
GET_ASIC_REV
(
tp
->
pci_chip_rev_id
)
==
ASIC_REV_5704
||
GET_ASIC_REV
(
tp
->
pci_chip_rev_id
)
==
ASIC_REV_5705
)
{
...
...
@@ -1265,7 +1259,7 @@ static int tg3_setup_copper_phy(struct tg3 *tp, int force_reset)
force_reset
=
1
;
}
if
(
force_reset
)
tg3_phy_reset
(
tp
,
1
);
tg3_phy_reset
(
tp
);
if
((
tp
->
phy_id
&
PHY_ID_MASK
)
==
PHY_ID_BCM5401
)
{
tg3_readphy
(
tp
,
MII_BMSR
,
&
bmsr
);
...
...
@@ -1292,7 +1286,7 @@ static int tg3_setup_copper_phy(struct tg3 *tp, int force_reset)
if
((
tp
->
phy_id
&
PHY_ID_REV_MASK
)
==
PHY_REV_BCM5401_B0
&&
!
(
bmsr
&
BMSR_LSTATUS
)
&&
tp
->
link_config
.
active_speed
==
SPEED_1000
)
{
err
=
tg3_phy_reset
(
tp
,
1
);
err
=
tg3_phy_reset
(
tp
);
if
(
!
err
)
err
=
tg3_init_5401phy_dsp
(
tp
);
if
(
err
)
...
...
@@ -6491,7 +6485,7 @@ static int __devinit tg3_phy_probe(struct tg3 *tp)
}
}
err
=
tg3_phy_reset
(
tp
,
1
);
err
=
tg3_phy_reset
(
tp
);
if
(
err
)
return
err
;
...
...
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