diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2017-10-11 07:08:54 +0200 |
---|---|---|
committer | Andy Gross <andy.gross@linaro.org> | 2017-10-22 12:06:33 +0200 |
commit | eb297bc716ec2cb3147e6e99002e37058c65cba3 (patch) | |
tree | 680bcfbebfe7be6feab741dea7d3c41108330dbc /Documentation/sync_file.txt | |
parent | of/platform: Generalize /reserved-memory handling (diff) | |
download | linux-eb297bc716ec2cb3147e6e99002e37058c65cba3.tar.xz linux-eb297bc716ec2cb3147e6e99002e37058c65cba3.zip |
of: reserved_mem: Accessor for acquiring reserved_mem
In some cases drivers referencing a reserved-memory region might want to
remap the entire region, but when defining the reserved-memory by "size"
the client driver has no means to know the associated base address of
the reserved memory region.
This patch adds an accessor for such drivers to acquire a handle to
their associated reserved-memory for this purpose.
A complicating factor for the implementation is that the reserved_mem
objects are created from the flattened DeviceTree, as such we can't
use the device_node address for comparison. Fortunately the name of the
node will be used as "name" of the reserved_mem and will be used when
building the full_name, so we can compare the "name" with the basename
of the full_name to find the match.
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'Documentation/sync_file.txt')
0 files changed, 0 insertions, 0 deletions