qcacmn: Modify IPA object cleanup path

Currently ipa object cleanup is happening as part of pdev destroy.
Move it to deinit API of IPA

Change-Id: Id36648397102fa47ad1d29f99f2f152f40663f36
This commit is contained in:
Himanshu Batra
2021-09-30 13:06:39 +05:30
committed by Madan Koyyalamudi
parent 78fb9d70d7
commit a83d7d4111
8 changed files with 73 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. 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
@@ -81,6 +82,31 @@ cdp_ipa_set_doorbell_paddr(ol_txrx_soc_handle soc, uint8_t pdev_id)
return QDF_STATUS_SUCCESS;
}
/**
* cdp_ipa_iounmap_doorbell_vaddr() - unmap IPA RX db vaddr
* @soc - data path soc handle
* @pdev_id - device instance id
*
* Unmap IPA RX db vaddr
*
* return QDF_STATUS_SUCCESS
*/
static inline QDF_STATUS
cdp_ipa_iounmap_doorbell_vaddr(ol_txrx_soc_handle soc, uint8_t pdev_id)
{
if (!soc || !soc->ops || !soc->ops->ipa_ops) {
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
"%s invalid instance", __func__);
return QDF_STATUS_E_FAILURE;
}
if (soc->ops->ipa_ops->ipa_iounmap_doorbell_vaddr)
return soc->ops->ipa_ops->ipa_iounmap_doorbell_vaddr(
soc, pdev_id);
return QDF_STATUS_SUCCESS;
}
/**
* cdp_ipa_set_active() - activate/de-ctivate IPA offload path
* @soc - data path soc handle