Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp552487pxb; Fri, 16 Apr 2021 12:01:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypoT9fYLePtzkxfsX01HCy6nLBH7xYyXR7nGOyUaOgePIJP3IlA9vRN9MgkbbmE0e/SZ7C X-Received: by 2002:a17:906:7118:: with SMTP id x24mr9854791ejj.127.1618599660439; Fri, 16 Apr 2021 12:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618599660; cv=none; d=google.com; s=arc-20160816; b=UgICSaWvhltUg+t8d4UdID47x/Rh2bvZl7nTvgpUjY5FtWojMk21HMugA+8ZGpzikM PPezKiuS4KoJ223v3ddiPPm0DfRYrqRY6Vc+9/heUqm0GHmSq5RCaryUsQ+W/fzhEinO /X0UEiid78ADdBmmMABRNHCQ6L9I0OwdVI4W/vn1TpUB58XukYn9VkAyMp2Zj1GmJaNn GyD6v6ICSwR1VNzrVDQihn7cusotOupLWSX+ox7t29hhAcq459GpAaMjnXMjFY8zjvok apf3wWnWvft5l3/sF7UMcmgv+MugKZe3hTpIO2C+DLo52jLCPpQok8vNq8SW3GmU1SFN NKMQ== 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=7Kx3UcFdv/eRIfY3Uc8K/OykQp2bLhtDqFTwHRlJGkc=; b=M79CC2+ZdTkz3pGVvZDkHh79xVHBjlKiCsxV+ZjKIbS19fUl3AhvaO8Sx2E7mTfAZf H91mZnoPU3X4y+Ru3842Ux/SyMwfx38Q3E2/FS1P8IHbA0oyitQwS7pnhznbNMaKNoKa NSLi1c9FARUktaiy/gO3qUZLY8dXbzdTPlDTY1iG65mcCE11x1pn3F9j9eSgHssgaLr1 uz2k6PdkUj98AEy7PSHgrU/cqfW5ycqSQ7INOOk3HBq/PAj4N++C7jXI49O3e94WeAin GC9KEaWoJdeIlcTeqTcG1t+0RgiCS5TYK5meK8W4fGyfuAck6JAZe0Ru8ySvmfkZ8JNJ +z4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k2MNufu1; 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 bf20si4033917edb.271.2021.04.16.12.00.37; Fri, 16 Apr 2021 12:01:00 -0700 (PDT) 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=k2MNufu1; 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 S242890AbhDPRmT (ORCPT + 99 others); Fri, 16 Apr 2021 13:42:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243342AbhDPRmS (ORCPT ); Fri, 16 Apr 2021 13:42:18 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AC99C06175F for ; Fri, 16 Apr 2021 10:41:53 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d124so18780930pfa.13 for ; Fri, 16 Apr 2021 10:41:53 -0700 (PDT) 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=7Kx3UcFdv/eRIfY3Uc8K/OykQp2bLhtDqFTwHRlJGkc=; b=k2MNufu1970ZVAMczqrdsGovu9JaJc1xX1Hp071LsHaxBvxl8xOhtkkxILO8FEllV/ y5iVTa5QXGlBjFuZDsFxDbRzSb4oGG1QcTl0Yb9hE8CoPDEitRXg6Wz/ZU+SjSahYk00 FVFeMkV3wzZl9SyGcH9OX6mzppEOaqtZpskncCTlIGxV4xR/CryjYUzTLnZwAUiOxIpf +ZWk4b32gkwAAFUimvGCg1wtJ+Lae5+jLSxWnMmoFcjWPlmfheYTkIYie5DHW5MC75KD 7wEl5IuqBpCFj+g6oPIwmjb0V/vVeOOCUyah4XbzszmCeRTDpw2fjmU5h30R/MqCfDfN pzWw== 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=7Kx3UcFdv/eRIfY3Uc8K/OykQp2bLhtDqFTwHRlJGkc=; b=ZsVe+KDxR1AYjKRxWDsmg2m24D1q9mPPm0jGLzlkbMuWcX84K2UOQOGluQr8NH8YFb qrYFSWgUd6Ll8t2AEIFHuI6HhDtqM+ZeLq24dZ1VhwPyUrA7UJ8BRwJVnfY9eEuDtYTm F3KfIgSBTDJjH7sMPm0MPRW3DysjMvoTHO2J6iUSUAeIJJmacz1KHmAtgUei9aPdpkun B4F3l+rrks4aAdgjdcRQ5GaT8lehZzyBxtfeEPxQ9r81zBkc/3bFmCAxNiGkJnkPutKC aBhJlRb5gW71XCEzQrRCIt6S+VThwvd/z2yDntl06oeSIxXUEoMxk5p46OeE0w8Tsbrh X12A== X-Gm-Message-State: AOAM530as49oeHlSc/T3uiH45UZwCGffKbKhuX3l3sRiBMpCoiyylxTh Ak0jhcRyDRC+3aNdtq92BVZ+xw== X-Received: by 2002:aa7:864d:0:b029:24b:dd03:edec with SMTP id a13-20020aa7864d0000b029024bdd03edecmr9062588pfo.18.1618594912941; Fri, 16 Apr 2021 10:41:52 -0700 (PDT) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id a9sm5265558pfo.186.2021.04.16.10.41.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 10:41:52 -0700 (PDT) Date: Fri, 16 Apr 2021 11:41:50 -0600 From: Mathieu Poirier To: peng.fan@oss.nxp.com Cc: ohad@wizery.com, bjorn.andersson@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: Re: [PATCH V4 4/8] remoteproc: imx_rproc: parse fsl,auto-boot Message-ID: <20210416174150.GA1050209@xps15> References: <1618493261-32606-1-git-send-email-peng.fan@oss.nxp.com> <1618493261-32606-5-git-send-email-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1618493261-32606-5-git-send-email-peng.fan@oss.nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 15, 2021 at 09:27:37PM +0800, peng.fan@oss.nxp.com wrote: > From: Peng Fan > > Parse fsl,auto-boot to indicate whether need remoteproc framework > auto boot or not. > > When remote processor is booted before Linux Kernel up, do not parse > fsl,auto-boot, so only need to parse the property when rproc state is > RPROC_DETACHED. > > Signed-off-by: Peng Fan > --- > drivers/remoteproc/imx_rproc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c > index d633887..06dac92 100644 > --- a/drivers/remoteproc/imx_rproc.c > +++ b/drivers/remoteproc/imx_rproc.c > @@ -654,6 +654,9 @@ static int imx_rproc_probe(struct platform_device *pdev) > > INIT_WORK(&priv->rproc_work, imx_rproc_vq_work); > > + if (rproc->state != RPROC_DETACHED) > + rproc->auto_boot = of_property_read_bool(np, "fsl,auto-boot"); > + Reviewed-by: Mathieu Poirier > ret = rproc_add(rproc); > if (ret) { > dev_err(dev, "rproc_add failed\n"); > -- > 2.7.4 >