[PATCH ath-next v2 0/2] wifi: ath12k: refactor m3/aux_uc firmware memory handling

Vasanthakumar Thiagarajan vasanthakumar.thiagarajan at oss.qualcomm.com
Tue Nov 3 23:24:57 PST 2026



On 04-11-2026 12:00, Madhavan Ganesan wrote:
> 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(-)

Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan at oss.qualcomm.com>



More information about the ath12k mailing list