]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
soc: qcom: smd-rpm: add qcom,smd-rpm compatible
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 29 Jul 2024 19:52:16 +0000 (22:52 +0300)
committerBjorn Andersson <andersson@kernel.org>
Thu, 15 Aug 2024 03:14:42 +0000 (22:14 -0500)
Add the generic qcom,smd-rpm and qcom,glink-smd-rpm compatibles so that
there is no need to add further compat strings to the list. Existing
strings are intact to keep compatibility with existing DTS.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240729-fix-smd-rpm-v2-3-0776408a94c5@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/smd-rpm.c

index 9d64283d2125493acf063b7bcb0edc3d13886112..f2b3e02abdf138d7552616254dd0e142ef31339a 100644 (file)
@@ -216,6 +216,12 @@ static void qcom_smd_rpm_remove(struct rpmsg_device *rpdev)
 }
 
 static const struct of_device_id qcom_smd_rpm_of_match[] = {
+       { .compatible = "qcom,glink-smd-rpm" },
+       { .compatible = "qcom,smd-rpm" },
+       /*
+        * Don't add any more compatibles to the list, two previous entryes
+        * should match all defined devices.
+        */
        { .compatible = "qcom,rpm-apq8084" },
        { .compatible = "qcom,rpm-ipq6018" },
        { .compatible = "qcom,rpm-ipq9574" },