qcacld-3.0: add SWLM support for wcn6450

Changes required for SWLM support on wcn6450

Change-Id: I50e32d91fe45e31688cd1a11e5055a87a2fd7a4d
CRs-Fixed: 3540274
This commit is contained in:
Venkateswara Naralasetty
2023-06-21 17:29:06 +05:30
committed by Rahul Choudhary
parent 567d84cc19
commit 0246a1ba30

View File

@@ -1,6 +1,6 @@
/* /*
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for any * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above * purpose with or without fee is hereby granted, provided that the above
@@ -182,27 +182,15 @@ static void dp_swlm_tcl_flush_timer(void *arg)
struct dp_swlm_tcl_params *tcl = arg; struct dp_swlm_tcl_params *tcl = arg;
struct dp_soc *soc = tcl->soc; struct dp_soc *soc = tcl->soc;
struct dp_swlm *swlm = &soc->swlm; struct dp_swlm *swlm = &soc->swlm;
hal_ring_handle_t hal_ring_hdl = int ret;
soc->tcl_data_ring[tcl->ring_id].hal_srng;
if (hal_srng_try_access_start(soc->hal_soc, hal_ring_hdl) < 0) ret = soc->arch_ops.dp_flush_tx_ring(soc->pdev_list[0], tcl->ring_id);
goto fail; if (ret) {
DP_STATS_INC(swlm, tcl[tcl->ring_id].timer_flush_fail, 1);
if (hif_rtpm_get(HIF_RTPM_GET_ASYNC, HIF_RTPM_ID_DP)) { return;
hal_srng_access_end_reap(soc->hal_soc, hal_ring_hdl);
hal_srng_set_event(hal_ring_hdl, HAL_SRNG_FLUSH_EVENT);
hal_srng_inc_flush_cnt(hal_ring_hdl);
goto fail;
} }
DP_STATS_INC(swlm, tcl[tcl->ring_id].timer_flush_success, 1); DP_STATS_INC(swlm, tcl[tcl->ring_id].timer_flush_success, 1);
hal_srng_access_end(soc->hal_soc, hal_ring_hdl);
hif_rtpm_put(HIF_RTPM_PUT_ASYNC, HIF_RTPM_ID_DP);
return;
fail:
DP_STATS_INC(swlm, tcl[tcl->ring_id].timer_flush_fail, 1);
} }
/** /**