Commit abd0ecfc authored by Liviu Dudau's avatar Liviu Dudau Committed by Srinivas Kandagatla
Browse files

pci: OF: Fix the conversion of IO ranges into IO resources.



The ranges property for a host bridge controller in DT describes
the mapping between the PCI bus address and the CPU physical address.
The resources framework however expects that the IO resources start
at a pseudo "port" address 0 (zero) and have a maximum size of IO_SPACE_LIMIT.
The conversion from pci ranges to resources failed to take that into account.

In the process move the function into drivers/of/address.c as it now
depends on pci_address_to_pio() code and make it return an error message.

Signed-off-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
Tested-by: default avatarTanmay Inamdar <tinamdar@apm.com>
parent 0b09428b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment