]> git.ipfire.org Git - thirdparty/openwrt.git/blob
bc4e5e743fe53c1f463969c25374cb0b4484700b
[thirdparty/openwrt.git] /
1 From e20cd62b1f1708a4dec7ff4beb9e748a0bdb5716 Mon Sep 17 00:00:00 2001
2 From: Alexander Stein <alexander.stein@ew.tq-group.com>
3 Date: Wed, 17 Jan 2024 09:32:06 +0100
4 Subject: [PATCH] of: property: Make 'no port node found' output a debug
5 message
6
7 There are cases where an unavailable port is not an error, making this
8 error message a false-positive. Since commit d56de8c9a17d8 ("usb: typec:
9 tcpm: try to get role switch from tcpc fwnode") the role switch is tried
10 on the port dev first and tcpc fwnode afterwards. If using the latter
11 bindings getting from port dev fails every time. The kernel log is flooded
12 with the messages like:
13 OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/usb-typec@50
14 Silence this message by making it a debug message.
15
16 Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
17 Link: https://lore.kernel.org/r/20240117083206.2901534-1-alexander.stein@ew.tq-group.com
18 Signed-off-by: Rob Herring <robh@kernel.org>
19 ---
20 drivers/of/property.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- a/drivers/of/property.c
24 +++ b/drivers/of/property.c
25 @@ -664,7 +664,7 @@ struct device_node *of_graph_get_next_en
26 of_node_put(node);
27
28 if (!port) {
29 - pr_err("graph: no port node found in %pOF\n", parent);
30 + pr_debug("graph: no port node found in %pOF\n", parent);
31 return NULL;
32 }
33 } else {