Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp158160ybz; Fri, 24 Apr 2020 13:35:42 -0700 (PDT) X-Google-Smtp-Source: APiQypKDzfdVC8YxA2RHjwT05Bx1Tr3kloJMvhyRDMgUy0R2o8mN3dNBaRDM5CXsBWoSItnn293y X-Received: by 2002:a17:906:4e8f:: with SMTP id v15mr9124996eju.321.1587760542273; Fri, 24 Apr 2020 13:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587760542; cv=none; d=google.com; s=arc-20160816; b=w7CjqRzdhj7KFfkcdYw55we+5UocZBSSesQUuuTAP3e491SQ8PrwLB7ank5XBYGdUN m2DAbjR2ZpKvnk5lbQwXbQNgtLQHSk6BXAH6K9+fjq7dfREnsUrU1EY10kszvIWaU6FU Y5/wdHgHyEZB/WRM7xvlbVTL4Tmkpn99HclZbEx46FOvl2lLsGJSCHtSA7rgM4Z8kLXS HVMLGBRE5u3sPoD8wo+jQdcM8Cqixmf4yIhZHtY0WfuYal1HE2WigS1jgJASC7RE4xVR xH6XfmnOm72ciaved9ysVymsPmZ0PeQ0WgWimexW2KmgxM93ZGSQftioW9+h+LeHxsTD GTsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=p2iTWW4nO5SL6In2uagzPcw9ivsY9NbY9ua5sw1Z8YY=; b=HKDAgo8pNeaG1ln5S6whWofnOK7MqQP5D4RPFVOmnr2aRJiZHAmpd/Za6uLsHMw++i 1tjeJU0Whc7YuO8hScPKmFnxb16KKL/mZ/a5czQYE06W3JU8+TqF9/SWW/1r/huUqloc eL8OeP8ZQAF+wO4G2Gzv4eWfgKOwRtbcFArgLHR0SWrpK9KHBwtq88za+CqsWQtmHPY9 JCG2VmJjV4iDcyv5hOcBFumTvqnNreDSI0E1DJRxgvqQVJlfHtgQJHMiiih9zp0rK1+w Y3nghlRZPOmolqSrOrrrAbbpJnMz7GpHjPMrG8xoPn+PNHTtZuJq7ZXS+KkWTHdf9vn+ TYEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Xh2v5zI/"; 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 e25si4173440ejl.159.2020.04.24.13.35.17; Fri, 24 Apr 2020 13:35:42 -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="Xh2v5zI/"; 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 S1729330AbgDXUZJ (ORCPT + 99 others); Fri, 24 Apr 2020 16:25:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbgDXUZI (ORCPT ); Fri, 24 Apr 2020 16:25:08 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3575C09B048 for ; Fri, 24 Apr 2020 13:25:08 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id 18so4123860pfv.8 for ; Fri, 24 Apr 2020 13:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=p2iTWW4nO5SL6In2uagzPcw9ivsY9NbY9ua5sw1Z8YY=; b=Xh2v5zI/BaXOCyJfw0q7LclyWcz17VcHHRAtRtzAcWv4MREiZiUr1J57Qh4LJD8BbF xVMrr3t30yanDFyJWCs1QAlhVVOPRQE1Ayy8l+zkS5hsvfZBhqo64LotHv+13vShH52s wv70aHtI8AK4YzwCCPu1bRvf4t3gI0y3Gg+gu0cfcOukzcvEoZvDZK3qlFeucEIz5Xoa p9UPO8xv7uLv96Kr6yUS5T/DFvplz/q3gISrhvhd2RZMX+4ccKZkW0qJpKovw4Wfxlaq OsHB6DdRPFDTnyMA+I0y/d1mIUtmQUeUj9fgAF7r7U7fJfvPQXzbE8lz7nSADY6zUtDu insA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=p2iTWW4nO5SL6In2uagzPcw9ivsY9NbY9ua5sw1Z8YY=; b=oGGjp/qucXBHeF07fgdHW9C6VA85BiI137h4Hw+A3THIM2vsfrsbiJmlDbf91AiA1b OsjHEmmthRurEx+roALAqnaJuViMp8XZLuGPb/Camh4LgBn7XmfloGb4vXG9xs5amhbe Fq4I24d0uRwH/eNSkN4spZL2ukZKR0D4rl87bhJQjrsfPWeC2xzVPgMRzXxS5FQcm2PO 6uzJ5ekeM9x+MVfM8ELSJ+waUsdycwWivS+nDX7uSXvzfbl3p8lVTGbb/OSBb6d0CaXJ SMO1SdqT5V6hC7/1rFHBIogQ07fsatjNIVTw+uk2kEsZLGVcCbqfj+Sjn/ezMcVKLEMC c8JA== X-Gm-Message-State: AGi0PubhThu0EEQaKatj3PlWk2j28DZ/Wv/VU2ijeUoC0tttgwHRXGyQ rEncnALdjvTUzkQZQyBYNYIIjQ== X-Received: by 2002:a63:5a50:: with SMTP id k16mr9509922pgm.171.1587759908429; Fri, 24 Apr 2020 13:25:08 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id c1sm6553245pfc.94.2020.04.24.13.25.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2020 13:25:08 -0700 (PDT) From: Mathieu Poirier To: bjorn.andersson@linaro.org, ohad@wizery.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Cc: 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: [PATCH v2 01/12] remoteproc: stm32: Decouple rproc from memory translation Date: Fri, 24 Apr 2020 14:24:54 -0600 Message-Id: <20200424202505.29562-2-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200424202505.29562-1-mathieu.poirier@linaro.org> References: <20200424202505.29562-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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