Skip to content

Commit

Permalink
kernel: test for kernel version greater 5.13 to fix mmc-spi
Browse files Browse the repository at this point in the history
The of_mmc_spi.o resource is provider agnostic in kernels greater 5.13
and does not depend anymore on CONFIG_OF.

Fixes: coolsnowwolf#10769

Suggested-by: John Thomson <git@johnthomson.fastmail.com.au>
Signed-off-by: Nick Hainke <vincent@systemli.org>
  • Loading branch information
PolynomialDivision authored and aiamadeus committed Jan 27, 2023
1 parent ccc6994 commit fec4f5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package/kernel/linux/modules/spi.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ define KernelPackage/mmc-spi
CONFIG_SPI=y \
CONFIG_SPI_MASTER=y
FILES:=\
$(if $(CONFIG_LINUX_5_15),$(LINUX_DIR)/drivers/mmc/host/of_mmc_spi.ko,$(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
Expand Down

0 comments on commit fec4f5d

Please sign in to comment.