提交 16b311cc 编写于 作者: E Eilon Greenstein 提交者: David S. Miller

bnx2x: Handling PHY FW load failure

If the default PHY version (0x4321) is read - the PHY FW load failed
Signed-off-by: NYaniv Rosner <yanivr@broadcom.com>
Signed-off-by: NEilon Greenstein <eilong@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 44722d1d
...@@ -4404,10 +4404,11 @@ static u8 bnx2x_8073_common_init_phy(struct bnx2x *bp, u32 shmem_base) ...@@ -4404,10 +4404,11 @@ static u8 bnx2x_8073_common_init_phy(struct bnx2x *bp, u32 shmem_base)
ext_phy_addr[port], ext_phy_addr[port],
MDIO_PMA_DEVAD, MDIO_PMA_DEVAD,
MDIO_PMA_REG_ROM_VER1, &fw_ver1); MDIO_PMA_REG_ROM_VER1, &fw_ver1);
if (fw_ver1 == 0) { if (fw_ver1 == 0 || fw_ver1 == 0x4321) {
DP(NETIF_MSG_LINK, DP(NETIF_MSG_LINK,
"bnx2x_8073_common_init_phy port %x " "bnx2x_8073_common_init_phy port %x:"
"fw Download failed\n", port); "Download failed. fw version = 0x%x\n",
port, fw_ver1);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册