summaryrefslogtreecommitdiffstats
path: root/arch/sh/drivers
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-09-19 06:54:50 +0200
committerPaul Mundt <lethal@linux-sh.org>2010-09-19 06:54:50 +0200
commitbdf7499081fc3c521d0f8fc28c6950c7c9bd7e97 (patch)
tree887cfefa9eddfc7b6517c87a96d5c5ceff9a97a8 /arch/sh/drivers
parentsh: pci: Use generic pci_enable_resources() for pcibios_enable_device(). (diff)
downloadlinux-bdf7499081fc3c521d0f8fc28c6950c7c9bd7e97.tar.xz
linux-bdf7499081fc3c521d0f8fc28c6950c7c9bd7e97.zip
sh: pci: Toggle configuration accesses on SH7786.
After configuration accesses have been completed deassert the configuration access enable cleanly. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers')
-rw-r--r--arch/sh/drivers/pci/ops-sh7786.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sh/drivers/pci/ops-sh7786.c b/arch/sh/drivers/pci/ops-sh7786.c
index 79a5ddae733d..4728199f71a6 100644
--- a/arch/sh/drivers/pci/ops-sh7786.c
+++ b/arch/sh/drivers/pci/ops-sh7786.c
@@ -58,6 +58,9 @@ static int sh7786_pcie_config_access(unsigned char access_type,
else
pci_write_reg(chan, *data, SH4A_PCIEPDR);
+ /* Disable the configuration access */
+ pci_write_reg(chan, 0, SH4A_PCIEPCTLR);
+
return PCIBIOS_SUCCESSFUL;
}