Re: [PATCH] ata: ahci_da850: use devm_platform_ioremap_resource()
From: Damien Le Moal
Date: Fri Jul 17 2026 - 23:07:24 EST
On 7/15/26 10:16, Rosen Penev wrote:
> Replace the open-coded platform_get_resource(IORESOURCE_MEM, 1) plus
> devm_ioremap() sequence with devm_platform_ioremap_resource(pdev, 1),
> which looks up resource index 1 (the power-down control register),
> reserves it and maps it in one call, returning an ERR_PTR checked with
> IS_ERR()/PTR_ERR(). Resource index 0 (the AHCI register block) is still
> mapped separately as hpriv->mmio via ahci_platform_get_resources().
>
> Built for ARM (davinci_all_defconfig + CONFIG_AHCI_DA850) with LLVM=1;
> drivers/ata/ahci_da850.o compiles cleanly.
>
> Assisted-by: opencode:hy3-free
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
Applied to for-7.3. Thanks!
--
Damien Le Moal
Western Digital Research