mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
ee67afeda9
This refreshes the patches on top of kernel 5.4.127. Deleted (upstreamed): bcm27xx/patches-5.10/950-0005-Revert-mailbox-avoid-timer-start-from-callback.patch [0] bcm27xx/patches-5.10/950-0678-bcm2711_thermal-Don-t-clamp-temperature-at-zero.patch [1] Needed manual modifications: bcm27xx/patches-5.10/950-0410-drm-atomic-Pass-the-full-state-to-CRTC-atomic-begin-.patch [0]: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.127&id=bb2220e0672b7433a9a42618599cd261b2629240 [1]: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.127&id=83603802954068ccd1b8a3f2ccbbaf5e0862acb0 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
From 68e9899b2c99dbe97ecf9008e7e43f5b393f26a3 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Thu, 6 Feb 2020 12:23:15 +0000
|
|
Subject: [PATCH] of: overlay: Correct symbol path fixups
|
|
|
|
When symbols from overlays are added to the live tree their paths must
|
|
be rebased. The translated symbol is normally the result of joining
|
|
the fragment-relative path (with a leading "/") to the target path
|
|
(either copied directly from the "target-path" property or resolved
|
|
from the phandle). This translation fails when the target is the root
|
|
node (a common case for Raspberry Pi overlays) because the resulting
|
|
path starts with a double slash. For example, if target-path is "/" and
|
|
the fragment adds a node called "newnode", the label associated with
|
|
that node will be assigned the path "//newnode", which can't be found
|
|
in the tree.
|
|
|
|
Fix the failure case by explicitly replacing a target path of "/" with
|
|
an empty string.
|
|
|
|
Fixes: d1651b03c2df ("of: overlay: add overlay symbols to live device tree")
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
drivers/of/overlay.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/drivers/of/overlay.c
|
|
+++ b/drivers/of/overlay.c
|
|
@@ -243,6 +243,8 @@ static struct property *dup_and_fixup_sy
|
|
if (!target_path)
|
|
return NULL;
|
|
target_path_len = strlen(target_path);
|
|
+ if (!strcmp(target_path, "/"))
|
|
+ target_path_len = 0;
|
|
|
|
new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL);
|
|
if (!new_prop)
|