mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-01 02:31:27 +02:00
pci: mpc85xx: Add missing sync() after writing to PCI config space
On PowerPC we should use barrier after store operation to HW register. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Heiko Schocher <hs@denx.de> Tested-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
f1dc0daf7a
commit
76c72930f9
@ -41,6 +41,7 @@ static int mpc85xx_pci_dm_write_config(struct udevice *dev, pci_dev_t bdf,
|
|||||||
out_be32(priv->cfg_addr, addr);
|
out_be32(priv->cfg_addr, addr);
|
||||||
sync();
|
sync();
|
||||||
out_le32(priv->cfg_data, pci_conv_size_to_32(0, value, offset, size));
|
out_le32(priv->cfg_data, pci_conv_size_to_32(0, value, offset, size));
|
||||||
|
sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user