Commit 351f45f1 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 afd2ff9b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment