[openwrt/openwrt] kernel: make 'no port node found' output a debug message
LEDE Commits
lede-commits at lists.infradead.org
Sat Sep 28 09:48:38 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/17ea41eabbffc5910e9159d95e8b1d2379f91ee9
commit 17ea41eabbffc5910e9159d95e8b1d2379f91ee9
Author: Tianling Shen <cnsztl at immortalwrt.org>
AuthorDate: Fri Sep 27 15:54:04 2024 +0800
kernel: make 'no port node found' output a debug message
There are cases where an unavailable port is not an error, making
this error message a false-positive. The kernel log is flooded with
the messages like:
OF: graph: no port node found in /soc at 0/bus at 42000000/i2c at 42530000/usb-typec at 50
Silence this message by making it a debug message.
Signed-off-by: Tianling Shen <cnsztl at immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/16524
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
...ty-Make-no-port-node-found-output-a-debug.patch | 33 ++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/target/linux/generic/backport-6.6/817-v6.9-of-property-Make-no-port-node-found-output-a-debug.patch b/target/linux/generic/backport-6.6/817-v6.9-of-property-Make-no-port-node-found-output-a-debug.patch
new file mode 100644
index 0000000000..bc4e5e743f
--- /dev/null
+++ b/target/linux/generic/backport-6.6/817-v6.9-of-property-Make-no-port-node-found-output-a-debug.patch
@@ -0,0 +1,33 @@
+From e20cd62b1f1708a4dec7ff4beb9e748a0bdb5716 Mon Sep 17 00:00:00 2001
+From: Alexander Stein <alexander.stein at ew.tq-group.com>
+Date: Wed, 17 Jan 2024 09:32:06 +0100
+Subject: [PATCH] of: property: Make 'no port node found' output a debug
+ message
+
+There are cases where an unavailable port is not an error, making this
+error message a false-positive. Since commit d56de8c9a17d8 ("usb: typec:
+tcpm: try to get role switch from tcpc fwnode") the role switch is tried
+on the port dev first and tcpc fwnode afterwards. If using the latter
+bindings getting from port dev fails every time. The kernel log is flooded
+with the messages like:
+ OF: graph: no port node found in /soc at 0/bus at 42000000/i2c at 42530000/usb-typec at 50
+Silence this message by making it a debug message.
+
+Signed-off-by: Alexander Stein <alexander.stein at ew.tq-group.com>
+Link: https://lore.kernel.org/r/20240117083206.2901534-1-alexander.stein@ew.tq-group.com
+Signed-off-by: Rob Herring <robh at kernel.org>
+---
+ drivers/of/property.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/of/property.c
++++ b/drivers/of/property.c
+@@ -664,7 +664,7 @@ struct device_node *of_graph_get_next_en
+ of_node_put(node);
+
+ if (!port) {
+- pr_err("graph: no port node found in %pOF\n", parent);
++ pr_debug("graph: no port node found in %pOF\n", parent);
+ return NULL;
+ }
+ } else {
More information about the lede-commits
mailing list