From b7b35d377a5e81b6f0a256ad555c104ea7ebf754 Mon Sep 17 00:00:00 2001 From: Prasad Sodagudi Date: Thu, 10 Sep 2020 11:05:27 -0700 Subject: [PATCH] drivers: edac: Disable panic for the correctable errors Add check for "qcom,disable-panic-on-ce" property to override the kconfig settings and disable panic for correctable errors. Change-Id: I34a562df23cb8e91c8bafb1f7b6e5aa09362603d Signed-off-by: Prasad Sodagudi --- drivers/edac/kryo_arm64_edac.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/edac/kryo_arm64_edac.c b/drivers/edac/kryo_arm64_edac.c index 6515c712a591..41f926de205d 100644 --- a/drivers/edac/kryo_arm64_edac.c +++ b/drivers/edac/kryo_arm64_edac.c @@ -496,6 +496,10 @@ static int kryo_cpu_erp_probe(struct platform_device *pdev) drv->edev_ctl->ctl_name = "cache"; #ifdef CONFIG_EDAC_KRYO_ARM64_PANIC_ON_CE drv->edev_ctl->panic_on_ce = ARM64_ERP_PANIC_ON_CE; + if (of_property_read_bool(pdev->dev.of_node, + "qcom,disable-panic-on-ce")) + drv->edev_ctl->panic_on_ce = 0; + #endif drv->edev_ctl->panic_on_ue = ARM64_ERP_PANIC_ON_UE; drv->nb_pm.notifier_call = kryo_pmu_cpu_pm_notify;