Skip to contentSkip to conversation

net: netcp: Fix ethss driver probe issue

PATCH In review Murali Karicheri 2 participants 2 messages Feb 18, 2019 – Feb 19, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: netcp: Fix ethss driver probe issue

Recent commit below has introduced a bug in netcp driver that causes the ethss driver probe failure and thus break the networking function on K2 SoCs such as K2HK, K2L, K2E etc. This patch fixes the issue to restore networking on the above SoCs.

Fixes 21c328dcecfc ("net: ethernet: Convert to using %pOFn instead of device_node.name")

---
Failure log: https://pastebin.ubuntu.com/p/cGCFZC4WkC/
With fix: https://pastebin.ubuntu.com/p/G9qYzXXNbw/

 drivers/net/ethernet/ti/netcp_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/ti/netcp_core.c +1 -1
index 1f612268c998..d847f672a705 100644
@@ -259,7 +259,7 @@ static int netcp_module_probe(struct netcp_device *netcp_device,
 		const char *name;
 		char node_name[32];
 
-		if (of_property_read_string(node, "label", &name) < 0) {
+		if (of_property_read_string(child, "label", &name) < 0) {
 			snprintf(node_name, sizeof(node_name), "%pOFn", child);
 			name = node_name;
 		}
Signature · 1 line
2.17.0
maintainer
#1 lore raw

From: Murali Karicheri <[email protected]>
Date: Mon, 18 Feb 2019 15:10:51 -0500

Quoted 7 lines

Recent commit below has introduced a bug in netcp driver that causes the ethss driver probe failure and thus break the networking function on K2 SoCs such as K2HK, K2L, K2E etc. This patch fixes the issue to restore networking on the above SoCs.

Fixes 21c328dcecfc ("net: ethernet: Convert to using %pOFn instead of device_node.name")

Applied and queued up for -stable, thanks.