]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
EDAC, altera: Combine Stratix10 and Arria10 probe functions
authorThor Thayer <thor.thayer@linux.intel.com>
Tue, 25 Sep 2018 13:48:58 +0000 (08:48 -0500)
committerBorislav Petkov <bp@suse.de>
Tue, 25 Sep 2018 19:17:38 +0000 (21:17 +0200)
commitd5fc9125566c9190ee9c7900859f5538a62e166a
treef783954d8a579b33c6dfcf3937e68483435f7ab9
parent3ce078ffe2b6547bd6c6aa5a9af7e9398f99f658
EDAC, altera: Combine Stratix10 and Arria10 probe functions

On Stratix10, the ECC offsets are similar to the existing
Arria10 functions and this can be leveraged to simplify
the EDAC driver as follows:

1. Fold Stratix10 specifics into Arria10 structures and
functions.

2. Implement the Stratix10 System Manager register accesses
using a custom regmap to allow use with the Arria10 System
Manager regmaps.

3. Stratix10 double bit errors are implemented as SError
instead of interrupts so use a panic notifier.

Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: dinguyen@kernel.org
Cc: robh+dt@kernel.org
Cc: mark.rutland@arm.com
Cc: mchehab@kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-edac@vger.kernel.org
Link: https://lkml.kernel.org/r/1537883342-30180-3-git-send-email-thor.thayer@linux.intel.com
drivers/edac/altera_edac.c
drivers/edac/altera_edac.h