be2net: In case of UE, do not dump registers for Lancer

In case of UE, do not dump registers for Lancer as they are not
supported.

Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Padmanabh Ratnakar 2011-05-10 05:13:01 +00:00 committed by David S. Miller
parent 6bd011d542
commit 18a91e6002
1 changed files with 2 additions and 1 deletions

View File

@ -293,7 +293,8 @@ 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_detect_dump_ue(adapter);
if (!lancer_chip(adapter))
be_detect_dump_ue(adapter);
return -1;
}