Thread (13 messages) 13 messages, 3 authors, 2021-10-17

Re: [PATCH v2 3/4] soc: qcom: smem: Support reserved-memory description

flat view

From: Rob Herring <robh@kernel.org>
Date: 2021-10-06 21:20:47
Also in: linux-arm-msm, lkml

On Thu, Sep 30, 2021 at 11:21:10AM -0700, Bjorn Andersson wrote:
Practically all modern Qualcomm platforms has a single reserved-memory
region for SMEM. So rather than having to describe SMEM in the form of a
node with a reference to a reserved-memory node, allow the SMEM device
to be instantiated directly from the reserved-memory node.

The current means of falling back to dereferencing the "memory-region"
is kept as a fallback, if it's determined that the SMEM node is a
reserved-memory node.

The "qcom,smem" compatible is added to the reserved_mem_matches list, to
allow the reserved-memory device to be probed.

In order to retain the readability of the code, the resolution of
resources is split from the actual ioremapping.

Signed-off-by: Bjorn Andersson <redacted>
---

Changes since v1:
- None

 drivers/of/platform.c   |  1 +
Acked-by: Rob Herring <robh@kernel.org>
 drivers/soc/qcom/smem.c | 57 ++++++++++++++++++++++++++++-------------
 2 files changed, 40 insertions(+), 18 deletions(-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help