Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1049552ybk; Wed, 13 May 2020 22:00:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv9GQQ8d+qUhSWBoeMMdRSFhsOtZUHufkIYGldhms3rcPs7sgm7r5MZ2Q5E5M3qLVnCosx X-Received: by 2002:a05:6402:2c4:: with SMTP id b4mr2447027edx.331.1589432429307; Wed, 13 May 2020 22:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589432429; cv=none; d=google.com; s=arc-20160816; b=MaMqkdBPPchFIuiydT0m6lQSl4hn63LLoId3a64jJJZUwrv79b85cj9GOfxHL4r4oz SrMEACyJFlRiOiBr7E5tXzeXzWyog3juQyQRARJScIFn3aSVYkbcDXYQg8Gt+bYI63EN 38iUV2aLTRDx5cBM+erL4zQywcI/fTxaYxlhlYbo+gcfq6aMpxLDMs67N79Qa+qhnrJJ G84AxsrPJ5/TtdH+mRjP+V7r+b7gf5UE9AuWWs6SFwN24J0d32O2nPdHb50fM+9fUk/X KMlT7hvKLJxngJsiLS0zNLQoXeh6H3I7+2LS4APfTqZ3eiCuaoB4TgkSBKM/iaLwUqel JbPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Fy4YBkk4dKPrXz1Sz6in3rq8QZwklEzzdmUHwWz7Vts=; b=OlLaXnV1/Y7P30gBn0YE9gDWxTMIdWclZbinef2JaSKwwe3moXhAkD8irplzC2v/AV GS/xfMmyXGSa8qMkHS/BZ+iMXBYoy9Slpd02u1NlB/bFZu5KGfHhzE4O+E3He9iBToSR An465wj2LDj+EyUvINrlra38yfBW2kpj5+wq5/mDIZF2ZJLec1Ak39POa2GTROTyNye9 PxcVK8NwTxOaB6KykTl4nMjLU0Yc8O7dcjnV879Y3BTH++jlSo8DdBgC3B4irmwbiDhq HdJgcQdxuMul9u9K4H4kccHVW6EhsuWxNr8Hjg4IQu0sLjx2uEutuXnyGYzIYyjx+mKk y1aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q0CuyR16; 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 u13si996663edb.6.2020.05.13.22.00.07; Wed, 13 May 2020 22:00:29 -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=q0CuyR16; 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 S1726055AbgENE6f (ORCPT + 99 others); Thu, 14 May 2020 00:58:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725831AbgENE6f (ORCPT ); Thu, 14 May 2020 00:58:35 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25061C061A0E for ; Wed, 13 May 2020 21:58:35 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id u35so756048pgk.6 for ; Wed, 13 May 2020 21:58:35 -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=Fy4YBkk4dKPrXz1Sz6in3rq8QZwklEzzdmUHwWz7Vts=; b=q0CuyR167W+2BNBNi9zP/2Uo5HLrTYi02yqX2gsXiURJvGny1sZnBQuNVC6dB+Jenn dZo0jdexaxmCbJxntzQ/rQy2sTYrHnzssTzyjed7H5gwHO623LSN8LsLakEmtj47rYRT i1CDdwGC9jd5kU/aYeV0kVUSns/5vIOUKeo3yf/Bq6od7L5fq+tfAq6AT4tm5+Jc03xG Hlo7QzEcyYCrZbt90ZrcrjBvV9d9kjnD+KPmpTwQpYOioy8QqwnkPf8ZPcuVwlEzw5I6 HACuCYW1LIqjhZh2oS5Rw+ibKfvsRuoFElx50bxhm7tFpljDv5VHFZdvXIttrYReFJRN P8Ow== 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=Fy4YBkk4dKPrXz1Sz6in3rq8QZwklEzzdmUHwWz7Vts=; b=rnHOiqwFlDeLPoj0bSG70Wk6b2kZU+Ajh07BxEbZQsRLC4jPicA2EDnpKrJ00bnf1Z 4ksifhEuUgrZhQBcIF5ahGcsx4FYFKlqaLPei6Kz7XCqH4lmw8dFm/nDJkztVc8JkCJt W6zQJm1VpZtfiJfiBSHfNkfjxdbWnVuEpPPcWTZ1YjyxjKD4wtcO70Z0hR4NwcdOqlLW gHsZN4pranWuL0dSfbVSEKAPS5KiH420kgBkeNmIfskYJDHkYqjJdHz39J7jz1HbSMbo MRLwA0yrEnMFc9DTzD98HWk5yzef8jmYRrysFLPgpPWbSkVWXt+/ymeiuZGMbquskGzo bu+w== X-Gm-Message-State: AOAM533sc5GlN6jv2+mlJIH/zz3Ies0BIYpNAcBk/ahuHyvXkFBGKuyc 1uc5ez0tul4gQdPhRZf1vRZrbg== X-Received: by 2002:a63:7d3:: with SMTP id 202mr2403501pgh.279.1589432314389; Wed, 13 May 2020 21:58:34 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id x12sm1056388pfq.209.2020.05.13.21.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2020 21:58:33 -0700 (PDT) Date: Wed, 13 May 2020 21:57:03 -0700 From: Bjorn Andersson To: Mathieu Poirier Cc: ohad@wizery.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, loic.pallardy@st.com, arnaud.pouliquen@st.com, linux-remoteproc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 01/12] remoteproc: stm32: Decouple rproc from memory translation Message-ID: <20200514045703.GG16107@builder.lan> References: <20200424202505.29562-1-mathieu.poirier@linaro.org> <20200424202505.29562-2-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200424202505.29562-2-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 24 Apr 13:24 PDT 2020, Mathieu Poirier wrote: > Remove the remote processor from the process of parsing the memory > ranges since there is no correlation between them. > > Signed-off-by: Mathieu Poirier > Reviewed-by: Loic Pallardy Reviewed-by: Bjorn Andersson > --- > drivers/remoteproc/stm32_rproc.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c > index 0f9d02ca4f5a..91fd59af0ffe 100644 > --- a/drivers/remoteproc/stm32_rproc.c > +++ b/drivers/remoteproc/stm32_rproc.c > @@ -127,10 +127,10 @@ static int stm32_rproc_mem_release(struct rproc *rproc, > return 0; > } > > -static int stm32_rproc_of_memory_translations(struct rproc *rproc) > +static int stm32_rproc_of_memory_translations(struct platform_device *pdev, > + struct stm32_rproc *ddata) > { > - struct device *parent, *dev = rproc->dev.parent; > - struct stm32_rproc *ddata = rproc->priv; > + struct device *parent, *dev = &pdev->dev; > struct device_node *np; > struct stm32_rproc_mem *p_mems; > struct stm32_rproc_mem_ranges *mem_range; > @@ -606,7 +606,7 @@ static int stm32_rproc_parse_dt(struct platform_device *pdev) > > rproc->auto_boot = of_property_read_bool(np, "st,auto-boot"); > > - return stm32_rproc_of_memory_translations(rproc); > + return stm32_rproc_of_memory_translations(pdev, ddata); > } > > static int stm32_rproc_probe(struct platform_device *pdev) > -- > 2.20.1 >