From: Til Kaiser Date: Sun, 29 Sep 2024 14:54:54 +0000 (+0200) Subject: kernel: modules: add boot flag to igc, mlx4, and mlx5 drivers X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0a47d518df0d758e8d3b31264cb0428d57c362c3;p=openwrt%2Fstaging%2Fansuel.git kernel: modules: add boot flag to igc, mlx4, and mlx5 drivers Set the boot flag for the igc, mlx4-core, and mlx5-core network device drivers to load them at a more early stage of the boot process. This is required for network drivers whose network interface PCI paths are set via ucidef_set_network_device_path inside the 02_network script since it is called after kernel modules are loaded from modules-boot.d but before they are loaded from the modules.d directory. Signed-off-by: Til Kaiser Link: https://github.com/openwrt/openwrt/pull/16560 Signed-off-by: Hauke Mehrtens --- diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index 0ca626610f..eb0d55e252 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -1558,7 +1558,7 @@ define KernelPackage/mlx4-core CONFIG_MLX4_CORE=y \ CONFIG_MLX4_CORE_GEN2=y \ CONFIG_MLX4_DEBUG=n - AUTOLOAD:=$(call AutoProbe,mlx4_core mlx4_en) + AUTOLOAD:=$(call AutoLoad,36,mlx4_core mlx4_en,1) endef define KernelPackage/mlx4-core/description @@ -1589,7 +1589,7 @@ define KernelPackage/mlx5-core CONFIG_MLX5_TC_CT=n \ CONFIG_MLX5_TLS=n \ CONFIG_MLX5_VFIO_PCI=n - AUTOLOAD:=$(call AutoProbe,mlx5_core) + AUTOLOAD:=$(call AutoLoad,36,mlx5_core,1) endef define KernelPackage/mlx5-core/description @@ -1798,7 +1798,7 @@ define KernelPackage/igc DEPENDS:=@PCI_SUPPORT +kmod-ptp KCONFIG:=CONFIG_IGC FILES:=$(LINUX_DIR)/drivers/net/ethernet/intel/igc/igc.ko - AUTOLOAD:=$(call AutoProbe,igc) + AUTOLOAD:=$(call AutoLoad,34,igc,1) endef define KernelPackage/igc/description