diff --git a/dp/wifi3.0/dp_internal.h b/dp/wifi3.0/dp_internal.h index db55c47b8d..8c8aa67e52 100644 --- a/dp/wifi3.0/dp_internal.h +++ b/dp/wifi3.0/dp_internal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -2328,12 +2328,20 @@ void dp_rx_dump_fisa_table(struct dp_soc *soc); */ void dp_rx_fst_update_cmem_params(struct dp_soc *soc, uint16_t num_entries, uint32_t cmem_ba_lo, uint32_t cmem_ba_hi); + +void +dp_rx_fst_update_pm_suspend_status(struct dp_soc *soc, bool suspended); #else static inline void dp_rx_fst_update_cmem_params(struct dp_soc *soc, uint16_t num_entries, uint32_t cmem_ba_lo, uint32_t cmem_ba_hi) { } + +static inline void +dp_rx_fst_update_pm_suspend_status(struct dp_soc *soc, bool suspended) +{ +} #endif /* WLAN_SUPPORT_RX_FISA */ #ifdef MAX_ALLOC_PAGE_SIZE diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index e9b8333e8e..048a7eee1f 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -11365,6 +11365,8 @@ static QDF_STATUS dp_runtime_suspend(struct cdp_soc_t *soc_hdl, uint8_t pdev_id) if (soc->intr_mode == DP_INTR_POLL) qdf_timer_stop(&soc->int_timer); + dp_rx_fst_update_pm_suspend_status(soc, true); + return QDF_STATUS_SUCCESS; } @@ -11412,6 +11414,7 @@ static QDF_STATUS dp_runtime_resume(struct cdp_soc_t *soc_hdl, uint8_t pdev_id) } dp_flush_ring_hptp(soc, soc->reo_cmd_ring.hal_srng); + dp_rx_fst_update_pm_suspend_status(soc, false); return QDF_STATUS_SUCCESS; } diff --git a/dp/wifi3.0/dp_types.h b/dp/wifi3.0/dp_types.h index 109b2cf06a..9b05899b69 100644 --- a/dp/wifi3.0/dp_types.h +++ b/dp/wifi3.0/dp_types.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -3006,6 +3006,7 @@ struct dp_rx_fst { qdf_event_t cmem_resp_event; bool flow_deletion_supported; bool fst_in_cmem; + bool pm_suspended; }; #endif /* WLAN_SUPPORT_RX_FISA */