From: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
To: Ziyang Huang <hzyitc@outlook.com>, johannes@sipsolutions.net
Cc: jjohnson@kernel.org, linux-wireless@vger.kernel.org,
ath11k@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] wifi: ath11k: move ATH11K_FIRMWARE_MODE_OFF to ath11k_firmware_mode
Date: Fri, 17 Jul 2026 09:57:05 -0700 [thread overview]
Message-ID: <4c9d3a9f-ba1e-475e-a8df-7afd13effbf3@oss.qualcomm.com> (raw)
In-Reply-To: <TYZPR01MB55561DF4543A0265B47A58CDC9C92@TYZPR01MB5556.apcprd01.prod.exchangelabs.com>
On 3/3/2025 7:31 AM, Ziyang Huang wrote:
> Put it together with other modes.
your commit text should be more descriptive:
Describe your changes ... as if you are giving orders to the codebase to
change its behaviour.
>
> Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
> ---
> drivers/net/wireless/ath/ath11k/core.h | 3 +++
> drivers/net/wireless/ath/ath11k/qmi.h | 1 -
> 2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireless/ath/ath11k/core.h b/drivers/net/wireless/ath/ath11k/core.h
> index a9dc7fe7765a..bfa2e8b21b5f 100644
> --- a/drivers/net/wireless/ath/ath11k/core.h
> +++ b/drivers/net/wireless/ath/ath11k/core.h
> @@ -158,6 +158,9 @@ enum ath11k_firmware_mode {
> /* factory tests etc */
> ATH11K_FIRMWARE_MODE_FTM,
>
> + /* power off */
> + ATH11K_FIRMWARE_MODE_OFF = 4,
> +
> /* Cold boot calibration */
> ATH11K_FIRMWARE_MODE_COLD_BOOT = 7,
> };
> diff --git a/drivers/net/wireless/ath/ath11k/qmi.h b/drivers/net/wireless/ath/ath11k/qmi.h
> index 7e06d100af57..5e8fd22bb9a0 100644
> --- a/drivers/net/wireless/ath/ath11k/qmi.h
> +++ b/drivers/net/wireless/ath/ath11k/qmi.h
> @@ -36,7 +36,6 @@
> #define QMI_WLFW_FW_INIT_DONE_IND_V01 0x0038
>
> #define QMI_WLANFW_MAX_DATA_SIZE_V01 6144
> -#define ATH11K_FIRMWARE_MODE_OFF 4
> #define ATH11K_COLD_BOOT_FW_RESET_DELAY (60 * HZ)
>
> #define ATH11K_QMI_DEVICE_BAR_SIZE 0x200000
I like what this is doing, however IMO there is room for improvement.
the firmware mode is part of the QMI ABI and hence the enum should actually be
located in qmi.h. And that means any .c files which need the relocated enum
would need to include qmi.h
And if you post a v2, use ath-next as the branch tag, [PATCH ath-next v2]
/jeff
prev parent reply other threads:[~2026-07-17 16:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-03 15:31 Ziyang Huang
2026-07-17 16:57 ` Jeff Johnson [this message]
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=4c9d3a9f-ba1e-475e-a8df-7afd13effbf3@oss.qualcomm.com \
--to=jeff.johnson@oss.qualcomm.com \
--cc=ath11k@lists.infradead.org \
--cc=hzyitc@outlook.com \
--cc=jjohnson@kernel.org \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.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
Powered by JetHome