OSDN Git Service

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)
commit3893c905b557670e25be62b98f5cf0626096e9d4
tree1f4378acf829a4b9dbf278e92822f80db902056c
parent0fb9fbab405351aa0c18973881c4103e4da886b6
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