Re: [PATCH 12/17] memremap: Change region_intersects() to take @flags and @desc
From: Dan Williams
Date: Tue Jan 26 2016 - 16:08:14 EST
On Tue, Jan 26, 2016 at 12:57 PM, Borislav Petkov <bp@xxxxxxxxx> wrote:
> From: Toshi Kani <toshi.kani@xxxxxxx>
>
> Change region_intersects() to identify a target with @flags and @desc,
> instead of @name with strcmp().
>
> Change the callers of region_intersects(), memremap() and
> devm_memremap(), to set IORESOURCE_SYSTEM_RAM in @flags and
> IORES_DESC_NONE in @desc when searching System RAM.
>
> Also, export region_intersects() so that the ACPI EINJ error injection
> driver can call this function in a later patch.
>
> Signed-off-by: Toshi Kani <toshi.kani@xxxxxxx>
> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Cc: Ard Biesheuvel <ard.biesheuvel@xxxxxxxxxx>
> Cc: Dan Williams <dan.j.williams@xxxxxxxxx>
Acked-by: Dan Williams <dan.j.williams@xxxxxxxxx>