Commit 5d4d9788 authored by Stanimir Varbanov's avatar Stanimir Varbanov Committed by Kleber Sacilotto de Souza
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 dd45b77d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment