Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1179062ybl; Wed, 8 Jan 2020 12:25:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwgDllcM8nRqe8LcNLev/p7+bhctlIwyBRB5nh+j5HiQkqyVrfVSiITnW7aHOMTtWMqd0pB X-Received: by 2002:aca:530e:: with SMTP id h14mr314354oib.105.1578515154142; Wed, 08 Jan 2020 12:25:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578515154; cv=none; d=google.com; s=arc-20160816; b=EixoivqUzkylFn7s3EuQGvKsVjQj7+kpellsvcZy4/ACESdW4GfE9iUkBBkGRvCoht C8QQwCF7yiGD7AGw4hXPonBtvNxQWrXPS6EywK6syxOHy5crN8T4nfR9F8sut7g/+jNw Bj9WF14Mc/kXLmDUMwJkwBDbZaADkK4YwXXdsvJDl0zSWr85yah8VVd1fJ9MXz+9ShBE hEBYaf515aeSTZgnblxlcvmWS5ZHXLr6FAHZFdO+w4us3lvdNMO3BOW6UR1+SsGyD08H /kfQdvkUYi+g78MKg5WufcZPDFvDKAALWKcmr3aM0PtGwBFpe31tZm1ml4woX4uOHxRU AR+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UIXqgaiVWae8Bhi+dC+q5rSp1vgGUZgQyrqPawYppjo=; b=iR86oZWfHf/a2u77xs/hRU+Wfi2T0zVx1mrNYBsJPikCgxa7Wj0wJogfrRgJ4gYqzQ h/94Q9wOnN+PtxVJeJMEPhzS9/wSqMGXxbuxGzx9RFfivTSK71h0D/Axh+hU7IgpVJc4 jk+mj+3p8bqSlpmuWXq6TQmbsO0VwgKbKIJga3Ww1mHtn6RLL9cZZNWK8F/chM4Q2hrM 8//mVzB9/Y+HOPKjkcHu8JWPMUp7iBw0W6PIMFLSg0a+x9Dg/i9PkZ0BuxGma+LGLM7A T5DFrF+GxN+jyDzJzaRh4Eti+HS4y+VmWyMzEGy2uJpic6+xQujqCVbbPlpuQIjrowAM rfZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V7BfQX1B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16si2379691oti.143.2020.01.08.12.25.42; Wed, 08 Jan 2020 12:25:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V7BfQX1B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726902AbgAHUYX (ORCPT + 99 others); Wed, 8 Jan 2020 15:24:23 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:37462 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbgAHUYW (ORCPT ); Wed, 8 Jan 2020 15:24:22 -0500 Received: by mail-pg1-f196.google.com with SMTP id q127so2100325pga.4 for ; Wed, 08 Jan 2020 12:24:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UIXqgaiVWae8Bhi+dC+q5rSp1vgGUZgQyrqPawYppjo=; b=V7BfQX1BvUdYAxjWvcUf0XpDhT5nkjUkA7/08jlIQRhx+EBJ7vNuiDz6uNW55ElOpD hsXEXbULovv6CtYsUmmP6cBFmWd6MywDjCJSYYeSc8ucQtBommmqdgUbP6EJ6zN+e1eP dtZfTyZo4b40dD/x8Wkw0t+Dicv6+qPrkDRiqVXQqL1rmT4sV/U77jQgOXrxyZP5vDfp 4q5GRwgZS5ACG6mznYllo0kxC96dCRgRlbhgId72HAuWs2GYQim0s3NTfCVKOHLLC0K8 LjfoRs4N9OgE7vdhs5A0MOWe13w9B3OJN7hy28OuVnrgbcmXEyDz5l5FySrOn+8tbCBQ CqLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UIXqgaiVWae8Bhi+dC+q5rSp1vgGUZgQyrqPawYppjo=; b=HrV1vw1KIxD+1+hfJNzlo57Zb4iH16BwAUuohYcorRT/DubTFLlbbehEEdFc2b49P7 7AY6YOQpMGoXYs+7+XJB7TReOUvzfwfbERmXGtfIKWm5ot/T0lEbqRIVOT2TGWI6ZCI/ 0JWKKvQjOHqFWpmII06xWgIVR/dlAd1pSZ65QAHIeQjFdRZaGPlQKzKDoN1OiuLmJrRb 2ufsTPwxJ9C26PMhUiZ+qRxMfkflB/qIGvnNOqLqlvqe/wDMYJPZ1DgDpDyycANhX+oe oGRLSeTTXCW2XKWHXr3UgCYad/Vpw/A4O9UCTd+rEXQBxv12/YUxvsD5buvrezpQbZE6 PH7g== X-Gm-Message-State: APjAAAVkgNkNCZDFXJLep+EtttfT6lydfB5da8WojzI+gNmy7EyYg105 8TG+Dc0H56FMP36CfZc30fsIxQ== X-Received: by 2002:a63:1f0c:: with SMTP id f12mr7346558pgf.247.1578515061913; Wed, 08 Jan 2020 12:24:21 -0800 (PST) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id b98sm135319pjc.16.2020.01.08.12.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 12:24:21 -0800 (PST) Date: Wed, 8 Jan 2020 13:24:18 -0700 From: Mathieu Poirier To: Bjorn Andersson Cc: Ohad Ben-Cohen , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] remoteproc: qcom: wcnss: Allow specifying firmware-name Message-ID: <20200108202418.GA28145@xps15> References: <20200108055252.639791-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200108055252.639791-1-bjorn.andersson@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On Tue, Jan 07, 2020 at 09:52:52PM -0800, Bjorn Andersson wrote: > Introduce a firmware-name property, in order to be able to support > device/platform specific firmware for the wireless connectivity > subsystem; in line with other Qualcomm remoteproc drivers. > > Signed-off-by: Bjorn Andersson > --- > .../devicetree/bindings/remoteproc/qcom,wcnss-pil.txt | 6 ++++++ > drivers/remoteproc/qcom_wcnss.c | 8 +++++++- > 2 files changed, 13 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt > index d420f84ddfb0..00844a5d2ccf 100644 > --- a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt > +++ b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt > @@ -34,6 +34,12 @@ on the Qualcomm WCNSS core. > Definition: should be "wdog", "fatal", optionally followed by "ready", > "handover", "stop-ack" > > +- firmware-name: > + Usage: optional > + Value type: > + Definition: must list the relative firmware image path for the > + WCNSS core. Perhaps mention that if omitted the firmware name will default to "wcnss.mdt". > + > - vddmx-supply: > - vddcx-supply: > - vddpx-supply: > diff --git a/drivers/remoteproc/qcom_wcnss.c b/drivers/remoteproc/qcom_wcnss.c > index dc135754bb9c..a0468b3cc76f 100644 > --- a/drivers/remoteproc/qcom_wcnss.c > +++ b/drivers/remoteproc/qcom_wcnss.c > @@ -457,6 +457,7 @@ static int wcnss_alloc_memory_region(struct qcom_wcnss *wcnss) > > static int wcnss_probe(struct platform_device *pdev) > { > + const char *fw_name = WCNSS_FIRMWARE_NAME; > const struct wcnss_data *data; > struct qcom_wcnss *wcnss; > struct resource *res; > @@ -474,8 +475,13 @@ static int wcnss_probe(struct platform_device *pdev) > return -ENXIO; > } > > + ret = of_property_read_string(pdev->dev.of_node, "firmware-name", > + &fw_name); > + if (ret < 0 && ret != -EINVAL) > + return ret; > + > rproc = rproc_alloc(&pdev->dev, pdev->name, &wcnss_ops, > - WCNSS_FIRMWARE_NAME, sizeof(*wcnss)); > + fw_name, sizeof(*wcnss)); > if (!rproc) { > dev_err(&pdev->dev, "unable to allocate remoteproc\n"); > return -ENOMEM; That is in line with what was done for q6v5_mss and q6v5_pas. With or without the above: Acked-by: Mathieu Poirier > -- > 2.24.0 >