From: Jacob Keller Date: Thu, 8 Sep 2011 03:50:54 +0000 (+0000) Subject: ixgbe: fix driver version initialization in firmware X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~163 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5e2f1e7d16f8f3c74f0acec7a9f7fdcabc665947;p=users%2Fjedix%2Flinux-maple.git ixgbe: fix driver version initialization in firmware This patch fixes an issue with storing the driver version for the firmware. If the os does not support the particular firmware management tools, the firmware requires a driver version to be written as 0xFFFFFFFF rather than the actual driver version. (cherry picked from commit 2466dd9ca11ea9e4400eb8477a9df2a0fe539d47) Signed-off-by: Jacob Keller Tested-by: Stephen Ko Signed-off-by: Jeff Kirsher Signed-off-by: Joe Jin --- diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index abbfc61b9d3f..1a929c4e63be 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c @@ -7587,10 +7587,12 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, ixgbe_vf_configuration(pdev, (i | 0x10000000)); } - /* Inform firmware of driver version */ + /* firmware requires driver version to be 0xFFFFFFFF + * since os does not support feature + */ if (hw->mac.ops.set_fw_drv_ver) - hw->mac.ops.set_fw_drv_ver(hw, MAJ, MIN, BUILD, - FW_CEM_UNUSED_VER); + hw->mac.ops.set_fw_drv_ver(hw, 0xFF, 0xFF, 0xFF, + 0xFF); /* add san mac addr to netdev */ ixgbe_add_sanmac_netdev(netdev);