浏览代码

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>
Paul Mundt 14 年之前
父节点
当前提交
bdf7499081
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      arch/sh/drivers/pci/ops-sh7786.c

+ 3 - 0
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;
 }