]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i40e: point wb_desc at the nvm_wb_desc during i40e_read_nvm_aq
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 1 Sep 2017 20:43:08 +0000 (13:43 -0700)
committerJack Vogel <jack.vogel@oracle.com>
Tue, 10 Oct 2017 21:15:26 +0000 (14:15 -0700)
When introducing the functions to read the NVM through the AdminQ, we
did not correctly mark the wb_desc.

Fixes: 7073f46e443e ("i40e: Add AQ commands for NVM Update for X722", 2015-06-05)
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Orabug: 26785018
(cherry picked from commit 3c8f3e96af3a6799841761923d000566645f0942)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Kyle Fortin <kyle.fortin@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_nvm.c

index e29b193d851054563a9d08f063ba90e80ad82918..57505b1df98dfb65e5033808c05c4cf9954600de 100644 (file)
@@ -247,6 +247,7 @@ static i40e_status i40e_read_nvm_aq(struct i40e_hw *hw, u8 module_pointer,
        struct i40e_asq_cmd_details cmd_details;
 
        memset(&cmd_details, 0, sizeof(cmd_details));
+       cmd_details.wb_desc = &hw->nvm_wb_desc;
 
        /* Here we are checking the SR limit only for the flat memory model.
         * We cannot do it for the module-based model, as we did not acquire