On Fri, 17 May 2019 09:47:42 -0700, Stephen Boyd wrote: > We have a few drivers that need to get a reserved memory region, request > the region, and map the reserved memory with memremap(). Add an API to > do this all in one function call. > > Cc: Evan Green <evgreen@xxxxxxxxxxxx> > Cc: Rob Herring <robh+dt@xxxxxxxxxx> > Cc: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx> > Cc: Andy Gross <agross@xxxxxxxxxx> > Cc: Will Deacon <will.deacon@xxxxxxx> > Cc: Catalin Marinas <catalin.marinas@xxxxxxx> > Cc: Dan Williams <dan.j.williams@xxxxxxxxx> > Signed-off-by: Stephen Boyd <swboyd@xxxxxxxxxxxx> > --- > drivers/of/of_reserved_mem.c | 45 +++++++++++++++++++++++++++++++++ > include/linux/of_reserved_mem.h | 6 +++++ > 2 files changed, 51 insertions(+) > Reviewed-by: Rob Herring <robh@xxxxxxxxxx>