From aeca10fbca836e92731594eaee85b5a4535856ab Mon Sep 17 00:00:00 2001 From: Sean Khan Date: Thu, 1 May 2025 19:14:04 -0400 Subject: [PATCH] nss-drv: [11.4] Fix empty line always appearing Fixes the weird empty line that always appears in dmesg when loading ``` [Thu May 1 15:07:40 2025] hotplug: symlinking qca-nss0.bin to /lib/firmware/qca-nss0-retail.bin [Thu May 1 15:07:40 2025] qca-nss 39000000.nss: NSS FW Version: NSS.HK.11.4.0.5-6-R [Thu May 1 15:07:40 2025] qca-nss 39000000.nss: fw of size 835960 bytes copied to addr: 40000000, nss_id: 0 [Thu May 1 15:07:40 2025] qca-nss 39000000.nss: NSS core 0 booted successfully [Thu May 1 15:07:40 2025] hotplug: symlinking qca-nss1.bin to /lib/firmware/qca-nss1-retail.bin [Thu May 1 15:07:40 2025] qca-nss 39400000.nss: fw of size 292296 bytes copied to addr: 40800000, nss_id: 1 [Thu May 1 15:07:40 2025] qca-nss 39400000.nss: NSS core 1 booted successfully ``` Signed-off-by: Sean Khan --- .../0012-nss-drv-quiet-messages.patch | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/qca-nss-drv/patches-11.4/0012-nss-drv-quiet-messages.patch b/qca-nss-drv/patches-11.4/0012-nss-drv-quiet-messages.patch index 71c0f37..46a34dc 100644 --- a/qca-nss-drv/patches-11.4/0012-nss-drv-quiet-messages.patch +++ b/qca-nss-drv/patches-11.4/0012-nss-drv-quiet-messages.patch @@ -30,9 +30,18 @@ break; case NSS_FREQ_SCALE_NA: +@@ -468,7 +468,7 @@ static int __nss_hal_clock_configure(str + return -EFAULT; + } + } +- nss_info_always("\n"); ++ nss_info("\n"); + + /* + * Set values only once for core0. Grab the proper clock. --- a/nss_hal/ipq60xx/nss_hal_pvt.c +++ b/nss_hal/ipq60xx/nss_hal_pvt.c -@@ -532,16 +532,16 @@ static int __nss_hal_clock_configure(str +@@ -532,22 +532,22 @@ static int __nss_hal_clock_configure(str } } @@ -54,9 +63,16 @@ } else { nss_info_always("Error\nNo Table/Invalid Frequency Found\n"); return -EFAULT; + } + } +- nss_info_always("\n"); ++ nss_info("\n"); + + /* + * Set values only once for core0. Grab the proper clock. --- a/nss_hal/ipq807x/nss_hal_pvt.c +++ b/nss_hal/ipq807x/nss_hal_pvt.c -@@ -571,16 +571,16 @@ static int __nss_hal_clock_configure(str +@@ -571,22 +571,22 @@ static int __nss_hal_clock_configure(str } } @@ -78,3 +94,10 @@ } else { nss_info_always("Error\nNo Table/Invalid Frequency Found\n"); return -EFAULT; + } + } +- nss_info_always("\n"); ++ nss_info("\n"); + + /* + * Set values only once for core0. Grab the proper clock.