qed: Populate nvm-file attributes while reading nvm config partition.
authorSudarsana Reddy Kalluru <skalluru@marvell.com>
Thu, 9 Jul 2020 03:14:29 +0000 (20:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jul 2020 19:30:25 +0000 (12:30 -0700)
commit13cf8aab7425a253070433b5a55b4209ceac8b19
tree47435beee19d6ab7e5c760523c2c62654e62b8e2
parent76c4d85c9260c3d741cbd194c30c61983d0a4303
qed: Populate nvm-file attributes while reading nvm config partition.

NVM config file address will be modified when the MBI image is upgraded.
Driver would return stale config values if user reads the nvm-config
(via ethtool -d) in this state. The fix is to re-populate nvm attribute
info while reading the nvm config values/partition.

Changes from previous version:
-------------------------------
v3: Corrected the formatting in 'Fixes' tag.
v2: Added 'Fixes' tag.

Fixes: 1ac4329a1cff ("qed: Add configuration information to register dump and debug data")
Signed-off-by: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_debug.c
drivers/net/ethernet/qlogic/qed/qed_dev.c
drivers/net/ethernet/qlogic/qed/qed_mcp.c
drivers/net/ethernet/qlogic/qed/qed_mcp.h