From patchwork Thu Nov 5 22:50:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 11885431 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C7E3A174A for ; Thu, 5 Nov 2020 22:51:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9E584206CA for ; Thu, 5 Nov 2020 22:51:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hSedokPE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732297AbgKEWvV (ORCPT ); Thu, 5 Nov 2020 17:51:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732250AbgKEWua (ORCPT ); Thu, 5 Nov 2020 17:50:30 -0500 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 4A8D7C0613CF for ; Thu, 5 Nov 2020 14:50:30 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id 13so2528459pfy.4 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=LQeD2/uNdVnH0xAUS+R73TV50Nam764gQrOxFcI05AUzH+s9AP55QPxt2AIqMwXK5C sDZfDJ9xRZVPI5NnR33y19W8bBw9+T7B3/Dvzjcp/XlS6jNwlX65NyBXxe4+JgC38alm sTMgbMTOLvo2Red2EtLqeIWTCEwNCmLabiXCyLDflhA62RaARDxy+CBMgpCsWtM2DLEe oApj8YecaIm8U/88YLdJ0zY36CgbVQIkrL5o8IZWvHh243xb9J3QBCZPMTrAy7zkiIDh ocq6J5N+F5w7JEvP6HL0Nj5HtM6XvSu7BtXtRyFZbow/9squmOPa7RN5O03xwiD9c2+k OZ+Q== X-Gm-Message-State: AOAM533ngo96OINn409ksxJyZsrj7r2ybX6E3eR9w5Vrm6yNugdw81RP 1lwcvB/NtcPKNiaaIB2AKCw6aw== X-Google-Smtp-Source: ABdhPJwFdF36DAICwXal1BEoZqFCs+jClw7rlQTBQ6jQCFdGCF8TgLztW8qFU6394PKklhqZ2S6e2Q== 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 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@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