Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp848456pxb; Thu, 5 Nov 2020 14:54:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLjhpVgftENnRblkq0356XruIM8ZdUg3x7W5P6MqRNBSf9uch2rj1IbAC2FWci7vEIXVih X-Received: by 2002:aa7:dd49:: with SMTP id o9mr4925159edw.143.1604616854275; Thu, 05 Nov 2020 14:54:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604616854; cv=none; d=google.com; s=arc-20160816; b=ZfMA23IIHw8sXWaRhZJkOYqGsUHBZlx+GRKKvP2o0RKGgab5TA6zophIapHkDE5v+K mIi6F1V60jTBGMeY3duwsw0hkYFMWAtjFDUlcBSBfwkUEVnrRMEZ6F/KFP/mjkJZq/tr m2WB49dpTigX/4A/P5wOaB5JH3i7yKt6iAvFn8KSB7YLkon+xl7ook07DMiDkXUJFdn5 HyMIWVvsmNmJ+3G29v8xbVRGtj1QbZyrpjvlrbqEG3iXuYADfzKME7tvYzMzkGo6j2ve TpRpEh06lQdO+WodoxGbLHyVMYxAD2OXBXPkvDY0rcxnyo+tqQT0m2oRJhE17a6Xna0M kFwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ITyVVyrjBjMsKXUPqKEIMGOz26VLuknXtLKpEuuWCZ8=; b=k83FlPkKJNWr0c0Xq01+iCAQiAsXM8lsrmNsIrF5H745wydc1n1lPtAXebCxaZ2jOF SP+t8Hjffu/JMsaAXcUwld9jZUMCb+joKBw2ZVf3kPWKsOpuIIqasT3iQ4JzuJzPyaaX 5CogKOKagdSDZHtTxvsoWUzceGPUauAHnYbcbVgEMLG+S0znswPXDG1poj4lCRWqJGqy biRTnTh13/TvwiWDonoy9QGJwt1q7Ee+HwwORXtnVZ9UrVyxcd4k/p92EhHLz2onmGkb 2sbRzoVIdk20jy/gnCHeU+tGwAWvEfjCeeawznoX+IZA3/cS8jOuXs4SO8JMJ0xMdq46 58+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hSedokPE; 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 b16si2219651edn.23.2020.11.05.14.53.51; Thu, 05 Nov 2020 14:54:14 -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=hSedokPE; 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 S1732265AbgKEWvV (ORCPT + 99 others); Thu, 5 Nov 2020 17:51:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732293AbgKEWua (ORCPT ); Thu, 5 Nov 2020 17:50:30 -0500 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EF42C0613D2 for ; Thu, 5 Nov 2020 14:50:30 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id v12so2496303pfm.13 for ; Thu, 05 Nov 2020 14:50:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ITyVVyrjBjMsKXUPqKEIMGOz26VLuknXtLKpEuuWCZ8=; b=hSedokPEjbLaB+xoEyp9IKJX7h+IgmIn/2R9U/Uc8qtN0+33DCYTMId1JCLh0vtR4b ep/7qqGt5LoAVnlN/RnQvrFTF+koK3m1IGCphLW5QZKhI+kHzX6tbFYn4A7aP+zIlDr4 /3N+Qy2QrGEskI2piogI9XBDl5dmqNoHd9TnTvgkLqiUraNUWRqAthchNTw6wIRIsoZj k8iRptooi5Dk4/S3rsW2G0FxuUk4Yj2llR/+/wwEC/JJIbTcCDJkEuszrLYW8wRBuD9Z YAV6I9V0Eq3FhfBi8l5BNhL/WKDIpwtcRLdpcgZiihkoNa4JdFC0emSd3UiuHBNRyK8G UKcQ== 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:mime-version :content-transfer-encoding; bh=ITyVVyrjBjMsKXUPqKEIMGOz26VLuknXtLKpEuuWCZ8=; b=n9UTWuWPaSxbUdNBSvL4zkWbbBD376ux+z3uEamzGxhKFyPwmCU1+jIvmxydorIVN1 eXdtJf/wBU+DpFdrjjEp8hZbia8J3H/5MRRpZcZBz3/tNsFn2yM0PJ1eO6Mr/SVeV5a0 CrxZdDyBuFR357S3wIFyB/e41nSECRKqeBtlhQLhTGzx7uzd9+Hj//5ITzZ72QG4TA0p ReWeQIH6eSuure+nBosWbfRMSfUcQl0+Q8V986Rfp0Gs0J4+M5QvWHopu0qrZV9jg7DD XzjYouwvsxSNaPv/MEVEQUct6H+5/5pzMe5DLYOFF00Cgq1XdxEKroZ9OSLwlDA4LyPJ oPZw== X-Gm-Message-State: AOAM533h26qfHHiavsorhpt5JhOF6Rf8pSVxDImHzjRqecu8bB1OCA8W YHs8hA4gKNKmxN7Ixa9OmQuF8KUSVo7WuA== X-Received: by 2002:a17:90b:1058:: with SMTP id gq24mr4569893pjb.29.1604616629903; Thu, 05 Nov 2020 14:50:29 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id d145sm3854501pfd.136.2020.11.05.14.50.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 14:50:29 -0800 (PST) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org Cc: guennadi.liakhovetski@linux.intel.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/8] rpmsg: Make RPMSG name service modular Date: Thu, 5 Nov 2020 15:50:20 -0700 Message-Id: <20201105225028.3058818-1-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This revision addresses comments received from the previous revision, i.e V4. Please see details below. It starts by making the RPMSG protocol transport agnostic by moving the headers it uses to generic types and using those in the current implementation. From there it re-uses the work that Arnaud published[1] to make the name service modular. Tested on stm32mp157 with the RPMSG client sample application. Applies cleanly on v5.10-rc2. Thanks, Mathieu [1]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=338335 ------- New for V5: - Moved include/linux/rpms_ns.h to include/linux/rpmsg/ns.h - Moved include/linux/rpmsg_byteorder.h to include/linux/rpmsg/byteorder.h - Sorted header files alphabetically in ns.h - Added include for rpmsg.h in ns.h - Rebased to v5.10-rc2 Arnaud Pouliquen (4): rpmsg: virtio: Rename rpmsg_create_channel rpmsg: core: Add channel creation internal API rpmsg: virtio: Add rpmsg channel device ops rpmsg: Turn name service into a stand alone driver Mathieu Poirier (4): rpmsg: Introduce __rpmsg{16|32|64} types rpmsg: virtio: Move from virtio to rpmsg byte conversion rpmsg: Move structure rpmsg_ns_msg to header file rpmsg: Make rpmsg_{register|unregister}_device() public drivers/rpmsg/Kconfig | 8 ++ drivers/rpmsg/Makefile | 1 + drivers/rpmsg/rpmsg_core.c | 44 ++++++++ drivers/rpmsg/rpmsg_internal.h | 14 ++- drivers/rpmsg/rpmsg_ns.c | 108 ++++++++++++++++++ drivers/rpmsg/virtio_rpmsg_bus.c | 185 +++++++++++-------------------- include/linux/rpmsg.h | 63 ++++++++++- include/linux/rpmsg/byteorder.h | 67 +++++++++++ include/linux/rpmsg/ns.h | 60 ++++++++++ include/uapi/linux/rpmsg_types.h | 11 ++ 10 files changed, 434 insertions(+), 127 deletions(-) create mode 100644 drivers/rpmsg/rpmsg_ns.c create mode 100644 include/linux/rpmsg/byteorder.h create mode 100644 include/linux/rpmsg/ns.h create mode 100644 include/uapi/linux/rpmsg_types.h -- 2.25.1