Re: [PATCH v5 01/27] cxl/regs: Split the BAR block request and ioremap helpers

From: Jonathan Cameron

Date: Mon Sep 21 2026 - 21:29:32 EST


On Thu, 17 Sep 2026 00:05:14 +0530
<mhonap@xxxxxxxxxx> wrote:

> From: Manish Honap <mhonap@xxxxxxxxxx>
>
> devm_cxl_iomap_block() claims a register block with
> devm_request_mem_region() and then maps it with devm_ioremap().
>
> A driver that already owns the parent BAR needs to skip the sub-block
> request while still mapping it, so the request and the map must be
> callable independently.
>
> Split them into devm_cxl_request_block() and devm_cxl_ioremap_block().
> devm_cxl_iomap_block() keeps calling both in turn, so there is no
> functional change.
>
> Assisted-by: LLM
> Signed-off-by: Manish Honap <mhonap@xxxxxxxxxx>
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxxxxxxxx>