pds_core: add FW update feature to devlink
authorShannon Nelson <shannon.nelson@amd.com>
Wed, 19 Apr 2023 17:04:20 +0000 (10:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2023 07:29:13 +0000 (08:29 +0100)
commit49ce92fbee0b6bb8066dddf37489483b3b6b5c25
tree1881727acd3a9a76c5ff31ea4c5810a2082f8570
parent01ba61b55b2041a39c54aefb3153c770dd59a0ef
pds_core: add FW update feature to devlink

Add in the support for doing firmware updates.  Of the two
main banks available, a and b, this updates the one not in
use and then selects it for the next boot.

Example:
    devlink dev flash pci/0000:b2:00.0 \
    file pensando/dsc_fw_1.63.0-22.tar

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/device_drivers/ethernet/amd/pds_core.rst
drivers/net/ethernet/amd/pds_core/Makefile
drivers/net/ethernet/amd/pds_core/core.h
drivers/net/ethernet/amd/pds_core/devlink.c
drivers/net/ethernet/amd/pds_core/fw.c [new file with mode: 0644]
drivers/net/ethernet/amd/pds_core/main.c