mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 23:47:24 +00: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
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@ static int mpc85xx_pci_dm_write_config(struct udevice *dev, pci_dev_t bdf,
|
|||
out_be32(priv->cfg_addr, addr);
|
||||
sync();
|
||||
out_le32(priv->cfg_data, pci_conv_size_to_32(0, value, offset, size));
|
||||
sync();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue