Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1508409pxb; Wed, 4 Nov 2020 10:48:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzp1xhpouBcAl48V6Kqrs4dal5UUcUXnjQFFqjs3+GVCGXKMOGsWkZO3igWw5okr4z8L0EE X-Received: by 2002:a17:906:1ec9:: with SMTP id m9mr16436471ejj.441.1604515683783; Wed, 04 Nov 2020 10:48:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604515683; cv=none; d=google.com; s=arc-20160816; b=pQJZKyDeibJCFMttCcG/Dh0kf0aiduft22q2BSRc17izpi2sxykKO397OqzZQxhFRW 9GfsYOYMCqj2QqnoDzTCqjaLLWOVQTwMBfCdW/th5JYOC23pVRUfEFEV6fZNkfqv5/51 tk3tnAS60ES8NEKvJZR8zpxz6G1aTPBGGuAJNLkWZfDn3evsgnEysp07+86KqRH+NT/o 2fmdZ4exeEDDGQC+EAd1ZQYCJkvkVAVh+OZhW1Z6SOrFPpHRwzR2uhW7bQ1pkZPJcKYY OZPFVdEFkeaTkh6ZVyjgBo47uR+JFf2JTIxvZh32pq6EJJy8uNWRmzcuRFYg1l2h7PNC 60Gg== 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=Kc8rdkUB9j3735hJINyvhJim2oTO9p7cVkyk+x3P4ZY=; b=udsOL0SjtO1cs9rsYl45hyYchq9lvU8m8cLAi5HLhuyODpXpfSFhocBn0hF0zorw++ IimUEvQaAYvtTawLPZx1ZwSbCQD7Gem00JtAmYpqEGnPBoDUT4zF+9C4mwooraNvgjIv XaKEc0/jPqVY8BJXKVLD2tFNOVI3JkQ/sdZjLKnyWFdt4SGQ6HRyHmerH2m+FX7xKTWF WkXISML2NQZzt/713k9qVB1MDTc8R81CdqKkWNEST9Yr//+IGuU6uTOr78vlLYlu9lze 3FWoUgwpt+vEGGVBa104HtshEsAoH5tItTrPHY5f9lUFaTyPNF7BEOZkiFCgklDjmUFT wezw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QOjocNS8; 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 n12si1865902eje.452.2020.11.04.10.47.38; Wed, 04 Nov 2020 10:48:03 -0800 (PST) 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=QOjocNS8; 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 S1730163AbgKDRe2 (ORCPT + 99 others); Wed, 4 Nov 2020 12:34:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbgKDRe1 (ORCPT ); Wed, 4 Nov 2020 12:34:27 -0500 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85819C0613D4 for ; Wed, 4 Nov 2020 09:34:27 -0800 (PST) Received: by mail-pg1-x542.google.com with SMTP id r10so17146811pgb.10 for ; Wed, 04 Nov 2020 09:34:27 -0800 (PST) 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=Kc8rdkUB9j3735hJINyvhJim2oTO9p7cVkyk+x3P4ZY=; b=QOjocNS82MVZOgfr5Eab2b+gfjmRXkgyNn6OZ7M9vuwkCoWSHorx0dCrnajtk5O8rx dvAl8BR9DjFqfNQLtJDDfn5slieBN6KXahx8ZpKN37ihbrZDvS9IL5rN7hsVBO+UoXK6 aCNQ7nBJaijncoaswKvHm/Okz38td4W7HSKpfKpJk5oxKFDckOdnznHCmtulyKp9sKFi Tp78DqHA+VU07XcA94PfrUN55uvbtm3uM63Mbws4mFkLtBHflzSPjMTaaKX41qE448b6 +swqNvsQSkhKlZId2vsHPSipUjcFfDueWHmnkbrmRxghIefB/z3PofjWWfhD/FeipybW a+fA== 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=Kc8rdkUB9j3735hJINyvhJim2oTO9p7cVkyk+x3P4ZY=; b=QclM+Dz6P/JFOstRLr7T/uqLiuhdlSWIFMiEWcl8FFCQ7sk6n4hyOQnGNDz+/iItqo hNUz8jPiA+upMRwGuFa9a6IwDNRFdgvF2he/crfTi1phTI9v+NrRZB6PLHI+wFg3pJEu COE57VZuvxPsKOsE/2WeqVXwYjH2wxiPlHgvMJB4oxek1+DoxYZbcax47oM94stbTLMW j/9ZAkxVSddsxl87iQikpgvsYP1EIKdIyUoZAPrMbtAvClSW91hlCpPQhSMyBFm2osRv nMlCiQIXVfRfIb0BT2xrsTZriauPu2oKKJy5TShKqtN14ggs2hFAXjqxDdR18LgrIi50 qrmA== X-Gm-Message-State: AOAM5334smcZe71S18gli4p/M8Z85vQ0BLB7++RAvAiGlrPEwVo+IWMS nahnvcEDED7t7ME+cmCWhcTtlJ/Vm3asIw== X-Received: by 2002:a17:90a:a008:: with SMTP id q8mr5286455pjp.211.1604511267066; Wed, 04 Nov 2020 09:34:27 -0800 (PST) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id 9sm3064571pfp.102.2020.11.04.09.34.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 09:34:26 -0800 (PST) Date: Wed, 4 Nov 2020 10:34:24 -0700 From: Mathieu Poirier To: Guennadi Liakhovetski Cc: ohad@wizery.com, bjorn.andersson@linaro.org, arnaud.pouliquen@st.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 8/8] rpmsg: Turn name service into a stand alone driver Message-ID: <20201104173424.GB2893396@xps15> References: <20201027175218.1033609-1-mathieu.poirier@linaro.org> <20201027175218.1033609-9-mathieu.poirier@linaro.org> <20201104140143.GA30197@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201104140143.GA30197@ubuntu> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 04, 2020 at 03:01:44PM +0100, Guennadi Liakhovetski wrote: > Hi Mathieu, Arnaud, > > I've tried the patch set with my VirtIO / vhost audio implementation, > in general it worked quite well, Very good - it would be nice if you could add your "Tested-by:" tags. > > On Tue, Oct 27, 2020 at 11:52:18AM -0600, Mathieu Poirier wrote: > > From: Arnaud Pouliquen > > > > Make the RPMSG name service announcement a stand alone driver so that it > > can be reused by other subsystems. It is also the first step in making the > > functionatlity transport independent, i.e that is not tied to virtIO. > > > > Co-developed-by: Mathieu Poirier > > Signed-off-by: Arnaud Pouliquen > > --- > > [snip] > > > diff --git a/include/linux/rpmsg_ns.h b/include/linux/rpmsg_ns.h > > index bb479f430080..42786bb759b5 100644 > > --- a/include/linux/rpmsg_ns.h > > +++ b/include/linux/rpmsg_ns.h > > @@ -39,4 +39,21 @@ enum rpmsg_ns_flags { > > /* Address 53 is reserved for advertising remote services */ > > #define RPMSG_NS_ADDR (53) > > > > +/** > > + * rpmsg_ns_register_device() - register name service device based on rpdev > > + * @rpdev: prepared rpdev to be used for creating endpoints > > + * > > + * This function wraps rpmsg_register_device() preparing the rpdev for use as > > + * basis for the rpmsg name service device. > > + */ > > +static inline int rpmsg_ns_register_device(struct rpmsg_device *rpdev) > > +{ > > + strcpy(rpdev->id.name, "rpmsg_ns"); > > you need to > > #include Of course yes - I'll simply add the header file. I plan on having another revision addressing your comments out by the end of the week or early next week. Thanks, Mathieu > > in this file for rpdev definition. Or you could leave this function in > rpmsg_ns.c, then it's enough to forward-declare struct rpdev here. > > Thanks > Guennadi > > > + rpdev->driver_override = "rpmsg_ns"; > > + rpdev->src = RPMSG_NS_ADDR; > > + rpdev->dst = RPMSG_NS_ADDR; > > + > > + return rpmsg_register_device(rpdev); > > +} > > + > > #endif > > -- > > 2.25.1 > >