]> git.baikalelectronics.ru Git - kernel.git/commit
mips: cm: reprime error cause
authorVladimir Kondratiev <vladimir.kondratiev@linux.intel.com>
Wed, 6 Feb 2019 11:46:17 +0000 (13:46 +0200)
committerPaul Burton <paul.burton@mips.com>
Thu, 7 Feb 2019 19:55:24 +0000 (11:55 -0800)
commit1dce6bc6468605d71417f1a094c176bd59606a8a
treeb534858587ff2a6c88cec87d561c7af7e0823dad
parent1f4b869ba63fac88f49b65914c0f37bc4b484407
mips: cm: reprime error cause

Accordingly to the documentation
---cut---
The GCR_ERROR_CAUSE.ERR_TYPE field and the GCR_ERROR_MULT.ERR_TYPE
fields can be cleared by either a reset or by writing the current
value of GCR_ERROR_CAUSE.ERR_TYPE to the
GCR_ERROR_CAUSE.ERR_TYPE register.
---cut---
Do exactly this. Original value of cm_error may be safely written back;
it clears error cause and keeps other bits untouched.

Fixes: 98ce24efac80 ("MIPS: CM: Add support for reporting CM cache errors")
Signed-off-by: Vladimir Kondratiev <vladimir.kondratiev@linux.intel.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org # v4.3+
arch/mips/kernel/mips-cm.c