提交 1d15f81c 编写于 作者: J Jon Mason 提交者: David S. Miller

vxge: correct eprom version detection

The firmware PXE EPROM version detection is failing due to passing the
wrong parameter into firmware query function.  Also, the version
printing function has an extraneous newline.
Signed-off-by: NJon Mason <jon.mason@exar.com>
Signed-off-by: NSivakumar Subramani <sivakumar.subramani@exar.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6cca2003
...@@ -387,8 +387,8 @@ vxge_hw_vpath_eprom_img_ver_get(struct __vxge_hw_device *hldev, ...@@ -387,8 +387,8 @@ vxge_hw_vpath_eprom_img_ver_get(struct __vxge_hw_device *hldev,
data1 = steer_ctrl = 0; data1 = steer_ctrl = 0;
status = vxge_hw_vpath_fw_api(vpath, status = vxge_hw_vpath_fw_api(vpath,
VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_FW_MEMO,
VXGE_HW_FW_API_GET_EPROM_REV, VXGE_HW_FW_API_GET_EPROM_REV,
VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_FW_MEMO,
0, &data0, &data1, &steer_ctrl); 0, &data0, &data1, &steer_ctrl);
if (status != VXGE_HW_OK) if (status != VXGE_HW_OK)
break; break;
......
...@@ -4451,7 +4451,7 @@ vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre) ...@@ -4451,7 +4451,7 @@ vxge_probe(struct pci_dev *pdev, const struct pci_device_id *pre)
if (!img[i].is_valid) if (!img[i].is_valid)
break; break;
vxge_debug_init(VXGE_TRACE, "%s: EPROM %d, version " vxge_debug_init(VXGE_TRACE, "%s: EPROM %d, version "
"%d.%d.%d.%d\n", VXGE_DRIVER_NAME, i, "%d.%d.%d.%d", VXGE_DRIVER_NAME, i,
VXGE_EPROM_IMG_MAJOR(img[i].version), VXGE_EPROM_IMG_MAJOR(img[i].version),
VXGE_EPROM_IMG_MINOR(img[i].version), VXGE_EPROM_IMG_MINOR(img[i].version),
VXGE_EPROM_IMG_FIX(img[i].version), VXGE_EPROM_IMG_FIX(img[i].version),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册