lkml.org 
[lkml]   [2021]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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(-)

\
 
 \ /
  Last update: 2021-10-06 23:21    [W:0.200 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site