Re: [PATCH 02/10] wifi: ath12k: add reference counting for core attachment to hardware group
From: Jeff Johnson
Date: Mon Jan 13 2025 - 14:07:00 EST
On 1/8/2025 8:25 PM, Aditya Kumar Singh wrote:
> Currently, driver does not manage reference counting for attaching and
> detaching cores to/from hardware groups. This can lead to issues when
> multiple cores are involved. Or with same core, attach/detach is called
> multiple times back to back.
>
> Fix this issue by using reference counting.
>
> With that, it is now ensured that the core is properly attached or detached
> from the hardware group and even back to back calls will not alter the
> count.
>
> Additionally, add some debug logs during the attachment and detachment
> events for better debugging and tracking.
>
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
>
> Signed-off-by: Aditya Kumar Singh <quic_adisi@xxxxxxxxxxx>
Acked-by: Jeff Johnson <jeff.johnson@xxxxxxxxxxxxxxxx>