projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb80ce7
)
bnx2x: Reset link before any new link settings
author
Yaniv Rosner
<
[email protected]
>
Wed, 1 Sep 2010 09:51:23 +0000
(09:51 +0000)
committer
David S. Miller
<
[email protected]
>
Wed, 1 Sep 2010 17:44:32 +0000
(10:44 -0700)
Reset link before any new link settings to avoid potential link issue
caused by previous link settings
Signed-off-by: Yaniv Rosner <
[email protected]
>
Signed-off-by: Eilon Greenstein <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/bnx2x/bnx2x_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnx2x/bnx2x_main.c
b/drivers/net/bnx2x/bnx2x_main.c
index 7fb9a61a73c741d627907f2d18927e6762945e0c..b09fa04cbc1d2e58f97f257f8dc7c7649072deef 100644
(file)
--- a/
drivers/net/bnx2x/bnx2x_main.c
+++ b/
drivers/net/bnx2x/bnx2x_main.c
@@
-1292,6
+1292,7
@@
void bnx2x_link_set(struct bnx2x *bp)
{
if (!BP_NOMCP(bp)) {
bnx2x_acquire_phy_lock(bp);
+ bnx2x_link_reset(&bp->link_params, &bp->link_vars, 1);
bnx2x_phy_init(&bp->link_params, &bp->link_vars);
bnx2x_release_phy_lock(bp);