mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
4ae575661f
FW flash status notify is currently implemented via a callback to the caller mlx module, and all it is doing is to call devlink_flash_update_status_notify with the specific module devlink instance. Instead of repeating the whole process for all mlx modules and re-implement the status_notify callback again and again. Just provide the devlink instance as part of mlxfw_dev when calling mlxfw_firmware_flash and let mlxfw do the devlink status updates directly. This will be very useful for adding status notify support to mlx5, as already done in this patch, with a simple one line of just providing the devlink instance to mlxfw_firmware_flash. mlxfw now depends on NET_DEVLINK as all other mlx modules. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
16 lines
381 B
Plaintext
16 lines
381 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Mellanox firmware flash library configuration
|
|
#
|
|
|
|
config MLXFW
|
|
tristate "Mellanox Technologies firmware flash module"
|
|
---help---
|
|
This driver supports Mellanox Technologies Firmware
|
|
flashing common logic.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called mlxfw.
|
|
select XZ_DEC
|
|
select NET_DEVLINK
|