Received: by 2002:a05:6a10:6754:0:0:0:0 with SMTP id w20csp5385075pxu; Wed, 4 Nov 2020 12:38:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdTsdOpBr/0z4aJ5PbOsXSDwp63VwihEuQVl3s0ioNv4/adQN8iqvJ6osjZsRXTdHVU8Zq X-Received: by 2002:a05:6402:142a:: with SMTP id c10mr29391627edx.261.1604522321736; Wed, 04 Nov 2020 12:38:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604522321; cv=none; d=google.com; s=arc-20160816; b=l5Rjw8PS+0YNHOQFlOieorzBRoFnz+qx35eOC6p4lxcwTW+GhVKjpVnkYlBmrBFVtW awb0jJICjzaoW7M1pWG9Q51L01J3NWF+DKEKF3J15rk64yjT0cPpzee3KpR7TyACZw0s QbTYkio8MZbCXqOKCajDf6geu+WUks2gnhE0xWOkxeW+09xSBG2Tr7haaQhBWOouEurh ITQCHjenuKu0zAFnXcIhK60Nl3Z1gAZvFGton0L5yzbk1/axkJgq+MOsbxTYEB45fnjA Z5bGF4RBdAJhqzKsDl5sKVxUBYaKE62LE9sBNizP0EvEigmFxvqJJTLyMas0bU/eB8ds aLWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=rmYWdksLdVg7/6hwaUeUnMkjuNdcQS/FF1vniVe/70w=; b=v1OjLb2YEzvDNHJZruaM4ImVxIzxKxhpHwjFmTNNbvII/Vq6pgthDDHN/Nm9FOtrHj 7mXrUNp/eNPBXxWtPg90miFmywRPcEyoe4iY1ty+dOf+nqVhylQz2JvecEq6SU3gvUz3 7kdHcA3FzcHykwfonigZn7kjhjRhpdVjOvB2HzZxxvHKf022vhNRmxO6FrkUH6E0JyKn ZgSXdceEfHbQL3+fGTAt/7+cQCC4jQ15BMF6pYQUNUF+bY5t9zHqQA1Hp2N0LafohXEI +RfVhc7ICgajz1pKeZ2w8J0T8EAh/UGlVuKlVEiGY0TSqB+v9apJvjUnKONwok1TjTcc 5jZg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si2288466eja.14.2020.11.04.12.38.18; Wed, 04 Nov 2020 12:38:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731218AbgKDSjX (ORCPT + 99 others); Wed, 4 Nov 2020 13:39:23 -0500 Received: from mga09.intel.com ([134.134.136.24]:27943 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730821AbgKDSjW (ORCPT ); Wed, 4 Nov 2020 13:39:22 -0500 IronPort-SDR: wjVPy/YGzPxFhulFWjpLBYVRkFmUgbMfJySLb9ggRd3WFysnU7FY+EcUUilmLbLQpu/JU7ZSBv FTv4ZuyGQtHQ== X-IronPort-AV: E=McAfee;i="6000,8403,9795"; a="169412349" X-IronPort-AV: E=Sophos;i="5.77,451,1596524400"; d="scan'208";a="169412349" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 10:39:19 -0800 IronPort-SDR: TRz0ZAf1iIHhuMzYgUtUvFiTygJH/RMSNOFivvgfiA1YLcp106Gd+M+uEiDKzhK9ghV2X94iV0 akU6sXa02c3Q== X-IronPort-AV: E=Sophos;i="5.77,451,1596524400"; d="scan'208";a="539016839" Received: from gliakhov-mobl2.ger.corp.intel.com (HELO ubuntu) ([10.249.45.232]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2020 10:39:17 -0800 Date: Wed, 4 Nov 2020 19:39:04 +0100 From: Guennadi Liakhovetski To: Mathieu Poirier 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: <20201104183904.GA31822@ubuntu> References: <20201027175218.1033609-1-mathieu.poirier@linaro.org> <20201027175218.1033609-9-mathieu.poirier@linaro.org> <20201104140143.GA30197@ubuntu> <20201104173424.GB2893396@xps15> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201104173424.GB2893396@xps15> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 04, 2020 at 10:34:24AM -0700, Mathieu Poirier wrote: > 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. Sure, I guess it would be better if I reply with both "Tested-by" and "Reviewed-by" to your next version? Thanks Guennadi > > 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 > > >