mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
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>
This commit is contained in:
parent
c62e3fae58
commit
bdf7499081
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue