]> git.hungrycats.org Git - linux/commitdiff
remoteproc: qcom: pas: Make remoteproc name human friendly
authorBjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Tue, 22 Oct 2024 04:21:03 +0000 (04:21 +0000)
committerBjorn Andersson <andersson@kernel.org>
Sat, 16 Nov 2024 03:29:02 +0000 (19:29 -0800)
The remoteproc "name" property is supposed to present the "human
readable" name of the remoteproc, while using the device name is
readable, it's not "friendly".

Instead, use the "sysmon_name" as the identifier for the remoteproc
instance. It matches the typical names used when we speak about each
instance, while still being unique.

Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Chris Lew <quic_clew@quicinc.com>
Link: https://lore.kernel.org/r/20241022-rproc-friendly-name-v1-1-350c82b075cb@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/remoteproc/qcom_q6v5_pas.c

index 566eddf232d3801e236305331e731191fb96d8db..5034d214ac13324c9145676908f1e07ab80516df 100644 (file)
@@ -716,7 +716,7 @@ static int adsp_probe(struct platform_device *pdev)
        if (desc->minidump_id)
                ops = &adsp_minidump_ops;
 
-       rproc = devm_rproc_alloc(&pdev->dev, pdev->name, ops, fw_name, sizeof(*adsp));
+       rproc = devm_rproc_alloc(&pdev->dev, desc->sysmon_name, ops, fw_name, sizeof(*adsp));
 
        if (!rproc) {
                dev_err(&pdev->dev, "unable to allocate remoteproc\n");