* [PATCH ath-next v7] wifi: ath12k: delete mon reap timer
@ 2025-04-16 2:20 Kang Yang
2025-04-17 4:54 ` Vasanthakumar Thiagarajan
2025-05-16 19:40 ` Jeff Johnson
0 siblings, 2 replies; 3+ messages in thread
From: Kang Yang @ 2025-04-16 2:20 UTC (permalink / raw)
To: ath12k, kang.yang; +Cc: linux-wireless
Currently mon reap timer is not used, and it is not needed anymore for
WCN7850.
So remove related code.
This change does not affect QCN9274, as the mon reap timer is not used
for QCN9274.
Signed-off-by: Kang Yang <kang.yang@oss.qualcomm.com>
---
v7:
1. remove patch#1 and #2.
2. mention QCN9274 in commit message.
3. rebase on tag: ath-202504141512.
4. change quic email to oss email.
v6: update copyright for each patch.
v5: rebase on tag: ath/main(ath-202412191756).
v4: rebase on tag: ath/main(ath-202410161539).
v3: rebase on tag: ath/main(ath-202410111606).
v2: rebase on tag: ath-202410072115.
---
drivers/net/wireless/ath/ath12k/core.h | 2 --
drivers/net/wireless/ath/ath12k/dp.c | 28 --------------------------
2 files changed, 30 deletions(-)
diff --git a/drivers/net/wireless/ath/ath12k/core.h b/drivers/net/wireless/ath/ath12k/core.h
index 44e02ebb1071..2d7d8610a058 100644
--- a/drivers/net/wireless/ath/ath12k/core.h
+++ b/drivers/net/wireless/ath/ath12k/core.h
@@ -1056,8 +1056,6 @@ struct ath12k_base {
struct ath12k_dbring_cap *db_caps;
u32 num_db_cap;
- struct timer_list mon_reap_timer;
-
struct completion htc_suspend;
u64 fw_soc_drop_count;
diff --git a/drivers/net/wireless/ath/ath12k/dp.c b/drivers/net/wireless/ath/ath12k/dp.c
index b8e63f489e7d..7d820349e7b6 100644
--- a/drivers/net/wireless/ath/ath12k/dp.c
+++ b/drivers/net/wireless/ath/ath12k/dp.c
@@ -982,11 +982,6 @@ void ath12k_dp_pdev_free(struct ath12k_base *ab)
{
int i;
- if (!ab->mon_reap_timer.function)
- return;
-
- timer_delete_sync(&ab->mon_reap_timer);
-
for (i = 0; i < ab->num_radios; i++)
ath12k_dp_rx_pdev_free(ab, i);
}
@@ -1024,27 +1019,6 @@ void ath12k_dp_hal_rx_desc_init(struct ath12k_base *ab)
ab->hal_rx_ops->rx_desc_get_desc_size();
}
-static void ath12k_dp_service_mon_ring(struct timer_list *t)
-{
- struct ath12k_base *ab = from_timer(ab, t, mon_reap_timer);
- int i;
-
- for (i = 0; i < ab->hw_params->num_rxdma_per_pdev; i++)
- ath12k_dp_mon_process_ring(ab, i, NULL, DP_MON_SERVICE_BUDGET,
- ATH12K_DP_RX_MONITOR_MODE);
-
- mod_timer(&ab->mon_reap_timer, jiffies +
- msecs_to_jiffies(ATH12K_MON_TIMER_INTERVAL));
-}
-
-static void ath12k_dp_mon_reap_timer_init(struct ath12k_base *ab)
-{
- if (ab->hw_params->rxdma1_enable)
- return;
-
- timer_setup(&ab->mon_reap_timer, ath12k_dp_service_mon_ring, 0);
-}
-
int ath12k_dp_pdev_alloc(struct ath12k_base *ab)
{
struct ath12k *ar;
@@ -1055,8 +1029,6 @@ int ath12k_dp_pdev_alloc(struct ath12k_base *ab)
if (ret)
goto out;
- ath12k_dp_mon_reap_timer_init(ab);
-
/* TODO: Per-pdev rx ring unlike tx ring which is mapped to different AC's */
for (i = 0; i < ab->num_radios; i++) {
ar = ab->pdevs[i].ar;
base-commit: b80c52642c1159c2596776b39b06eb1c2e36baff
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH ath-next v7] wifi: ath12k: delete mon reap timer
2025-04-16 2:20 [PATCH ath-next v7] wifi: ath12k: delete mon reap timer Kang Yang
@ 2025-04-17 4:54 ` Vasanthakumar Thiagarajan
2025-05-16 19:40 ` Jeff Johnson
1 sibling, 0 replies; 3+ messages in thread
From: Vasanthakumar Thiagarajan @ 2025-04-17 4:54 UTC (permalink / raw)
To: Kang Yang, ath12k; +Cc: linux-wireless
On 4/16/2025 7:50 AM, Kang Yang wrote:
> Currently mon reap timer is not used, and it is not needed anymore for
> WCN7850.
>
> So remove related code.
>
> This change does not affect QCN9274, as the mon reap timer is not used
> for QCN9274.
>
> Signed-off-by: Kang Yang <kang.yang@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH ath-next v7] wifi: ath12k: delete mon reap timer
2025-04-16 2:20 [PATCH ath-next v7] wifi: ath12k: delete mon reap timer Kang Yang
2025-04-17 4:54 ` Vasanthakumar Thiagarajan
@ 2025-05-16 19:40 ` Jeff Johnson
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Johnson @ 2025-05-16 19:40 UTC (permalink / raw)
To: ath12k, Kang Yang; +Cc: linux-wireless
On Wed, 16 Apr 2025 10:20:11 +0800, Kang Yang wrote:
> Currently mon reap timer is not used, and it is not needed anymore for
> WCN7850.
>
> So remove related code.
>
> This change does not affect QCN9274, as the mon reap timer is not used
> for QCN9274.
>
> [...]
Applied, thanks!
[1/1] wifi: ath12k: delete mon reap timer
commit: d1b4ccc24ea66552dd718d2fb2f305ea9ecf8363
Best regards,
--
Jeff Johnson <jeff.johnson@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-16 19:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-16 2:20 [PATCH ath-next v7] wifi: ath12k: delete mon reap timer Kang Yang
2025-04-17 4:54 ` Vasanthakumar Thiagarajan
2025-05-16 19:40 ` Jeff Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox