[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9f8cf902-85a3-43db-bce9-4fc9b876c473@kernel.org>
Date: Wed, 12 Feb 2025 06:45:17 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Frank Oltmanns <frank@...manns.dev>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
Chris Lew <quic_clew@...cinc.com>
Cc: linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org,
Stephan Gerhold <stephan.gerhold@...aro.org>,
Johan Hovold <johan+linaro@...nel.org>,
Caleb Connolly <caleb.connolly@...aro.org>,
Joel Selvaraj <joelselvaraj.oss@...il.com>,
Alexey Minnekhanov <alexeymin@...tmarketos.org>, stable@...r.kernel.org
Subject: Re: [PATCH] soc: qcom: pd-mapper: defer probing on sdm845
On 05/02/2025 22:57, Frank Oltmanns wrote:
> +static const struct of_device_id qcom_pdm_defer[] __maybe_unused = {
> + { .compatible = "qcom,sdm845", .data = &first_dev_remoteproc3, },
> + {},
> +};
> static void qcom_pdm_stop(struct qcom_pdm_data *data)
> {
> qcom_pdm_free_domains(data);
> @@ -637,6 +651,25 @@ static struct qcom_pdm_data *qcom_pdm_start(void)
> return ERR_PTR(ret);
> }
>
> +static bool qcom_pdm_ready(struct auxiliary_device *auxdev)
> +{
> + const struct of_device_id *match;
> + struct device_node *root;
> + struct qcom_pdm_probe_first_dev_quirk *first_dev;
> +
> + root = of_find_node_by_path("/");
> + if (!root)
> + return true;
> +
> + match = of_match_node(qcom_pdm_defer, root);
Aren't you open-coding machine is compatible?
Best regards,
Krzysztof
Powered by blists - more mailing lists