]> 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)
commit4a729259bd64fc67d28eb1729641c95014fc7469
tree1f4378acf829a4b9dbf278e92822f80db902056c
parentd7a66f40197b50f1c6e417bb4cce6eeae2a3285f
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