From b089531c326b298eb1392b134a70cf4768ad12dc Mon Sep 17 00:00:00 2001 From: Pawel Langowski Date: Wed, 30 Oct 2024 14:28:35 +0100 Subject: [PATCH] recipes-kernel/linux/linux-mainline: Disable WiFi chip Signed-off-by: Pawel Langowski --- ...-plus-orangepi-zero.dts-disable-mmc1.patch | 32 +++++++++++++++++++ .../linux/linux-mainline_%.bbappend | 1 + 2 files changed, 33 insertions(+) create mode 100644 recipes-kernel/linux/linux-mainline/0010-sun8i-h2-plus-orangepi-zero.dts-disable-mmc1.patch diff --git a/recipes-kernel/linux/linux-mainline/0010-sun8i-h2-plus-orangepi-zero.dts-disable-mmc1.patch b/recipes-kernel/linux/linux-mainline/0010-sun8i-h2-plus-orangepi-zero.dts-disable-mmc1.patch new file mode 100644 index 0000000..2ad1880 --- /dev/null +++ b/recipes-kernel/linux/linux-mainline/0010-sun8i-h2-plus-orangepi-zero.dts-disable-mmc1.patch @@ -0,0 +1,32 @@ +From 2060e08623dd97b47f5c03651ac865d2efbd203a Mon Sep 17 00:00:00 2001 +From: Pawel Langowski +Date: Tue, 29 Oct 2024 09:47:51 +0100 +Subject: [PATCH] Disable wifi chip + +There is a race condition between mmc0 and mmc1 when mouting the root +partition on RTE. Disabling mmc1 solves this problem. The WiFi chip does +not work anyway. + +Upstream-Status: Inappropriate [oe specific] + +Signed-off-by: Pawel Langowski +--- + arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts +index 1b001f2ad0ef..baab19d3604f 100644 +--- a/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts ++++ b/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts +@@ -143,7 +143,7 @@ &mmc1 { + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; +- status = "okay"; ++ status = "disabled"; + + /* + * Explicitly define the sdio device, so that we can add an ethernet +-- +2.46.2 + diff --git a/recipes-kernel/linux/linux-mainline_%.bbappend b/recipes-kernel/linux/linux-mainline_%.bbappend index a0bb9ff..678f926 100644 --- a/recipes-kernel/linux/linux-mainline_%.bbappend +++ b/recipes-kernel/linux/linux-mainline_%.bbappend @@ -10,6 +10,7 @@ SRC_URI += " \ file://0007-drivers-spi-spidev.c-add-spidev-compatible.patch \ file://0008-sun8i-h2-plus-orangepi-zero.dts-enable-spidev.patch \ file://0009-sun8i-h2-plus-orangepi-zero.dts-enable-in219.patch \ + file://0010-sun8i-h2-plus-orangepi-zero.dts-disable-mmc1.patch \ " SRC_URI += " \