From: Pali Rohár Date: Thu, 13 Apr 2023 20:41:44 +0000 (+0200) Subject: pci: mpc85xx: Add missing sync() after writing to PCI config space X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=76c72930f917ab348ff08d28a96b827d1626cb3a;p=u-boot.git 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 Reviewed-by: Heiko Schocher Tested-by: Heiko Schocher --- diff --git a/drivers/pci/pci_mpc85xx.c b/drivers/pci/pci_mpc85xx.c index 8a81a74067..23f14db830 100644 --- a/drivers/pci/pci_mpc85xx.c +++ b/drivers/pci/pci_mpc85xx.c @@ -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; }