soc: qcom: llcc: Do not create EDAC platform device on SDM845
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 14 Mar 2023 08:04:43 +0000 (13:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:28 +0000 (11:53 +0200)
commitb12078b67a6d4f2231726ac5ad2c2404340301a6
tree4282ea0a1bf44db9aebd7bcde495c6d389d3233b
parentbf9712195f5e14e5514ae7686f042e5981ece16b
soc: qcom: llcc: Do not create EDAC platform device on SDM845

[ Upstream commit cca94f1dd6d0a4c7e5c8190672f5747e3c00ddde ]

The platforms based on SDM845 SoC locks the access to EDAC registers in the
bootloader. So probing the EDAC driver will result in a crash. Hence,
disable the creation of EDAC platform device on all SDM845 devices.

The issue has been observed on Lenovo Yoga C630 and DB845c.

While at it, also sort the members of `struct qcom_llcc_config` to avoid
any holes in-between.

Cc: <stable@vger.kernel.org> # 5.10
Reported-by: Steev Klimaszewski <steev@kali.org>
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-15-manivannan.sadhasivam@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/qcom/llcc-qcom.c