EDAC/altera: Initialize peripheral FIFOs in probe()

[backport 'commit 788586efd116 ("EDAC/altera: Initialize peripheral
                                 FIFOs in probe()")']

Backported from linux-edac-next

This patch fixes:
[    1.171156] EDAC Altera: emac0-rx-ecc: No ECC present or ECC disabled.
[    1.177684] EDAC Altera: emac0-rx-ecc:Error setting up EDAC device: -19
[    1.184316] EDAC Altera: emac0-tx-ecc: No ECC present or ECC disabled.
[    1.190841] EDAC Altera: emac0-tx-ecc:Error setting up EDAC device: -19

The FIFO memory and ECC initialization doesn't need to be
done as a separate operation early in the startup.

Improve the Arria10 and Stratix10 peripheral FIFO init
by initializing memory and enabling ECC as part of the
device driver initialization.

Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: James Morse <james.morse@arm.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: https://lkml.kernel.org/r/1553635771-32693-2-git-send-email-thor.thayer@linux.intel.com
1 file changed