]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitef2a7c5020dc83b5d37cddb40fa999372e0926e7
tree47435beee19d6ab7e5c760523c2c62654e62b8e2
parent5a20ccced4c45b4c91eb12c77dcd9cbf1f0196bc
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: 419dd9d0cc6d ("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