Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp587453pxb; Wed, 27 Jan 2021 15:58:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxp/L07wyHQffnz/A92+xbHfpWeOSwFQ9q94Ak/A7NorymsZEHblezaLX1i/xUO/b8CoCPG X-Received: by 2002:aa7:d504:: with SMTP id y4mr11054744edq.372.1611791938704; Wed, 27 Jan 2021 15:58:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611791938; cv=none; d=google.com; s=arc-20160816; b=VprPuhPo2ktGchEJ9XIQpG7mYPCW+Qj2LRqU5JoADdesPl4H+0jQ7MCf6Fg9WaVcf4 bNaPplsCXdceFVhoqcN8kNQ4MYutQHjbh4gplzRmwJJ0wcbgb22Z7yC+QK8ALvNV7EmE r05skSTNtWzeysfcONOJyeqNR5ExYnlHfi1u9LsrC0kFx4HOBq9uHKf3P1BC6qGWe1zY 3B8Ig9k1QO0ygXCC9/nolvxry0m+GoOFB79rDA08RRGaeAyGGXPTKZnM5HvC6avkEY9s J/UhDhfaTemgNSaN/a0DiXMV7VESDwTII1ZckK9oeKerjx0xAilf8RfabvR5JiGHdD9e a1aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HfLPRs4eN96PH3aPni92mJ/cIVZuitFdz+paWUIHXdc=; b=Ln3Ks+bXogJi4jBwdQM+4BworTHCW0YNthwzMM9DR00nJVPn1DnEITgl65yT0WKnwt T5FmfqT+lxjj5h5TyVL9eRJB5l3TeYUCYhSVZsVhcULGMdet5YFNa81dVyuQ9uXiB0Pf jfkATwINulfKsO3O36ww9diw7jtg0H/r0B/nNnTB8PVPtJZR3blMzvasGOtiJK2jiWve iW7YUSwBORDFVfyPwZ2wvzAOOkOLqiLQwP0jt1sKbqf0Qi+s53GQLz2HDnE7oJy3PUFY z9Dwh1ZpUm0kcoUVUk6NuqJ+rCbwHAbn41nkCaSSq+6BwhMXyC1+X2tMuTQgVsBjiIy9 PewQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p1q8YfNI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si1223499edt.102.2021.01.27.15.58.34; Wed, 27 Jan 2021 15:58:58 -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; dkim=pass header.i=@linaro.org header.s=google header.b=p1q8YfNI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237987AbhA0Mw3 (ORCPT + 99 others); Wed, 27 Jan 2021 07:52:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S313965AbhAZWu7 (ORCPT ); Tue, 26 Jan 2021 17:50:59 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49C5BC06174A for ; Tue, 26 Jan 2021 14:50:19 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id g15so114987pjd.2 for ; Tue, 26 Jan 2021 14:50:19 -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; bh=HfLPRs4eN96PH3aPni92mJ/cIVZuitFdz+paWUIHXdc=; b=p1q8YfNIA7u32gyMHl7TJSv3C8pAUdbdZcVVyJeHHxhqdhLHk+P8OTRfVFZCZFa1ml HZV+DugrPhmS9M9nl9g2cvisAnWA3oB8IvVKgGYF4Iwi1z3ufUCrbwWMnro7yhvl+2hA SZvJOIjJi/ECQTP0a/3mbjfiID9kT8scx4h2hoh6QVD+JoIuxuPd0a+MAlkuy1Nu7+dh QiffobnwoY8PmHP4pHZ3DbGtIgr++So35J3xhZ3DEiwJYvmu9aVA5QWpGGEh5bXqZCVV 4Xb36ZW7NeRF2mlrv3IpdYSXGnKKfk39GM52BzF9/CKCaGBtVpXvLClh5bx2sOlzguOC Fcow== 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; bh=HfLPRs4eN96PH3aPni92mJ/cIVZuitFdz+paWUIHXdc=; b=TXu6UVv/LtGWEfyVeSRzxgWvZafoQeylJmhtxA7onDHt63LZG2YF6sAFu8dy8qrOXi quEN7XNIA92BLnn852U5NJHay7Fir6tswr9Ilj+xlSIOPSt++nxkz0L06HsbEtXAdYC5 +E/dRuroxqb+V7Yk+28mL39R5PrSGyMAecv6IvvNxm2p+hl6j3M9MxcLMNdwVWfEbbfZ vLhJklcLran9ODnqO/13Xy2dZWsDfboR3OZCZqqhoDV8LOhBdzyvPj7ZAF18yn/4V7vH XAYjf38C8xYx4sn8cTpdT0/FfA2nMapceIwC32rtR/Nc3dq9PlA9nOSHp+F0aCYD4Lln 8QrQ== X-Gm-Message-State: AOAM532vkqayuSiOiiTFMJzDDOoDQgW45Y4WsN0P7LEWN4wtQ2tizcbw 6xRcm4Dm1ZRaurl5hNSTDz1NVQ== X-Received: by 2002:a17:90b:813:: with SMTP id bk19mr2101295pjb.193.1611701418801; Tue, 26 Jan 2021 14:50:18 -0800 (PST) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id gd9sm16044pjb.10.2021.01.26.14.50.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 14:50:17 -0800 (PST) Date: Tue, 26 Jan 2021 15:50:15 -0700 From: Mathieu Poirier To: Paul Cercueil Cc: Ohad Ben-Cohen , Bjorn Andersson , od@zcrc.me, linux-mips@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] remoteproc: ingenic: Add module parameter 'auto_boot' Message-ID: <20210126225015.GA1100385@xps15> References: <20210123142956.17865-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210123142956.17865-1-paul@crapouillou.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 23, 2021 at 02:29:56PM +0000, Paul Cercueil wrote: > 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; > + Reviewed-by: Mathieu Poirier > vpu = rproc->priv; > vpu->dev = &pdev->dev; > platform_set_drvdata(pdev, vpu); > -- > 2.29.2 >