Re: [PATCH] dmaengine: txx9dmac: use devm_platform_ioremap_resource()
From: Vinod Koul
Date: Thu Sep 03 2026 - 13:41:59 EST
On Tue, 14 Jul 2026 16:47:42 -0700, Rosen Penev wrote:
> Replace the open-coded platform_get_resource() plus devm_request_mem_region()
> and devm_ioremap() sequence with a single devm_platform_ioremap_resource()
> call, which folds the resource lookup, region reservation and mapping into
> one step and returns an ERR_PTR on failure, checked with IS_ERR() and
> propagated via PTR_ERR().
>
> This is behaviorally equivalent: the driver already reserved the region
> with devm_request_mem_region(), so the non-overlapping reg requirement of
> devm_platform_ioremap_resource() was already satisfied. The txx9dmac
> platform device (arch/mips/txx9/generic/setup.c) provides a single
> IORESOURCE_MEM window per DMAC instance, and the child txx9dmac-chan
> devices carry only IRQ resources, so no region conflict is introduced.
>
> [...]
Applied, thanks!
[1/1] dmaengine: txx9dmac: use devm_platform_ioremap_resource()
commit: e99f446c47318f4489eb3a675d53d4047951a6d0
Best regards,
--
~Vinod