From: Paul Mundt Date: Sun, 19 Sep 2010 04:54:50 +0000 (+0900) Subject: sh: pci: Toggle configuration accesses on SH7786. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bdf7499081fc3c521d0f8fc28c6950c7c9bd7e97;p=mv-sheeva.git sh: pci: Toggle configuration accesses on SH7786. After configuration accesses have been completed deassert the configuration access enable cleanly. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/drivers/pci/ops-sh7786.c b/arch/sh/drivers/pci/ops-sh7786.c index 79a5ddae733..4728199f71a 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; }