Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Lorenzo Bianconi and committed by
Jakub Kicinski
e4bc5dd5 d362f446

+6
+6
drivers/net/ethernet/airoha/airoha_npu.c
··· 657 657 struct resource res; 658 658 void __iomem *base; 659 659 int i, irq, err; 660 + u32 val; 660 661 661 662 base = devm_platform_ioremap_resource(pdev, 0); 662 663 if (IS_ERR(base)) ··· 750 749 regmap_write(npu->regmap, REG_CR_BOOT_CONFIG, 0xff); 751 750 regmap_write(npu->regmap, REG_CR_BOOT_TRIGGER, 0x1); 752 751 msleep(100); 752 + 753 + if (!airoha_npu_wlan_msg_get(npu, 0, WLAN_FUNC_GET_WAIT_NPU_VERSION, 754 + &val, sizeof(val), GFP_KERNEL)) 755 + dev_info(dev, "NPU fw version: %0d.%d\n", 756 + (val >> 16) & 0xffff, val & 0xffff); 753 757 754 758 platform_set_drvdata(pdev, npu); 755 759