]> www.infradead.org Git - users/hch/misc.git/commit
sfc: extend NVRAM MCDI handlers
authorEdward Cree <ecree.xilinx@gmail.com>
Mon, 10 Feb 2025 11:25:43 +0000 (11:25 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Feb 2025 01:12:17 +0000 (17:12 -0800)
commitd41987e906e75d4c97b3db23ce3caf7252a38eef
treea895f9bfa11ab9d19305807c7ed8eecbbf6bdc6d
parentfd118a77ede759baf1c815a0a6e288315425e92b
sfc: extend NVRAM MCDI handlers

Support variable write-alignment, and background updates.  The latter
 allows other MCDI to continue while the device is processing an
 MC_CMD_NVRAM_UPDATE_FINISH, since this can take a long time owing to
 e.g. cryptographic signature verification.
Expose these handlers in mcdi.h, and build them even when
 CONFIG_SFC_MTD=n, so they can be used for devlink flash in a
 subsequent patch.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Link: https://patch.msgid.link/de3d9e14fee69e15d95b46258401a93b75659f78.1739186253.git.ecree.xilinx@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/mcdi.h