Received: by 10.192.165.148 with SMTP id m20csp533521imm; Wed, 9 May 2018 17:57:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpmKgKfYH2LU/DkCMHWXdmrJ2oS9yTGf81CE51NXqcz3oo6pRwx6uESEHl83s1X6ONZOvg9 X-Received: by 2002:a17:902:a716:: with SMTP id w22-v6mr12477304plq.215.1525913841707; Wed, 09 May 2018 17:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525913841; cv=none; d=google.com; s=arc-20160816; b=yhz5+6cHCeGSEsJ549g4NMMz+kWFDYBvz1i6irPBdtWyqYdwf9Bd+HKYS92sUOjEWl MKTJFxNUVY2B2+/cfjRm3P+W0asQQc06nlseag/FG9rh8KtExFwEbeLZdX7ALZ8QAPhk 4RHXHBoay1lLNih0fb8yu8HM9ddqiiCyZsIl4OmWOs+htu4yZmG5HVq77pKIeIzn7mdM Saoltz87AbgeE64pgFJi8PuKD7TBALdEYHjIdarJ1tDazpOdkHG3Os7XDP8BYGukkFC6 RN49EPlEb7Kf9FHnm+lx8kCDuwM8qfD9xQ1XuPxoJuqCrMIUGMz2HK1SADWQaXbWWbgm Pzfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=z2hYpIudl22rZaZf8bBciBnkBCz9F9gFswux2PBxgZk=; b=pYKMFYkPlzy8y6uRSdOEFDKve/MZKiOg88wcBGu6+2TBS6zwdRzq1mymtMYHGF3C8g zySiPBykPFqRxzzjUPPIrIB6sreTYVkb1iLmwpvrCxzTMxROPfphLrP4Q0AO0OM8Tl8C gtJNpTveb536GwARSg+M7G2q9sP7LKyCKMhRWwH48ID7YZVB6/+jiPk3OwEF9p6Ak/lJ ozDean1yqdo4TYZCirOpoiA2nXfZSzghphFe1M3tvjKKXReLylMUuYJyXj3qAm51eCKL DH3Gmq3GhIvtsvHpk6OeC7y+GRGEI7UINaOTax4q5YHcXOyYk7cEyxeyBpMy1JyIQCLu JRrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cI+HUf+H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id n9-v6si20728449plk.584.2018.05.09.17.57.07; Wed, 09 May 2018 17:57:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cI+HUf+H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S966082AbeEJA4y (ORCPT + 99 others); Wed, 9 May 2018 20:56:54 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:45737 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966061AbeEJA4x (ORCPT ); Wed, 9 May 2018 20:56:53 -0400 Received: by mail-pg0-f68.google.com with SMTP id w3-v6so179409pgv.12 for ; Wed, 09 May 2018 17:56: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:user-agent; bh=z2hYpIudl22rZaZf8bBciBnkBCz9F9gFswux2PBxgZk=; b=cI+HUf+HGvYJ797nPsxvj7pT/kEb1HezgkwGQMyI/NW5nW5qi5IY1KuONG2yad6dHZ ALXxkAIzLpaEDlzLRAIG/QENmbNqV9Y0ukENArRcxAyuNVD/cRWJYIFyKIvsV/roks5Y nDrLo8r+zEJnatiNE7QSWwNY0xbWRoUEm6DBU= 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:user-agent; bh=z2hYpIudl22rZaZf8bBciBnkBCz9F9gFswux2PBxgZk=; b=AeP7Er765EhHDjQa+wDZwfbpKEUEq3u0eOR/1O6BjXKmNT8kEfpFVcTFnH8yhKQKS7 FyJ++KH2Gdcg8SHTQfbe9CzFVUhIfnUm4SPwF2E0pUAAYvfuujbfKmGGKshrubhEDF8o VvMhp4DRuSQAtR+7Uwj0x4QyPweWgx8wwG0wECFo15d5j5WHPyMbfPW4FnGVGJRhrtls ksqfSf0uF4vSJgIVlW8EAgV/eLqWXR1+VPJL69a8YTzna82uOZEv33qrhufli5R9qUEm F85WvlOc/kqK5lxVTD8FKCx7Gn9/PUOCX8ESSu8fc6EoPJKu1zmqixDq4aegisoVuCxJ NZ4Q== X-Gm-Message-State: ALQs6tDaZCDq5jeXurLx8s0rwbAsprRccn2xcw3vfEirDKJLb++n5HC1 hJ6ChynBTj2nLtPpQJRXOv0kDA== X-Received: by 10.98.92.6 with SMTP id q6mr33114098pfb.118.1525913812720; Wed, 09 May 2018 17:56:52 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id n126-v6sm43452685pga.85.2018.05.09.17.56.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 May 2018 17:56:52 -0700 (PDT) Date: Wed, 9 May 2018 17:56:50 -0700 From: Bjorn Andersson To: Loic Pallardy Cc: ohad@wizery.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, arnaud.pouliquen@st.com, benjamin.gaignard@linaro.org Subject: Re: [PATCH v3 06/13] remoteproc: introduce rproc_add_carveout function Message-ID: <20180510005650.GH29093@builder> References: <1519921440-21356-1-git-send-email-loic.pallardy@st.com> <1519921440-21356-7-git-send-email-loic.pallardy@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519921440-21356-7-git-send-email-loic.pallardy@st.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 01 Mar 08:23 PST 2018, Loic Pallardy wrote: > This patch introduces a new API to allow platform driver to register > platform specific carveout regions. > > Signed-off-by: Loic Pallardy Acked-by: Bjorn Andersson Regards, Bjorn > --- > drivers/remoteproc/remoteproc_core.c | 14 ++++++++++++++ > include/linux/remoteproc.h | 2 ++ > 2 files changed, 16 insertions(+) > > diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c > index 4c92b7d..91aa22b 100644 > --- a/drivers/remoteproc/remoteproc_core.c > +++ b/drivers/remoteproc/remoteproc_core.c > @@ -758,6 +758,20 @@ static int rproc_handle_carveout(struct rproc *rproc, > } > > /** > + * rproc_add_carveout() - register an allocated carveout region > + * @rproc: rproc handle > + * @mem: memory entry to register > + * > + * This function registers specified memory entry in @rproc carveouts list. > + * Specified carveout should have been allocated before registering. > + */ > +void rproc_add_carveout(struct rproc *rproc, struct rproc_mem_entry *mem) > +{ > + list_add_tail(&mem->node, &rproc->carveouts); > +} > +EXPORT_SYMBOL(rproc_add_carveout); > + > +/** > * rproc_mem_entry_init() - allocate and initialize rproc_mem_entry struct > * @dev: pointer on device struct > * @va: virtual address > diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h > index 59b60f1..4aa30bd 100644 > --- a/include/linux/remoteproc.h > +++ b/include/linux/remoteproc.h > @@ -536,6 +536,8 @@ struct rproc *rproc_alloc(struct device *dev, const char *name, > int rproc_del(struct rproc *rproc); > void rproc_free(struct rproc *rproc); > > +void rproc_add_carveout(struct rproc *rproc, struct rproc_mem_entry *mem); > + > struct rproc_mem_entry *rproc_mem_entry_init(struct device *dev, > void *va, dma_addr_t dma, int len, u32 da, > int (*release)(struct rproc *, struct rproc_mem_entry *), > -- > 1.9.1 >