From: Madhavan Ganesan <madhavan.ganesan@oss.qualcomm.com>
To: Jeff Johnson <jjohnson@kernel.org>
Cc: linux-wireless@vger.kernel.org, ath12k@lists.infradead.org,
linux-kernel@vger.kernel.org,
Madhavan Ganesan <madhavan.ganesan@oss.qualcomm.com>
Subject: [PATCH ath-next v2 0/2] wifi: ath12k: refactor m3/aux_uc firmware memory handling
Date: Wed, 04 Nov 2026 12:00:06 +0530 [thread overview]
Message-ID: <20261104-m3_and_aux_ucode-v2-0-b6c335c14dfe@oss.qualcomm.com> (raw)
ath12k_qmi_m3_free()/ath12k_qmi_m3_load() and
ath12k_qmi_aux_uc_free()/ath12k_qmi_aux_uc_load() carry near-identical
logic for freeing a DMA-coherent firmware memory region and loading
firmware into it. Factor the shared logic into common helpers.
Patch 1 is a preparatory, no-functional-change rename of
struct m3_mem_region to struct ath12k_fw_mem_region, since the type
is also used for the aux_uc region and the old name no longer
reflects its purpose.
Patch 2 refactors the shared free/load logic into
ath12k_qmi_free_mem_region() and ath12k_qmi_fw_mem_load(), and
rewires the m3 and aux_uc wrappers to use them.
---
Changes in v2:
- Addressed the review comments.
---
Madhavan Ganesan (2):
wifi: ath12k: rename m3_mem_region to ath12k_fw_mem_region
wifi: ath12k: refactor m3 and aux_uc firmware memory handling
drivers/net/wireless/ath/ath12k/qmi.c | 168 ++++++++++++----------------------
drivers/net/wireless/ath/ath12k/qmi.h | 6 +-
2 files changed, 60 insertions(+), 114 deletions(-)
---
base-commit: a2da7677eb9a12e7860814b70a1f6f5b0e347d7d
change-id: 20261103-m3_and_aux_ucode-8337b881155c
next reply other threads:[~2026-11-04 6:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 6:30 Madhavan Ganesan [this message]
2026-11-04 6:30 ` [PATCH ath-next v2 1/2] wifi: ath12k: rename m3_mem_region to ath12k_fw_mem_region Madhavan Ganesan
2026-11-04 6:30 ` [PATCH ath-next v2 2/2] wifi: ath12k: refactor m3 and aux_uc firmware memory handling Madhavan Ganesan
2026-11-04 17:52 ` Jeff Johnson
2026-11-04 6:53 ` [PATCH ath-next v2 0/2] wifi: ath12k: refactor m3/aux_uc " Baochen Qiang
2026-11-04 7:10 ` Madhavan Ganesan
2026-11-04 7:15 ` Baochen Qiang
2026-11-04 7:15 ` Baochen Qiang
2026-11-04 7:24 ` Vasanthakumar Thiagarajan
2026-11-04 18:59 ` Jeff Johnson
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=20261104-m3_and_aux_ucode-v2-0-b6c335c14dfe@oss.qualcomm.com \
--to=madhavan.ganesan@oss.qualcomm.com \
--cc=ath12k@lists.infradead.org \
--cc=jjohnson@kernel.org \
--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
all inboxes | Powered by JetHome®