Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1815766pxb; Sat, 23 Jan 2021 06:32:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAJPAVdU1hbnco4t8x3HqabqqlZeBRb2ua9Qh2y502zvDPMaW4oLIbUZ6DuDuNtBnjw7+u X-Received: by 2002:aa7:db85:: with SMTP id u5mr512847edt.107.1611412364478; Sat, 23 Jan 2021 06:32:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611412364; cv=none; d=google.com; s=arc-20160816; b=BLCXkpHaEGrjSBiI0VeNLbVImtj6cFGQuQEphKvmukFFMprLXG2dMh6g56fWyyv6K5 wvDDj+wmiWbf2N1S9WDK9LGGZJAUUmF8kAnof52KKnMNZTVqN/H7p7/pfL3Ok4IoyDnI OiSqQ8GhF7lVuuKD0LiULE/uYBYOAWaSaRbEddrzOzpSmJgMcSJBW5QhHQkgdLUrcZtC z5hE66PXoR/rABI2ADq/tSpKnzqOi4EV0/7crT8vIEaMyq2EhbjIF0jx8nUFQC/7HDyV ODfDpkKRhZCBfmp0esXyXjO/o1e1t7dALY/GzBGtnABn9YMCexOC5Xx9y7vyM7GwRZY9 21Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cmb0+MeBZYBmTYZsLN2mMH5C9w0qaqIzKDpQBrrMLZ8=; b=DpfnMZe8f8Xb2AtHFY43JghdymKt+Svk6BBq7/LB1Jn1xQAsuk78Y7NAMx4NYtv2Te GxjVrnbQ85ryVkMudKnVqXoYNPOH29m2YKxxnGIao7kWc6hNrPf5OXCQRcq1tuoBrdSd MG+O3kIgqbD4dTBZM4E3U+rn6W2Gw73wKp9I01CM/ZRlA00XctMuHiDaVsI0+Bg2eC1x o5l98YBrlvq2z+BQb+VjL++ry1q22KbdO00neoJZy1Fr9VkSw7Tz4LvVLnQy7sgaBkzo Fkg6CHq/Pb0/MY/hyrNipTE9tKkn3SibPAcwGT2mBgWZ+/iJh77aO6Pb4Z2qTJu7TELT UdUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me16si4081267ejb.615.2021.01.23.06.32.20; Sat, 23 Jan 2021 06:32:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726151AbhAWObA (ORCPT + 99 others); Sat, 23 Jan 2021 09:31:00 -0500 Received: from aposti.net ([89.234.176.197]:34542 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725899AbhAWOaw (ORCPT ); Sat, 23 Jan 2021 09:30:52 -0500 From: Paul Cercueil To: Ohad Ben-Cohen , Bjorn Andersson Cc: od@zcrc.me, linux-mips@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH] remoteproc: ingenic: Add module parameter 'auto_boot' Date: Sat, 23 Jan 2021 14:29:56 +0000 Message-Id: <20210123142956.17865-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a 'auto_boot' module parameter that instructs the remoteproc driver whether or not it should auto-boot the remote processor, which will default to "false", since the VPU in Ingenic SoCs does not really have any predetermined function. Signed-off-by: Paul Cercueil --- drivers/remoteproc/ingenic_rproc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/remoteproc/ingenic_rproc.c b/drivers/remoteproc/ingenic_rproc.c index 26e19e6143b7..e2618c36eaab 100644 --- a/drivers/remoteproc/ingenic_rproc.c +++ b/drivers/remoteproc/ingenic_rproc.c @@ -27,6 +27,11 @@ #define AUX_CTRL_NMI BIT(1) #define AUX_CTRL_SW_RESET BIT(0) +static bool auto_boot; +module_param(auto_boot, bool, 0400); +MODULE_PARM_DESC(auto_boot, + "Auto-boot the remote processor [default=false]"); + struct vpu_mem_map { const char *name; unsigned int da; @@ -172,6 +177,8 @@ static int ingenic_rproc_probe(struct platform_device *pdev) if (!rproc) return -ENOMEM; + rproc->auto_boot = auto_boot; + vpu = rproc->priv; vpu->dev = &pdev->dev; platform_set_drvdata(pdev, vpu); -- 2.29.2