projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1dc0da
)
pci: mpc85xx: Add missing sync() after writing to PCI config space
author
Pali Rohár
<pali@kernel.org>
Thu, 13 Apr 2023 20:41:44 +0000
(22:41 +0200)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/drivers/pci/pci_mpc85xx.c
b/drivers/pci/pci_mpc85xx.c
index
8a81a74
..
23f14db
100644
(file)
--- 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;
}