Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315462
b: refs/heads/master
c: 2e177a5
h: refs/heads/master
v: v3
  • Loading branch information
Padmanabh Ratnakar authored and David S. Miller committed Jul 18, 2012
1 parent 3dc6c51 commit 25f9486
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b13fb458fe6d244baaa701049c9a51105224820
refs/heads/master: 2e177a5c6cc52d8a422c69ba87b8a7e00ecb6eac
5 changes: 5 additions & 0 deletions trunk/drivers/net/ethernet/emulex/benet/be_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ static void be_async_link_state_process(struct be_adapter *adapter,
/* When link status changes, link speed must be re-queried from FW */
adapter->phy.link_speed = -1;

/* Ignore physical link event */
if (lancer_chip(adapter) &&
!(evt->port_link_status & LOGICAL_LINK_STATUS_MASK))
return;

/* For the initial link status do not rely on the ASYNC event as
* it may not be received in some cases.
*/
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/ethernet/emulex/benet/be_cmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ enum {
LINK_UP = 0x1
};
#define LINK_STATUS_MASK 0x1
#define LOGICAL_LINK_STATUS_MASK 0x2

/* When the event code of an async trailer is link-state, the mcc_compl
* must be interpreted as follows
Expand Down

0 comments on commit 25f9486

Please sign in to comment.