2023-05-22 21:13:08 +00:00
|
|
|
From 406a332fd1bcc4e18d73cce390f56272fe9111d7 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Sivaprakash Murugesan <sivaprak@codeaurora.org>
|
|
|
|
Date: Fri, 17 Apr 2020 16:37:10 +0530
|
|
|
|
Subject: [PATCH] remoteproc: wcss: disable auto boot for IPQ8074
|
|
|
|
|
|
|
|
There is no need for remoteproc to boot automatically, ath11k will trigger
|
|
|
|
booting when its probing.
|
|
|
|
|
|
|
|
Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
|
|
---
|
|
|
|
drivers/remoteproc/qcom_q6v5_wcss.c | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
--- a/drivers/remoteproc/qcom_q6v5_wcss.c
|
|
|
|
+++ b/drivers/remoteproc/qcom_q6v5_wcss.c
|
|
|
|
@@ -161,6 +161,7 @@ struct wcss_data {
|
|
|
|
const struct rproc_ops *ops;
|
|
|
|
bool requires_force_stop;
|
|
|
|
bool need_mem_protection;
|
|
|
|
+ bool need_auto_boot;
|
|
|
|
};
|
|
|
|
|
|
|
|
static int q6v5_wcss_reset(struct q6v5_wcss *wcss)
|
2023-05-22 21:23:14 +00:00
|
|
|
@@ -1150,6 +1151,7 @@ static int q6v5_wcss_probe(struct platfo
|
2023-05-22 21:13:08 +00:00
|
|
|
desc->sysmon_name,
|
|
|
|
desc->ssctl_id);
|
|
|
|
|
|
|
|
+ rproc->auto_boot = desc->need_auto_boot;
|
|
|
|
ret = rproc_add(rproc);
|
|
|
|
if (ret)
|
|
|
|
goto free_rproc;
|
2023-05-22 21:23:14 +00:00
|
|
|
@@ -1188,6 +1190,7 @@ static const struct wcss_data wcss_ipq80
|
2023-05-22 21:13:08 +00:00
|
|
|
.ops = &q6v5_wcss_ipq8074_ops,
|
|
|
|
.requires_force_stop = true,
|
|
|
|
.need_mem_protection = true,
|
|
|
|
+ .need_auto_boot = false,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct wcss_data wcss_qcs404_res_init = {
|
2023-05-22 21:23:14 +00:00
|
|
|
@@ -1204,6 +1207,7 @@ static const struct wcss_data wcss_qcs40
|
2023-05-22 21:13:08 +00:00
|
|
|
.ssctl_id = 0x12,
|
|
|
|
.ops = &q6v5_wcss_qcs404_ops,
|
|
|
|
.requires_force_stop = false,
|
|
|
|
+ .need_auto_boot = true,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct of_device_id q6v5_wcss_of_match[] = {
|