Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3856733 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: add api for getting IPA pdev"

parents fcbbe260 f883c3db
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -2770,6 +2770,22 @@ int ipa_tz_unlock_reg(struct ipa_tz_unlock_reg_info *reg_info, u16 num_regs)
	return ret;
}

/**
 * ipa_get_pdev() - return a pointer to IPA dev struct
 *
 * Return value: a pointer to IPA dev struct
 *
 */
struct device *ipa_get_pdev(void)
{
	struct device *ret;

	IPA_API_DISPATCH_RETURN_PTR(ipa_get_pdev);

	return ret;
}
EXPORT_SYMBOL(ipa_get_pdev);

static const struct dev_pm_ops ipa_pm_ops = {
	.suspend_noirq = ipa_ap_suspend,
	.resume_noirq = ipa_ap_resume,
+2 −0
Original line number Diff line number Diff line
@@ -368,6 +368,8 @@ struct ipa_api_controller {

	int (*ipa_tz_unlock_reg)(struct ipa_tz_unlock_reg_info *reg_info,
		u16 num_regs);

	struct device *(*ipa_get_pdev)(void);
};

#ifdef CONFIG_IPA
+1 −0
Original line number Diff line number Diff line
@@ -1845,4 +1845,5 @@ int ipa_ntn_init(void);
int ipa2_get_ntn_stats(struct IpaHwStatsNTNInfoData_t *stats);
int ipa2_register_ipa_ready_cb(void (*ipa_ready_cb)(void *),
				void *user_data);
struct device *ipa2_get_pdev(void);
#endif /* _IPA_I_H_ */
+15 −0
Original line number Diff line number Diff line
@@ -5164,6 +5164,7 @@ int ipa2_bind_api_controller(enum ipa_hw_type ipa_hw_type,
	api_ctrl->ipa_setup_uc_ntn_pipes = ipa2_setup_uc_ntn_pipes;
	api_ctrl->ipa_tear_down_uc_offload_pipes =
		ipa2_tear_down_uc_offload_pipes;
	api_ctrl->ipa_get_pdev = ipa2_get_pdev;

	return 0;
}
@@ -5243,3 +5244,17 @@ void ipa_suspend_apps_pipes(bool suspend)
		}
	}
}

/**
 * ipa2_get_pdev() - return a pointer to IPA dev struct
 *
 * Return value: a pointer to IPA dev struct
 *
 */
struct device *ipa2_get_pdev(void)
{
	if (!ipa_ctx)
		return NULL;

	return ipa_ctx->pdev;
}
+1 −0
Original line number Diff line number Diff line
@@ -2016,4 +2016,5 @@ int ipa3_smmu_map_peer_buff(u64 iova, phys_addr_t phys_addr,
struct dentry *ipa_debugfs_get_root(void);
bool ipa3_is_msm_device(void);
int ipa3_tz_unlock_reg(struct ipa_tz_unlock_reg_info *reg_info, u16 num_regs);
struct device *ipa3_get_pdev(void);
#endif /* _IPA3_I_H_ */
Loading