Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2df6137 authored by Or Gerlitz's avatar Or Gerlitz Committed by Saeed Mahameed
Browse files

mlxfw: Make the module selectable



There are upcoming NIC (mlx5) use-cases where people want to avoid
building the mlxfw module, allow for that. The mlxsw module is
untouched and keeps selecting mlxfw.

Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Acked-by: default avatarYotam Gigi <yotamg@mellanox.com>
Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 0c0316f5
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -3,5 +3,11 @@
#

config MLXFW
        tristate "mlxfw" if COMPILE_TEST
	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
+9 −0
Original line number Diff line number Diff line
@@ -96,7 +96,16 @@ struct mlxfw_dev {
	u16 psid_size;
};

#if IS_ENABLED(CONFIG_MLXFW)
int mlxfw_firmware_flash(struct mlxfw_dev *mlxfw_dev,
			 const struct firmware *firmware);
#else
static inline
int mlxfw_firmware_flash(struct mlxfw_dev *mlxfw_dev,
			 const struct firmware *firmware)
{
	return -EOPNOTSUPP;
}
#endif

#endif