From 6452f720fbe850dc020b790ec5ef1446c76a2c3b Mon Sep 17 00:00:00 2001 From: salty cat Date: Wed, 6 Mar 2024 19:43:23 +0000 Subject: [PATCH] Amlogic: fix power off on the Powkiddy RGB10 Max 3 Pro --- ...the-Powkiddy-RGB10-Max-3-Pro-to-the-.patch | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 projects/Amlogic/patches/linux/S922X/0047-power-reset-add-the-Powkiddy-RGB10-Max-3-Pro-to-the-.patch diff --git a/projects/Amlogic/patches/linux/S922X/0047-power-reset-add-the-Powkiddy-RGB10-Max-3-Pro-to-the-.patch b/projects/Amlogic/patches/linux/S922X/0047-power-reset-add-the-Powkiddy-RGB10-Max-3-Pro-to-the-.patch new file mode 100644 index 000000000..8c6e0a650 --- /dev/null +++ b/projects/Amlogic/patches/linux/S922X/0047-power-reset-add-the-Powkiddy-RGB10-Max-3-Pro-to-the-.patch @@ -0,0 +1,37 @@ +From db7441026e9bab24e537c74692020270ca61963e Mon Sep 17 00:00:00 2001 +From: salty cat +Date: Wed, 6 Mar 2024 19:40:45 +0000 +Subject: [PATCH] power: reset: add the Powkiddy RGB10-Max-3-Pro to the Odroid + Go Ultra poweroff driver + +--- + drivers/power/reset/odroid-go-ultra-poweroff.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/drivers/power/reset/odroid-go-ultra-poweroff.c b/drivers/power/reset/odroid-go-ultra-poweroff.c +index 9cac7aef77f0..9e48a34cee79 100644 +--- a/drivers/power/reset/odroid-go-ultra-poweroff.c ++++ b/drivers/power/reset/odroid-go-ultra-poweroff.c +@@ -142,7 +142,8 @@ static int __init odroid_go_ultra_poweroff_init(void) + int ret; + + /* Only create when running on the Odroid Go Ultra device */ +- if (!of_device_is_compatible(of_root, "hardkernel,odroid-go-ultra")) ++ if (!(of_device_is_compatible(of_root, "hardkernel,odroid-go-ultra") || ++ of_device_is_compatible(of_root, "powkiddy,rgb10-max-3-pro"))) + return -ENODEV; + + ret = platform_driver_register(&odroid_go_ultra_poweroff_driver); +@@ -163,7 +164,8 @@ static int __init odroid_go_ultra_poweroff_init(void) + static void __exit odroid_go_ultra_poweroff_exit(void) + { + /* Only delete when running on the Odroid Go Ultra device */ +- if (!of_device_is_compatible(of_root, "hardkernel,odroid-go-ultra")) ++ if (!(of_device_is_compatible(of_root, "hardkernel,odroid-go-ultra") || ++ of_device_is_compatible(of_root, "powkiddy,rgb10-max-3-pro"))) + return; + + platform_device_unregister(pdev); +-- +2.34.1 +