Re: [PATCH] ata: ahci_da850: use devm_platform_ioremap_resource()
Damien Le Moal <[email protected]> Sat, 18 Jul 2026 12:06:51 +0900
| Newsgroups | org.kernel.vger.linux-ide,dev.linux.lists.llvm,org.kernel.vger.linux-kernel |
|---|---|
| Organization | Western Digital Research |
| Message-ID | <[email protected]> |
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 <[email protected]> Applied to for-7.3. Thanks! -- Damien Le Moal Western Digital Research