bnx2x: recognize fan failure
authorYaniv Rosner <yaniv.rosner@broadcom.com>
Sun, 2 Dec 2012 23:56:49 +0000 (23:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2012 18:46:43 +0000 (13:46 -0500)
commit092a5fc9636268bc2c0fef4d9b99845699cf19f9
tree4acad922142c39c72616abfd7b8581562af121d0
parent64e9a9b8a0eef9cbd9f86f0e79fc4eeea24abe76
bnx2x: recognize fan failure

If fan failure is detected, MCP prevents PCI I/O registers from being
mapped to the bar, causing a fatal error as driver is unaware.

This patch recognizes such an event occurred and gracefully terminates
the probe process.

Signed-off-by: Yaniv Rosner <yaniv.rosner@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h