8674522a1129250a98b6863f60a4c2717d078445
[openwrt/staging/nbd.git] / target / linux / ipq807x / patches-6.1 / 0119-remoteproc-wcss-disable-auto-boot-for-IPQ8074.patch
1 From 406a332fd1bcc4e18d73cce390f56272fe9111d7 Mon Sep 17 00:00:00 2001
2 From: Sivaprakash Murugesan <sivaprak@codeaurora.org>
3 Date: Fri, 17 Apr 2020 16:37:10 +0530
4 Subject: [PATCH] remoteproc: wcss: disable auto boot for IPQ8074
5
6 There is no need for remoteproc to boot automatically, ath11k will trigger
7 booting when its probing.
8
9 Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
10 Signed-off-by: Robert Marko <robimarko@gmail.com>
11 ---
12 drivers/remoteproc/qcom_q6v5_wcss.c | 4 ++++
13 1 file changed, 4 insertions(+)
14
15 --- a/drivers/remoteproc/qcom_q6v5_wcss.c
16 +++ b/drivers/remoteproc/qcom_q6v5_wcss.c
17 @@ -161,6 +161,7 @@ struct wcss_data {
18 const struct rproc_ops *ops;
19 bool requires_force_stop;
20 bool need_mem_protection;
21 + bool need_auto_boot;
22 };
23
24 static int q6v5_wcss_reset(struct q6v5_wcss *wcss)
25 @@ -1150,6 +1151,7 @@ static int q6v5_wcss_probe(struct platfo
26 desc->sysmon_name,
27 desc->ssctl_id);
28
29 + rproc->auto_boot = desc->need_auto_boot;
30 ret = rproc_add(rproc);
31 if (ret)
32 goto free_rproc;
33 @@ -1188,6 +1190,7 @@ static const struct wcss_data wcss_ipq80
34 .ops = &q6v5_wcss_ipq8074_ops,
35 .requires_force_stop = true,
36 .need_mem_protection = true,
37 + .need_auto_boot = false,
38 };
39
40 static const struct wcss_data wcss_qcs404_res_init = {
41 @@ -1204,6 +1207,7 @@ static const struct wcss_data wcss_qcs40
42 .ssctl_id = 0x12,
43 .ops = &q6v5_wcss_qcs404_ops,
44 .requires_force_stop = false,
45 + .need_auto_boot = true,
46 };
47
48 static const struct of_device_id q6v5_wcss_of_match[] = {