Commit a81f8429 authored by Stanimir Varbanov's avatar Stanimir Varbanov Committed by Srinivas Kandagatla
Browse files

PCI: designware: add memory barrier after enabling region



Add 'write memory' barrier after enable region in PCIE_ATU_CR2
register. The barrier is needed to ensure that the region enable
request has been reached it's destination at time when we
read/write to PCI configuration space.

Without this barrier PCI device enumeration during kernel boot
is not reliable, and reading configuration space for particular
PCI device on the bus returns zero aka no device.

Signed-off-by: default avatarStanimir Varbanov <stanimir.varbanov@linaro.org>
parent 6a13feb9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment