Backport more upstream patch to include all the fixes pushed upstream and add all the preliminary patch for multi-serdes support. While at it also move 2 patch in the 6xx numbering to the 000-1xx backport numbering to keep things tidy. All the affected patch manually and automatically refreshed. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> [ add comment, renumber patch, add more patch, fix PCS patch ] Link: https://github.com/openwrt/openwrt/pull/22479 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From e4bc5dd53bf5d46cd58f081ffccc3809e2be5373 Mon Sep 17 00:00:00 2001
|
|
From: Lorenzo Bianconi <lorenzo@kernel.org>
|
|
Date: Mon, 5 Jan 2026 09:49:16 +0100
|
|
Subject: [PATCH] net: airoha: npu: Dump fw version during probe
|
|
|
|
Dump firmware version running on the npu during module probe.
|
|
|
|
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
|
|
Link: https://patch.msgid.link/20260105-airoha-npu-dump-fw-v1-1-36d8326975f8@kernel.org
|
|
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
|
---
|
|
drivers/net/ethernet/airoha/airoha_npu.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- a/drivers/net/ethernet/airoha/airoha_npu.c
|
|
+++ b/drivers/net/ethernet/airoha/airoha_npu.c
|
|
@@ -658,6 +658,7 @@ static int airoha_npu_probe(struct platf
|
|
struct device_node *np;
|
|
void __iomem *base;
|
|
int i, irq, err;
|
|
+ u32 val;
|
|
|
|
base = devm_platform_ioremap_resource(pdev, 0);
|
|
if (IS_ERR(base))
|
|
@@ -757,6 +758,11 @@ static int airoha_npu_probe(struct platf
|
|
regmap_write(npu->regmap, REG_CR_BOOT_TRIGGER, 0x1);
|
|
msleep(100);
|
|
|
|
+ if (!airoha_npu_wlan_msg_get(npu, 0, WLAN_FUNC_GET_WAIT_NPU_VERSION,
|
|
+ &val, sizeof(val), GFP_KERNEL))
|
|
+ dev_info(dev, "NPU fw version: %0d.%d\n",
|
|
+ (val >> 16) & 0xffff, val & 0xffff);
|
|
+
|
|
platform_set_drvdata(pdev, npu);
|
|
|
|
return 0;
|