[POWERPC] pasemi: Add workaround for erratum 5945
authorOlof Johansson <olof@lixom.net>
Wed, 5 Sep 2007 02:08:50 +0000 (12:08 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 13 Sep 2007 15:33:21 +0000 (01:33 +1000)
commit4d442331e57b7bbc28b5a20f7d069bc12e9c503e
treee9feaf54400dc32c78add422c2f3d4c0277c404e
parent68c8404c742fdda2151b4bf6bd98419bf8118481
[POWERPC] pasemi: Add workaround for erratum 5945

Erratum 5945 causes some of the registers on the PCIe root ports to
not read correctly.  Do a small dance to avoid this: Write an unused
register, read the value and write it back.  Thankfully this is not in
a hot code path.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pasemi/pci.c