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

From: Stephan Gerhold
Date: Wed Jun 14 2023 - 12:32:30 EST


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@xxxxxxxxxxx>
---
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@xxxxxxxxxxx

---
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,
--
Stephan Gerhold <stephan@xxxxxxxxxxx>