kernel: add Qualcomm NSS dataplane ethernet driver
[openwrt/staging/dedeckeh.git] / package / kernel / qca-nss-dp / patches / 0011-treewide-fix-confusing-printing-of-registered-netdev.patch
1 From 7e4ae2d6285095794d73d2f2ce61404f61d4e633 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Tue, 17 May 2022 15:55:36 +0200
4 Subject: [PATCH 11/11] treewide: fix confusing printing of registered netdev
5
6 Net core implementation changed and now printing the netdev name cause
7 confusing printing if done before register_netdev. Move the old printing
8 to dbg and add an additional info log right after register_netdev to
9 give the user some info on correct nss-dp probe.
10
11 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
12 ---
13 hal/dp_ops/edma_dp/edma_v1/edma_data_plane.c | 4 ++--
14 nss_dp_main.c | 3 +++
15 2 files changed, 5 insertions(+), 2 deletions(-)
16
17 --- a/hal/dp_ops/edma_dp/edma_v1/edma_data_plane.c
18 +++ b/hal/dp_ops/edma_dp/edma_v1/edma_data_plane.c
19 @@ -822,8 +822,8 @@ static int edma_register_netdevice(struc
20 return -EINVAL;
21 }
22
23 - netdev_info(netdev, "nss_dp_edma: Registering netdev %s(qcom-id:%d) with EDMA\n",
24 - netdev->name, macid);
25 + netdev_dbg(netdev, "nss_dp_edma: Registering netdev %s(qcom-id:%d) with EDMA\n",
26 + netdev->name, macid);
27
28 /*
29 * We expect 'macid' to correspond to ports numbers on
30 --- a/nss_dp_main.c
31 +++ b/nss_dp_main.c
32 @@ -875,6 +875,9 @@ static int32_t nss_dp_probe(struct platf
33 goto phy_setup_fail;
34 }
35
36 + netdev_info(netdev, "Registered netdev %s(qcom-id:%d)\n",
37 + netdev->name, port_id);
38 +
39 dp_global_ctx.nss_dp[dp_priv->macid - 1] = dp_priv;
40 dp_global_ctx.slowproto_acl_bm = 0;
41