|
@@ -1,7 +1,7 @@
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
/*
|
|
|
* Copyright (c) 2018-2020, 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.
|
|
|
*/
|
|
|
|
|
|
#include "ipa_i.h"
|
|
@@ -470,6 +470,20 @@ static int ipa_adpl_release(struct inode *inode, struct file *filp)
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
+void ipa3_odl_pipe_open_from_ssr(void)
|
|
|
+{
|
|
|
+ mutex_lock(&ipa3_odl_ctx->pipe_lock);
|
|
|
+ ipa3_odl_pipe_open();
|
|
|
+ mutex_unlock(&ipa3_odl_ctx->pipe_lock);
|
|
|
+}
|
|
|
+
|
|
|
+void ipa3_odl_pipe_cleanup_from_ssr(void)
|
|
|
+{
|
|
|
+ mutex_lock(&ipa3_odl_ctx->pipe_lock);
|
|
|
+ ipa3_odl_pipe_cleanup(true);
|
|
|
+ mutex_unlock(&ipa3_odl_ctx->pipe_lock);
|
|
|
+}
|
|
|
+
|
|
|
void ipa3_odl_pipe_cleanup(bool is_ssr)
|
|
|
{
|
|
|
bool ipa_odl_opened = false;
|