From 201bd2c42836d6023123d7d889f96cfb651bc193 Mon Sep 17 00:00:00 2001 From: Marek Belisko Date: Wed, 10 Jan 2024 09:19:42 +0100 Subject: [PATCH] linux-mainline: Added consistent mmc device handling for orangepi-pc-plus Signed-off-by: Marek Belisko --- recipes-kernel/linux/linux-mainline.inc | 1 + ...-Added-mmc-aliases-to-have-consisten.patch | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 recipes-kernel/linux/linux-mainline/0006-orangepi-pc-plus-Added-mmc-aliases-to-have-consisten.patch diff --git a/recipes-kernel/linux/linux-mainline.inc b/recipes-kernel/linux/linux-mainline.inc index 567a1ae..002c855 100644 --- a/recipes-kernel/linux/linux-mainline.inc +++ b/recipes-kernel/linux/linux-mainline.inc @@ -28,6 +28,7 @@ SRC_URI = "https://www.kernel.org/pub/linux/kernel/v5.x/linux-${PV}.tar.xz \ file://0003-dts-allwinner-bananapi-m2-zreo-Enforce-consistent-MM.patch \ file://0004-i2c-mv64xxx-Add-atomic_xfer-method-to-driver.patch \ file://0005-i2c-mv64xxx-Remove-shutdown-method-from-driver.patch \ + file://0006-orangepi-pc-plus-Added-mmc-aliases-to-have-consisten.patch \ file://defconfig \ " diff --git a/recipes-kernel/linux/linux-mainline/0006-orangepi-pc-plus-Added-mmc-aliases-to-have-consisten.patch b/recipes-kernel/linux/linux-mainline/0006-orangepi-pc-plus-Added-mmc-aliases-to-have-consisten.patch new file mode 100644 index 0000000..4719824 --- /dev/null +++ b/recipes-kernel/linux/linux-mainline/0006-orangepi-pc-plus-Added-mmc-aliases-to-have-consisten.patch @@ -0,0 +1,30 @@ +From 60ffeb194d08817efab0467e2b2d7eff502f3276 Mon Sep 17 00:00:00 2001 +From: Marek Belisko +Date: Wed, 10 Jan 2024 08:37:32 +0100 +Subject: [PATCH] orangepi-pc-plus: Added mmc aliases to have consistent + devices + +It fix random issues with boot problem. + +Signed-off-by: Marek Belisko +--- + arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts +index babf4cf1b..8c9bd76f5 100644 +--- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts ++++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts +@@ -50,6 +50,9 @@ / { + aliases { + /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */ + ethernet1 = &rtl8189ftv; ++ mmc0 = &mmc0; ++ mmc1 = &mmc1; ++ mmc2 = &mmc2; + }; + }; + +-- +2.25.1 +