Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2967554lqo; Tue, 21 May 2024 02:47:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWde/1t6Y55f1LWwLPho6iHIWYhY+ABxmczh7ZazQsRS5woNx39755dxpV0mJMMFksIRInhBycdmAZNpCg/8t088MVccCL2tr4ZJV9Nwg== X-Google-Smtp-Source: AGHT+IGLOvdh2oqWQN78G2CkH2fAdBB95j9yL6EZk+T/VoYK+uAEbiBHuE66k154oNZouOdPVm6J X-Received: by 2002:a05:690c:6807:b0:61a:fc3b:fdd1 with SMTP id 00721157ae682-622aff93d20mr349112157b3.29.1716284847327; Tue, 21 May 2024 02:47:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716284847; cv=pass; d=google.com; s=arc-20160816; b=04GLTnk2OV/p+2B+afILIlcXgcLX0m25KmeipQqW4fss3oHv4siEM2HXy/UAYOcijG JJxtlm4Uzqj0BaM6Xeq5Id4UBQJfKTFcThtAe+N+0PseZjIfiWo4M+QQ5ExEfKLpAGmK iSAt4ooDZh8i1U2AbmXftDATBK9QWPnVyp7e5khG4kiq9MdXQme9gtSoWB3oT1GAF9ze uSrtVFVwhKlqiJyJchw7NqLmuRi/D3bB2EhxS7pwFjhvWVqq2fL29JYuK5Hcg9kxkIon f901mmxd8+J9fuoYAg4+12eHfE1oEwOr2ILpNrJOKHJRZsmXEaNs3lt02O2R1fJrIZvS p8MA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=kkVl5ZJEjyZ0695fbPf3rcpNNgNSAt43cde13TvFE68=; fh=lrG3458F9Q0Eu5h+SbQZ86Yql4fsuSmsywyv6Bdz34E=; b=lrO0Lk+yuD9rLEUbcZnlKvkFIt0FpO95x/O6OyMVxMwWG5DHIleKaBi2keXfLNGorA WXs2gJpJyhOvZ1IhORQpLlaUtWEERZT4ZdbgB6pMEB9G6VxrSjf858BrDEfF99hqXUT7 j8/OggGnzvIZ/ol/t00IAbiRMedkJj960AgFpXzY02/VbaMiYt5do4dSCEfVK6CJ06Lp o0R5wznKk0RFKdI9T6hwRBflxwUr3k6AQt7K8H3Y9ypPLeG35IQddIcyt8gX/4kzlO2z e6zqmW2IcEwDv5C6xHACKpTQtw8U5RrfLunLt1WXa2/eTaunx9HqLlQ5kf28fYkhWmgK UJ1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q7ec7037; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-7888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6aafa8ddc41si37357996d6.62.2024.05.21.02.47.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 02:47:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q7ec7037; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-7888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 13D1C1C21501 for ; Tue, 21 May 2024 09:47:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F33777101; Tue, 21 May 2024 09:45:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="q7ec7037" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A29F874E26 for ; Tue, 21 May 2024 09:45:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716284736; cv=none; b=SfJpXC+u85dSb9IuN0JymOT4qpEJTiXk5sMIWFApSzPvppwKLotdyezxdAL3X8Pf0fl7oTht17a/ItJz+XpCUdb/G6J2ZecUBlQPisbhcEYcWMkeqsfYTXur1Pa0LdO/3YemQ09KW7GE0Ki9MVgvqBicuZuziDck3a1lTvl9VgM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716284736; c=relaxed/simple; bh=DTUqzTL8iOBwkoam3qEvEmtJacPSZ5s4Txv1FotXGIM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ropl1RetAhS+LQicdfmYzNvlTWcchRGTSD4+Obnlfnkba2TnqVhamC/Br+dFhNdmmfSTU0boVMAhzmWlUkX8lENi37rkPcj4la77BopyfSbJNJUdMr6xLZ8XtxGYTIVAbvaiVrCNiVod06baozSt50d1xfFvUasXlVxKnOlqNB4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=q7ec7037; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-52388d9ca98so7059136e87.0 for ; Tue, 21 May 2024 02:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716284732; x=1716889532; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=kkVl5ZJEjyZ0695fbPf3rcpNNgNSAt43cde13TvFE68=; b=q7ec7037ALryu7KAdVQjf8KYQzA8dyYT+DvsuxA0Tk/E3aiJR7Aqw6Qgoit2fs0rV0 peOjy0ztep9zXzpnZlXv4rM+uYsuBMZMz0earE4ALvjoAtZK8BRusy1ljBmqVR0b9QFS oYRXGUB9gQbDwAT/nchTtFJqQpDpMm8RNf0j724wwA/7Tfsr7om3rug5U0lwnWYW9s4h sM1BFAWYpQ3eucnbZFdXezFX1EqodVDGyJYelp176BgaIePIP6qaKBWqH0F33/ucUYrE GpQlaL6VnOeodLGWYfeKNX3Xerrh/826pEtjygvqhswQSMWZV9zTzjlbMW1dDSdPyYN0 s28A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716284732; x=1716889532; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kkVl5ZJEjyZ0695fbPf3rcpNNgNSAt43cde13TvFE68=; b=LzXcvQ3d70ofKlPuoTmufHpI/gt/Zvn9o6fmp+pK5eOnvVKmjbT/Rvv7SZqDHf2VnQ velW4WHRsaY9k/hrgVzX8KA95c6XzMGzFGZdGhAwSD7+HirrgRwL12AF0CFIOUpK0YVF FJfZ6/hWdyYU3B3wE2wx6aoNoLdCH6NjXzj1ehvQJlUOy1B81gf5lJ94GNlJYpBisxa1 vQRlVq4R3Rfe4tdJCF6t3xdU9xStw/FXxVUF7E/GBI34IeXPGBgQyGPp2RJ1L68smtxk IDq0ziS6ZZkY+CIkNylo1YZsoAjJ5d+NYv4xPVJm+NQbNHRXUP0FawYv7dVt+M+vKSrD 3vgg== X-Forwarded-Encrypted: i=1; AJvYcCVggm3wQxsHcoxdI7RkSXIKOPBGCXjQgLwSpuQ6z/Gn270U033WaK3P3lssDu4JTBzAck5v6OATq4hCvPXqnckGaePnewJyvdAVX/b+eQM= X-Gm-Message-State: AOJu0YxdK6N4OJ+SEmbprscjaXewhOEa2O1/ioCdM06rpd6d7n0vzCEG IiTuSW5yxlrW+hG/JZVaHbGWmrcjJXdsYUbd17MCMR2HBD9H+8U2P47tOUDtEfs= X-Received: by 2002:a05:651c:149:b0:2e2:9842:a9d3 with SMTP id 38308e7fff4ca-2e52039dc3emr254963931fa.46.1716284731863; Tue, 21 May 2024 02:45:31 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2e706ee0a65sm13906261fa.112.2024.05.21.02.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 02:45:31 -0700 (PDT) From: Dmitry Baryshkov Date: Tue, 21 May 2024 12:45:29 +0300 Subject: [PATCH 09/12] remoteproc: qcom_wcnss: make use of QCOM_FW_HELPER Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240521-qcom-firmware-name-v1-9-99a6d32b1e5e@linaro.org> References: <20240521-qcom-firmware-name-v1-0-99a6d32b1e5e@linaro.org> In-Reply-To: <20240521-qcom-firmware-name-v1-0-99a6d32b1e5e@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Loic Poulain , Kalle Valo , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, Arnd Bergmann , Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1128; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=DTUqzTL8iOBwkoam3qEvEmtJacPSZ5s4Txv1FotXGIM=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmTG0zPLiR7dwV7D48NkYRmQHnnNAmGPP/K51cP jAUViaiRiOJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZkxtMwAKCRCLPIo+Aiko 1TdoB/9DyT05xqeXzcbdzf5YPPdhcoo3145silkVCetoVq5t60jcbl44H4qmSe0k+GImIovA6KW xtgCjAng3vquS6ZKIU9Wx8jyfldrEI4khHxmIWrOwBKru967hGq0sskYp9msqoueB5DgeTpqhU/ Rywy6/IwOtZjl1CiKXIKT75Ny+zwM+cSnDSodIdICbWiuwoHl6ui8Yt3wFm6nB4RDuDPEQMxplj CRESXlPxtgZmYwDiWz/xz5hjPszcWG7GDtZ3S48Zii8OF9lFGqU0jF9EjSfIEfS2CTAbd0Soeuk 0QzgzP/MMTIvejFdnd091aBJ0NuyIEMx3DOtdJX3OPTokgOY X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Make the driver use qcom_fw_helper to autodetect the path to the calibration data file. Signed-off-by: Dmitry Baryshkov --- drivers/remoteproc/qcom_wcnss.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/remoteproc/qcom_wcnss.c b/drivers/remoteproc/qcom_wcnss.c index 421a3943a90d..45fc578ae30b 100644 --- a/drivers/remoteproc/qcom_wcnss.c +++ b/drivers/remoteproc/qcom_wcnss.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -555,8 +556,13 @@ static int wcnss_probe(struct platform_device *pdev) if (ret < 0 && ret != -EINVAL) return ret; + fw_name = qcom_get_board_fw(fw_name); + if (!fw_name) + return -ENOMEM; + rproc = devm_rproc_alloc(&pdev->dev, pdev->name, &wcnss_ops, fw_name, sizeof(*wcnss)); + kfree(fw_name); if (!rproc) { dev_err(&pdev->dev, "unable to allocate remoteproc\n"); return -ENOMEM; -- 2.39.2