From: Wen Gong <quic_wgong@quicinc.com>
To: Kalle Valo <kvalo@kernel.org>
Cc: <ath12k@lists.infradead.org>, <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH v2] wifi: ath12k: enable 320 MHz bandwidth for 6 GHz band in EHT PHY capbility for WCN7850
Date: Mon, 28 Aug 2023 14:09:48 +0800 [thread overview]
Message-ID: <5376cd01-ab3e-416f-ea73-649c82e3bc40@quicinc.com> (raw)
In-Reply-To: <169295002356.1753110.7150166655358699685.kvalo@kernel.org>
On 8/25/2023 3:53 PM, Kalle Valo wrote:
> Wen Gong <quic_wgong@quicinc.com> wrote:
>
>> 320 MHz bandwidth is reported only for single PHY mode for WCN7850, get it
>> from WMI_HOST_HW_MODE_SINGLE ath12k_wmi_caps_ext_params and report it for
>> 6 GHz band.
>>
>> After this patch, "iw list" show 320MHz support for WCN7850:
>> EHT Iftypes: managed
>> EHT PHY Capabilities: (0xe26f090010768800):
>> 320MHz in 6GHz Supported
>> EHT bw=320 MHz, max NSS for MCS 8-9: Rx=0, Tx=0
>> EHT bw=320 MHz, max NSS for MCS 10-11: Rx=0, Tx=0
>> EHT bw=320 MHz, max NSS for MCS 12-13: Rx=0, Tx=0
>>
>> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4
>>
>> Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
>> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
> New warning:
>
> drivers/net/wireless/ath/ath12k/wmi.c:4199:69: warning: restricted __le32 degrades to integer
>
> Remember to ALWAYS run ath12k-check.
>
> Patch set to Changes Requested.
I found ath12k-check output many logs, about 5000 lines.
And ath12k-check only has one item in CHECKPATCH_IGNORE, it does not
have the other items which
existed in ath10k-check/ath11k-check, so ath12k-check output many info
"struct should normally be const"/"networking block comments don't use
an empty /* line, use /* Comment..."/.
Also it print many "note: in included file ..." by sparse.
May I change ath12k-check with diff below and use "ath12k-check | grep
-v "note: in included file"" for the patch check?
wgong@wgong-Latitude-E6430:~/opensource/kernel/ath$ ./ath12k-check --version
/home/wgong/opensource/kernel/ath/./ath12k-check:32: DeprecationWarning:
The distutils package is deprecated and slated for removal in Python
3.12. Use setuptools or check PEP 632 for potential alternatives
import distutils.spawn
ath12k-check (md5sum 194c6d6c4bad47f9780fe22541f2f68c)
gcc: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
sparse: 0.6.4 (Ubuntu: 0.6.4-2)
checkpatch.pl: Version: 0.32 (md5sum b169dcb45a7f32bd19b128e08288e9cc)
gtags: gtags (Global) 6.6.7
wgong@wgong-Latitude-E6430:~/opensource/kernel/ath$ ./ath12k-check |
grep -v "note: in included file"
/home/wgong/opensource/kernel/ath/./ath12k-check:32: DeprecationWarning:
The distutils package is deprecated and slated for removal in Python
3.12. Use setuptools or check PEP 632 for potential alternatives
import distutils.spawn
drivers/net/wireless/ath/ath12k/wmi.c: In function
'ath12k_wmi_tlv_mac_phy_caps_ext_parse':
drivers/net/wireless/ath/ath12k/wmi.c:4197:69: warning: restricted
__le32 degrades to integer
drivers/net/wireless/ath/ath12k/dp_rx.c:2110: space required after that
close brace '}'
diff --git a/tools/scripts/ath12k/ath12k-check
b/tools/scripts/ath12k/ath12k-check
index 7112fd9..3035b34 100755
--- a/tools/scripts/ath12k/ath12k-check
+++ b/tools/scripts/ath12k/ath12k-check
@@ -41,10 +41,48 @@ FILTER_REGEXP = r'/ath'
IGNORE_FILES = []
-CHECKPATCH_IGNORE = [
- # some find extra parentheses helpful so ignore the warnings
- 'UNNECESSARY_PARENTHESES',
-]
+CHECKPATCH_IGNORE = ['MSLEEP',
+ 'USLEEP_RANGE',
+ 'PRINTK_WITHOUT_KERN_LEVEL',
+
+ # ath10k does not follow networking comment style
+ 'NETWORKING_BLOCK_COMMENT_STYLE',
+
+ 'LINUX_VERSION_CODE',
+ 'COMPLEX_MACRO',
+ 'PREFER_DEV_LEVEL',
+ 'PREFER_PR_LEVEL',
+ 'COMPARISON_TO_NULL',
+ 'BIT_MACRO',
+ 'CONSTANT_COMPARISON',
+ 'MACRO_WITH_FLOW_CONTROL',
+
+ # Spams hundreds of lines useless 'struct should
+ # normally be const' warnings, maybe a bug in
+ # checkpatch?
+ 'CONST_STRUCT',
+
+ # TODO: look like valid warnings, investigate
+ 'MACRO_ARG_REUSE',
+ 'OPEN_ENDED_LINE',
+ 'FUNCTION_ARGUMENTS',
+ 'CONFIG_DESCRIPTION',
+ 'ASSIGNMENT_CONTINUATIONS',
+ 'UNNECESSARY_PARENTHESES',
+
+ # Not sure if these really useful warnings,
+ # disable for now.
+ 'MACRO_ARG_PRECEDENCE',
+
+ 'BOOL_MEMBER',
+
+ # TODO: ath11k uses volatile for now, fix it
+ 'VOLATILE',
+
+ # TODO: document all DT usage in ath11k
+ 'UNDOCUMENTED_DT_STRING',
+ ]
+
CHECKPATCH_OPTS = ['--strict', '-q', '--terse', '--no-summary',
'--max-line-length=90', '--show-types']
>
--
ath12k mailing list
ath12k@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/ath12k
next prev parent reply other threads:[~2023-08-28 6:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 2:54 [PATCH v2] wifi: ath12k: enable 320 MHz bandwidth for 6 GHz band in EHT PHY capbility for WCN7850 Wen Gong
2023-08-24 4:22 ` Jeff Johnson
2023-08-25 7:53 ` Kalle Valo
2023-08-28 6:09 ` Wen Gong [this message]
2023-09-06 14:04 ` ath12k-check warnings Kalle Valo
2023-09-26 2:32 ` Wen Gong
2023-09-26 4:42 ` Kalle Valo
2023-09-27 7:09 ` Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5376cd01-ab3e-416f-ea73-649c82e3bc40@quicinc.com \
--to=quic_wgong@quicinc.com \
--cc=ath12k@lists.infradead.org \
--cc=kvalo@kernel.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox