From b28bcba8662cf0e60d35ef30c8d284f320fc9b1c Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Mon, 28 Sep 2020 16:45:08 +0200 Subject: power: reset: reboot-mode: fix up node into boot device tree Instead of relying that the kernel and barebox device trees are in sync, just enforce it by having barebox fix up the device tree node it probed into the kernel device tree. We usually want that, but some reboot mode drivers might want to inhibit the fixup, e.g. because they implement a non-upstream binding or because they communicate with the BootROM, while the kernel shouldn't. For those the fixup is made optional via a struct reboot_mode_driver::no_fixup member. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- include/linux/reboot-mode.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/reboot-mode.h b/include/linux/reboot-mode.h index 92a1da7b55..bc57f1d72d 100644 --- a/include/linux/reboot-mode.h +++ b/include/linux/reboot-mode.h @@ -11,6 +11,7 @@ struct reboot_mode_driver { struct device_d *dev; int (*write)(struct reboot_mode_driver *reboot, u32 magic); int priority; + bool no_fixup; /* filled by reboot_mode_register */ int reboot_mode_prev, reboot_mode_next; -- cgit v1.2.3