Messages in this thread | | | Date | Wed, 6 Oct 2021 16:20:42 -0500 | From | Rob Herring <> | Subject | Re: [PATCH v2 3/4] soc: qcom: smem: Support reserved-memory description |
| |
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 <bjorn.andersson@linaro.org> > --- > > 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(-)
| |