[PATCH 3/5] pci: dw_mvebu: Use dev_read_addr_x APIs

Stefan Roese stefan.roese at mailbox.org
Wed May 27 10:46:19 CEST 2026


On 5/26/26 09:01, Neil Armstrong wrote:
> On 5/26/26 10:09, Peng Fan (OSS) wrote:
>> From: Peng Fan <peng.fan at nxp.com>
>>
>> Use dev_read_addr_x APIs which support both live device tree and flat DT
>> backends, avoiding direct dependency on devfdt_* helpers.
>>
>> No functional changes.
>>
>> Signed-off-by: Peng Fan <peng.fan at nxp.com>
>> ---
>>   drivers/pci/pcie_dw_mvebu.c | 5 ++---
>>   1 file changed, 2 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c
>> index 43b919175c9..5a177478afc 100644
>> --- a/drivers/pci/pcie_dw_mvebu.c
>> +++ b/drivers/pci/pcie_dw_mvebu.c
>> @@ -565,13 +565,12 @@ static int pcie_dw_mvebu_of_to_plat(struct 
>> udevice *dev)
>>       struct pcie_dw_mvebu *pcie = dev_get_priv(dev);
>>       /* Get the controller base address */
>> -    pcie->ctrl_base = devfdt_get_addr_index_ptr(dev, 0);
>> +    pcie->ctrl_base = dev_read_addr_index_ptr(dev, 0);
>>       if (!pcie->ctrl_base)
>>           return -EINVAL;
>>       /* Get the config space base address and size */
>> -    pcie->cfg_base = devfdt_get_addr_size_index_ptr(dev, 1,
>> -                            &pcie->cfg_size);
>> +    pcie->cfg_base = dev_read_addr_size_index_ptr(dev, 1, &pcie- 
>> >cfg_size);
>>       if (!pcie->cfg_base)
>>           return -EINVAL;
>>
> 
> Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>

Reviewed-by: Stefan Roese <stefan.roese at mailbox.org>

Thanks,
Stefan



More information about the U-Boot mailing list