Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2010556ybh; Tue, 14 Jul 2020 13:05:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsbQDqNpoPr0wNpXgH56WUrCff7wrLGOX+dqp+djShKol8778QsF/sipj0meLxrD37ieO6 X-Received: by 2002:a17:906:8401:: with SMTP id n1mr6013352ejx.479.1594757124311; Tue, 14 Jul 2020 13:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594757124; cv=none; d=google.com; s=arc-20160816; b=uA2dkIcyGU2+h3volwsUZzQSB5mlF6LFLm2v8XaiBoXLp735fpk/V3lcGVvFgKJIpN XWXcUIUEDZlbS35LOwnT07dnao3jKRJrhsl7B/r+Mz25emaadUn+qpi1WXhri4EHas/f P5U/NpRdr6h1g57ELFaWXyHHEF047Btt0gfoTvGbIE+T21w2qO+EtJGGxuEw4w/6NOcs TdI6/NpajamqhhzUTN6+qRez4P62BPq8i/4KZM80DEDcIicYqeZtyxxsrx1NhaCc2ZXs eghoW6QyWNTaousCaNIixgvD1MkjuQH1/OtfNey7xg5SO72b9dTPE16Ll+3ZT2r+aBHc +R9Q== 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=j/h+lVOr/RBj1CX1aOHHsCmrTQA/AlJdomb+YOh2q4g=; b=dRrfxUpPdsLhlQW7PZpcFAtaA14BLw8zaVfeliafuOJKxwY9Q2I5Fjr5554AMOMlbz iucrAu8Bco5kE7z3kEAmCkYEoDwQv0rrxaFkQqNg0Os6Dc9u1fOc6vmpWrvyS0CcZxEM l2qw1CRGVuy+7nl3/u7ri9A2yzCw6/ULiA8zSQQXuGZTQwA0Mv0mSODyhkPo591I1xOv SgvqDS56FmgBkLju7XeEzoUsE4sqXHRr5CbUAoPgoad5b6B9DZtNF2cHiJAyaEaGPxz/ b8TgS9lgQAvQoNRttLC1d2C6CioD93wL48+Nj5D3fo1UxReiO2gJwByTmu4f5k0RPWbB QYnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZEGVgZAw; 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 b18si10998735ejk.572.2020.07.14.13.05.00; Tue, 14 Jul 2020 13:05:24 -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=ZEGVgZAw; 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 S1729820AbgGNUEv (ORCPT + 99 others); Tue, 14 Jul 2020 16:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729779AbgGNUEt (ORCPT ); Tue, 14 Jul 2020 16:04:49 -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 860AAC061755 for ; Tue, 14 Jul 2020 13:04:49 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id i14so8031320pfu.13 for ; Tue, 14 Jul 2020 13:04:49 -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=j/h+lVOr/RBj1CX1aOHHsCmrTQA/AlJdomb+YOh2q4g=; b=ZEGVgZAw1WowmoNs4YtaxMkX8J3P+N+cEDsqj2D/XXL3ERgqiuUzqEElWdgsEZ8j36 zHiG2HGWu2JXaLB2A3xNpmyRyfw9+5DVk5xkuFncPHh6GsecjkGYzKDfoCvsr7NzvB6h AhWrjIM3vSmnTLXNiwYgH/HgZ4wI2CKFwMcHeck9ekgqt0DwiG6WhEof9haEdg+XSFw2 0Rr4G9EehYJ+TH3AYiZg+AnU3lSoARmcMnC4mVbSI0QSu4BzFs7rUQhXe8AVmElKIIKs /JNNwqja46P/E1NAbtbiJ06pPbhDQ+wB0xLBjU3yChF2DeQpQ/So9otApPKrYdSceMxq bnxA== 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=j/h+lVOr/RBj1CX1aOHHsCmrTQA/AlJdomb+YOh2q4g=; b=JcHLTPW2A/EQ5kd2vOjNruLBQnLgbXmrNggbWSmaPM4p5yfIAetGOVDX3e0E4o9UyW ZhxlQAGmS/PNxKhRn695ihgpUDWLtBpCI/nw6mP45nLu56Dtw0jQ2BWwIQRf62HpVxmZ c8H6o4SHYs6adRgWWfHcFM2Htu8BW8Icx4y8LhnCK0yYyvT3rE6UFecoa62nJR/ebATs aCCi/MfM9wuqL6q8bK65UDlPGuOUrHV5fBwPDL8LhHlgzGBkbPgV5rd1DKmrvzTWTDT7 orpy0UXAoUd4f5sqkCIwbN0GEyYHsdPN57T0PMcUkvg6QiJF/lcho06wjra+tyl5HR8P S4rQ== X-Gm-Message-State: AOAM5316qbQ1CoJtvAg/l3s37xJ71T82RStc8TGtNkMIji19+1ZiEtLX ArBJwG3QEapxVY1IC0hHJulHhQ== X-Received: by 2002:a63:c447:: with SMTP id m7mr4654907pgg.118.1594757089129; Tue, 14 Jul 2020 13:04:49 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id t13sm3262959pjs.17.2020.07.14.13.04.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 13:04:48 -0700 (PDT) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org, loic.pallardy@st.com, arnaud.pouliquen@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v6 01/11] remoteproc: stm32: Decouple rproc from memory translation Date: Tue, 14 Jul 2020 14:04:35 -0600 Message-Id: <20200714200445.1427257-2-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200714200445.1427257-1-mathieu.poirier@linaro.org> References: <20200714200445.1427257-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 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 062797a447c6..2973ba201c1d 100644 --- a/drivers/remoteproc/stm32_rproc.c +++ b/drivers/remoteproc/stm32_rproc.c @@ -128,10 +128,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; @@ -607,7 +607,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.25.1