Patch "EDAC, altera: Fix peripheral warnings for Cyclone5" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
EDAC, altera: Fix peripheral warnings for Cyclone5
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
edac-altera-fix-peripheral-warnings-for-cyclone5.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
From foo@baz Sun Mar 18 16:55:33 CET 2018
From: Thor Thayer <[email protected]>
Date: Wed, 5 Apr 2017 13:01:02 -0500
Subject: EDAC, altera: Fix peripheral warnings for Cyclone5
From: Thor Thayer <[email protected]>
[ Upstream commit 25b223ddfe2a557307c05fe673e09d94ae950877 ]
The peripherals' RAS functionality only exist on the Arria10 SoCFPGA. The Cyclone5 initialization generates EDAC warnings when the peripherals aren't found in the device tree. Fix by checking for Arria10 in the init functions.
--- drivers/edac/altera_edac.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-)
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/edac-altera-fix-peripheral-warnings-for-cyclone5.patch --
To unsubscribe from this list: send the line "unsubscribe linux-edac" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
drivers/edac/altera_edac.c +18 -4
@@ -1020,13 +1020,23 @@ out:return ret; } +static int socfpga_is_a10 (void ) +{ +return of_machine_is_compatible ("altr,socfpga-arria10" ); +} +static int validate_parent_available (struct device_node *np);static const struct of_device_id altr_edac_a10_device_of_match[];static int __init __maybe_unused altr_init_a10_ecc_device_type (char *compat) {int irq; -struct device_node *child, *np =of_find_compatible_node (NULL ,NULL , -"altr,socfpga-a10-ecc-manager" ); +struct device_node *child, *np; + +if (!socfpga_is_a10 ()) +return -ENODEV ; + + np =of_find_compatible_node (NULL ,NULL , +"altr,socfpga-a10-ecc-manager" );if (!np) {edac_printk (KERN_ERR ,EDAC_DEVICE ,"ECC Manager not found\n" );return -ENODEV ;
@@ -1542,8 +1552,12 @@ static const struct edac_device_prv_datastatic int __init socfpga_init_sdmmc_ecc (void ) {int rc = -ENODEV ; -struct device_node *child =of_find_compatible_node (NULL ,NULL , -"altr,socfpga-sdmmc-ecc" ); +struct device_node *child; + +if (!socfpga_is_a10 ()) +return -ENODEV ; + + child =of_find_compatible_node (NULL ,NULL ,"altr,socfpga-sdmmc-ecc" );if (!child) {edac_printk (KERN_WARNING ,EDAC_DEVICE ,"SDMMC node not found\n" );return -ENODEV ;