diff options
author | Ajit Khaparde <ajitk@serverengines.com> | 2010-09-03 06:23:30 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-03 09:52:46 -0700 |
commit | d053de911bff69ba7cdda36d3107c1da0fba7ccd (patch) | |
tree | 4b15644f3e1ebe9b4e09629739b7515f142c7de0 /drivers/net/benet/be_cmds.c | |
parent | 1ef78abec6b5e9e3062e3ae6660eabaf055a718d (diff) | |
download | blackbird-op-linux-d053de911bff69ba7cdda36d3107c1da0fba7ccd.tar.gz blackbird-op-linux-d053de911bff69ba7cdda36d3107c1da0fba7ccd.zip |
be2net: fix a bug in UE detection logic
The ONLINE registers can return 0xFFFFFFFF on more than one
occassion. On systems that care, reading these registers could
lead to problems.
So the new code decides that the ASIC has encountered and error
by reading the UE_STATUS_LOW/HIGH registers. AND them with
the mask values and a non-zero result indicates an error.
Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_cmds.c')
-rw-r--r-- | drivers/net/benet/be_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index 3d305494a606..78f32fe68c0e 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c @@ -207,7 +207,7 @@ static int be_mbox_db_ready_wait(struct be_adapter *adapter, void __iomem *db) if (msecs > 4000) { dev_err(&adapter->pdev->dev, "mbox poll timed out\n"); - be_dump_ue(adapter); + be_detect_dump_ue(adapter); return -1; } |