]> 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)
commitdf4825d01c97570892d6fdbb1fc08262fa349878
tree47435beee19d6ab7e5c760523c2c62654e62b8e2
parent615c71f396de6fdacd26f5b1b02da97e7253a975
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: c2fba58b3ee2 ("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