]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pci: mpc85xx: Add missing sync() after writing to PCI config space
authorPali Rohár <pali@kernel.org>
Thu, 13 Apr 2023 20:41:44 +0000 (22:41 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 1 May 2023 22:59:33 +0000 (18:59 -0400)
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>
drivers/pci/pci_mpc85xx.c

index 8a81a74067e940817ccc4232e06bbdf9be846268..23f14db830183e8ecfddc8e3d533d59304152388 100644 (file)
@@ -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;
 }