Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sfc: document devlink flash support

Update the information in sfc's devlink documentation including
support for firmware update with devlink flash.
Also update the help text for CONFIG_SFC_MTD, as it is no longer
strictly required for firmware updates.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Link: https://patch.msgid.link/3476b0ef04a0944f03e0b771ec8ed1a9c70db4dc.1739186253.git.ecree.xilinx@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Edward Cree and committed by
Jakub Kicinski
5ea73bf3 3ed63980

+18 -3
+15 -1
Documentation/networking/devlink/sfc.rst
··· 5 5 =================== 6 6 7 7 This document describes the devlink features implemented by the ``sfc`` 8 - device driver for the ef100 device. 8 + device driver for the ef10 and ef100 devices. 9 9 10 10 Info versions 11 11 ============= ··· 18 18 * - Name 19 19 - Type 20 20 - Description 21 + * - ``fw.bundle_id`` 22 + - stored 23 + - Version of the firmware "bundle" image that was last used to update 24 + multiple components. 21 25 * - ``fw.mgmt.suc`` 22 26 - running 23 27 - For boards where the management function is split between multiple ··· 59 55 * - ``fw.uefi`` 60 56 - running 61 57 - UEFI driver version (No UNDI support). 58 + 59 + Flash Update 60 + ============ 61 + 62 + The ``sfc`` driver implements support for flash update using the 63 + ``devlink-flash`` interface. It supports updating the device flash using a 64 + combined flash image ("bundle") that contains multiple components (on ef10, 65 + typically ``fw.mgmt``, ``fw.app``, ``fw.exprom`` and ``fw.uefi``). 66 + 67 + The driver does not support any overwrite mask flags.
+3 -2
drivers/net/ethernet/sfc/Kconfig
··· 38 38 default y 39 39 help 40 40 This exposes the on-board flash and/or EEPROM as MTD devices 41 - (e.g. /dev/mtd1). This is required to update the firmware or 42 - the boot configuration under Linux. 41 + (e.g. /dev/mtd1). This is required to update the boot 42 + configuration under Linux, or use some older userland tools to 43 + update the firmware. 43 44 config SFC_MCDI_MON 44 45 bool "Solarflare SFC9100-family hwmon support" 45 46 depends on SFC && HWMON && !(SFC=y && HWMON=m)