]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: update set_flash to flash different images
authorVishal Kulkarni <vishal@chelsio.com>
Thu, 18 Jun 2020 06:05:52 +0000 (11:35 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jun 2020 03:49:55 +0000 (20:49 -0700)
commit8e156c1614ae7fb81915750fc531c5a77fdd8cb7
tree1f4378acf829a4b9dbf278e92822f80db902056c
parent4e1a079aa2fa69cef6ca856240009f33d54bb20a
cxgb4: update set_flash to flash different images

Chelsio adapter contains different flash regions and each
region is used by different binary files. This patch adds
support to flash images like PHY firmware, boot and boot config
using ethtool -f N.

The N value mapping is as follows.
N = 0 : Parse image and decide which region to flash
N = 1 : Firmware
N = 2 : PHY firmware
N = 3 : boot image
N = 4 : boot cfg

Signed-off-by: Vishal Kulkarni <vishal@chelsio.com>"
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c