Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Revert "BACKPORT: msm: ipa3: Changes to support deepsleep"
Browse files Browse the repository at this point in the history
This reverts commit ca0aa06.
  • Loading branch information
mvaisakh committed Mar 18, 2023
1 parent 61ee64d commit d95d85a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 51 deletions.
35 changes: 0 additions & 35 deletions drivers/platform/msm/ipa_fmwk/ipa_fmwk.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,41 +613,6 @@ bool ipa_is_ready(void)
}
EXPORT_SYMBOL(ipa_is_ready);

#ifdef CONFIG_DEEPSLEEP
int ipa_fmwk_deepsleep_entry_ipa(void)
{
if (!ipa_fmwk_ctx) {
pr_err("ipa framework hasn't been initialized yet\n");
return -EPERM;
}

mutex_lock(&ipa_fmwk_ctx->lock);
ipa_fmwk_ctx->ipa_ready = false;
mutex_unlock(&ipa_fmwk_ctx->lock);
pr_info("IPA driver is now in exit state\n");

return 0;
}
EXPORT_SYMBOL(ipa_fmwk_deepsleep_entry_ipa);

int ipa_fmwk_deepsleep_exit_ipa(void)
{
if (!ipa_fmwk_ctx) {
pr_err("ipa framework hasn't been initialized yet\n");
return -EPERM;
}

mutex_lock(&ipa_fmwk_ctx->lock);
ipa_trigger_ipa_ready_cbs();
ipa_fmwk_ctx->ipa_ready = true;
mutex_unlock(&ipa_fmwk_ctx->lock);
pr_info("IPA driver is now in ready state\n");
return 0;
}
EXPORT_SYMBOL(ipa_fmwk_deepsleep_exit_ipa);
#endif


int ipa_register_ipa_ready_cb(void(*ipa_ready_cb)(void *user_data),
void *user_data)
{
Expand Down
16 changes: 0 additions & 16 deletions include/linux/ipa.h
Original file line number Diff line number Diff line change
Expand Up @@ -1766,12 +1766,6 @@ int ipa_get_ep_mapping(enum ipa_client_type client);

bool ipa_is_ready(void);

#ifdef CONFIG_DEEPSLEEP
int ipa_fmwk_deepsleep_entry_ipa(void);

int ipa_fmwk_deepsleep_exit_ipa(void);
#endif

enum ipa_hw_type ipa_get_hw_type(void);

const struct ipa_gsi_ep_config *ipa_get_gsi_ep_info(
Expand Down Expand Up @@ -2179,16 +2173,6 @@ static inline enum ipa_hw_type ipa_get_hw_type(void)
return IPA_HW_None;
}

static inline int ipa_fmwk_deepsleep_entry_ipa(void)
{
return -EPERM;
}

static inline int ipa_fmwk_deepsleep_exit_ipa(void)
{
return -EPERM;
}

static inline int ipa_register_ipa_ready_cb(
void (*ipa_ready_cb)(void *user_data),
void *user_data)
Expand Down

0 comments on commit d95d85a

Please sign in to comment.