diff options
author | Nick Hainke <vincent@systemli.org> | 2022-10-10 08:04:41 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2022-10-19 21:40:23 +0200 |
commit | 0ecb971a6f37052f851402b8ef837bb69c3874e6 (patch) | |
tree | f25696fb18aeacafbe6d693b71007b25bfd93516 /package/kernel | |
parent | 84b5b0f88c2f67b682f1d7e0461c10152f3e5f1b (diff) | |
download | upstream-0ecb971a6f37052f851402b8ef837bb69c3874e6.tar.gz upstream-0ecb971a6f37052f851402b8ef837bb69c3874e6.tar.bz2 upstream-0ecb971a6f37052f851402b8ef837bb69c3874e6.zip |
kernel: test for kernel version greater 5.13 to fix mmc-spi
The of_mmc_spi.o resource is provider agnostic in kernels greater 5.13
and does not depend anymore on CONFIG_OF [0].
[0] - https://github.com/torvalds/linux/commit/edd602146507532c1714d8428f654b87205f492e
Suggested-by: John Thomson <git@johnthomson.fastmail.com.au>
Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/linux/modules/spi.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/kernel/linux/modules/spi.mk b/package/kernel/linux/modules/spi.mk index 01dc7dc7e6..5cdfc3b2b3 100644 --- a/package/kernel/linux/modules/spi.mk +++ b/package/kernel/linux/modules/spi.mk @@ -15,9 +15,10 @@ define KernelPackage/mmc-spi CONFIG_SPI=y \ CONFIG_SPI_MASTER=y FILES:=\ - $(if $(CONFIG_OF),$(LINUX_DIR)/drivers/mmc/host/of_mmc_spi.ko) \ + $(if $(CONFIG_OF),$(LINUX_DIR)/drivers/mmc/host/of_mmc_spi.ko@lt5.13) \ + $(LINUX_DIR)/drivers/mmc/host/of_mmc_spi.ko@ge5.13 \ $(LINUX_DIR)/drivers/mmc/host/mmc_spi.ko - AUTOLOAD:=$(call AutoProbe,$(if $(CONFIG_OF),of_mmc_spi) mmc_spi) + AUTOLOAD:=$(call AutoProbe,$(if $(CONFIG_OF),of_mmc_spi@lt5.13) of_mmc_spi@ge5.13 mmc_spi) endef define KernelPackage/mmc-spi/description |