MIPS: Octeon: Check all CCAs in cvmx_write_csr.
authorDavid Daney <ddaney@caviumnetworks.com>
Thu, 20 Aug 2009 19:35:53 +0000 (12:35 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Sep 2009 18:07:41 +0000 (20:07 +0200)
commit2608441164fde82b7fc0dd050ca0c46be0df23f8
tree3de2da4f8598bad184d544cc7ca88711816de165
parentfff9c815291d5f4132976ac337337ea5813663e6
MIPS: Octeon: Check all CCAs in cvmx_write_csr.

The current code only checks CCA of 0 when deciding if a dummy read is
needed.  Since the kernel can (and does) use other CCAs we need to
mask out the CCA bits from the address.  Since the address constant
now fits in 16 bits, there is an added benefit that smaller code is
generated.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/octeon/cvmx.h