mbox series

[v2,0/2] remoteproc: qcom: Use of_reserved_mem_lookup()

Message ID 20230529-rproc-of-rmem-v2-0-95e39b959585@gerhold.net
Headers show
Series remoteproc: qcom: Use of_reserved_mem_lookup() | expand

Message

Stephan Gerhold June 14, 2023, 4:31 p.m. UTC
Use of_reserved_mem_lookup() instead of of_address_to_resource() inside
the Qualcomm remoteproc drivers. This has the advantage that it ensures
that the referenced memory region was really reserved and is not e.g.
status = "disabled".

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
Changes in v2:
- Add missing check for rmem (Bjorn)
- Add checks for rmem->size to ensure dynamic reserved memory was 
  really allocated
- Link to v1: https://lore.kernel.org/r/20230529-rproc-of-rmem-v1-1-5b1e38880aba@gerhold.net

---
Stephan Gerhold (2):
      remoteproc: qcom: Handle reserved-memory allocation issues
      remoteproc: qcom: Use of_reserved_mem_lookup()

 drivers/remoteproc/qcom_q6v5_adsp.c | 24 ++++++++---------
 drivers/remoteproc/qcom_q6v5_mss.c  | 35 +++++++++++++++----------
 drivers/remoteproc/qcom_q6v5_pas.c  | 51 ++++++++++++++++++++-----------------
 drivers/remoteproc/qcom_q6v5_wcss.c |  2 +-
 drivers/remoteproc/qcom_wcnss.c     | 24 ++++++++---------
 5 files changed, 71 insertions(+), 65 deletions(-)
---
base-commit: 1ca04f21b204e99dd704146231adfb79ea2fb366
change-id: 20230529-rproc-of-rmem-7d931f61f64e

Best regards,