2
0

0119-remoteproc-wcss-disable-auto-boot-for-IPQ8074.patch 1.5 KB

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