From fd8afbdc9c68853dc29f6cbca88dfd074558ed04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Fri, 8 Nov 2013 05:45:12 +0000 Subject: [PATCH] cleanly finish configuration access cycle in pci_write_config_longword --- BaS_gcc/sources/pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BaS_gcc/sources/pci.c b/BaS_gcc/sources/pci.c index 962c58d..1493eed 100644 --- a/BaS_gcc/sources/pci.c +++ b/BaS_gcc/sources/pci.c @@ -167,6 +167,9 @@ int32_t pci_write_config_longword(int32_t handle, int offset, uint32_t value) * (volatile uint32_t *) PCI_IO_OFFSET = value; /* access device */ + /* finish configuration space access cycle */ + MCF_PCI_PCICAR &= ~MCF_PCI_PCICAR_E; + return PCI_SUCCESSFUL; }