[PATCH u-boot 1/3] pci: mpc85xx: Add missing sync() after writing to PCI config space
Pali Rohár
pali at kernel.org
Thu Apr 13 22:41:44 CEST 2023
On PowerPC we should use barrier after store operation to HW register.
Signed-off-by: Pali Rohár <pali at kernel.org>
---
drivers/pci/pci_mpc85xx.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pci/pci_mpc85xx.c b/drivers/pci/pci_mpc85xx.c
index 8a81a74067e9..23f14db83018 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;
}
--
2.20.1
More information about the U-Boot
mailing list