qcom: llcc/edac: Support polling mode for ECC handling
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 14 Mar 2023 08:04:42 +0000 (13:34 +0530)
committerBjorn Andersson <andersson@kernel.org>
Wed, 15 Mar 2023 22:17:08 +0000 (15:17 -0700)
commit721d3e91bfc93975c5e1a76c7d588dd8df5d82da
tree42c67c927b26802884d00d939a906a1c746e4d85
parentee13b5008707948d3052c1b5aab485c6cd53658e
qcom: llcc/edac: Support polling mode for ECC handling

Not all Qcom platforms support IRQ mode for ECC handling. For those
platforms, the current EDAC driver will not be probed due to missing ECC
IRQ in devicetree.

So add support for polling mode so that the EDAC driver can be used on all
Qcom platforms supporting LLCC.

The polling delay of 5000ms is chosen based on Qcom downstream/vendor
driver.

Reported-by: Luca Weiss <luca.weiss@fairphone.com>
Tested-by: Luca Weiss <luca.weiss@fairphone.com>
Tested-by: Steev Klimaszewski <steev@kali.org> # Thinkpad X13s
Tested-by: Andrew Halaney <ahalaney@redhat.com> # sa8540p-ride
Reviewed-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230314080443.64635-14-manivannan.sadhasivam@linaro.org
drivers/edac/qcom_edac.c
drivers/soc/qcom/llcc-qcom.c