Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp332777pxu; Wed, 14 Oct 2020 02:31:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6pgO271QQqrD9uBwzS2u3MKkPXqtIFsvQVqZ6yFKKZe7PKgWrWP+RRrAntxRffWhuGXlE X-Received: by 2002:aa7:dcc2:: with SMTP id w2mr4214564edu.121.1602667919559; Wed, 14 Oct 2020 02:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602667919; cv=none; d=google.com; s=arc-20160816; b=XxKhLU4boBEVGJsdpQLDDiRM8aoQqJ2ZymMH+JoJbAR7romMrCSwAKIbXmvkc+2EAj uFstmUl6ROQ36gzfUbS5/1iBjeTPKNoFy1+SHyP6UYnsdClVuMT0ajcNw4BwomTE5I9G 7ef9izOOop2WEB0yEwiW1YmBhGr+Ixe2qBGvy0oYCz7x0UKNtGt46AQqanbyrXXb9PS+ UUmqnbVp8Ja6JwVf22f3jQXs3WPQfQs7/pEyhDNYXBg0S0vSjTYtxgZWEu1E8J4GoWqO g4sYwxrRiS02DyXfK5kv+xNHuczzB2JzZEyrSFhZLWv7P/ZiPIxnOhYxQ1aP+WoCyl/b tt0Q== 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=E/j9uq6f/xFO4LJp1BRi8dZQn9ht1b53g1oDJg2kWTw=; b=vLvmdZHOPY7oGJynO7/ViaCsQz4mv7BP5+f/Gs1KcGmSWEFHdh8NJ3i9QyDjcxy8yC p2pDu2wJt8P9SsJCkDRN1RqAR6a9vDG4ZhtBJbPWFJvUU4HXHDZlA00n+LZQ8IvbG5/I pUeFU1jU4H40VgUv/1iTfom3IVzEhI0BYyzCZAeKNIVyImY6gstW2WMcyIij/javYidP NV+G96BpnHAUqjZIHZgFj1xn6KBa3OOcETUm8xsfFJBCjEuiVMkyfw4TN9KpFOyuBkJS kPjRwXTpaD1YjZjgpRUet/PIRyG3ZVWVcFJjW0KiBO6IC5+0QF+powD5KWUMXHM+kHaf 6/lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="h2rK0/FF"; 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 t1si1857069edv.134.2020.10.14.02.31.37; Wed, 14 Oct 2020 02:31:59 -0700 (PDT) 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="h2rK0/FF"; 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 S1727452AbgJNJaa (ORCPT + 99 others); Wed, 14 Oct 2020 05:30:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729406AbgJNJTj (ORCPT ); Wed, 14 Oct 2020 05:19:39 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7C50C08EA6C for ; Tue, 13 Oct 2020 16:25:21 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id b19so774155pld.0 for ; Tue, 13 Oct 2020 16:25:21 -0700 (PDT) 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=E/j9uq6f/xFO4LJp1BRi8dZQn9ht1b53g1oDJg2kWTw=; b=h2rK0/FFMVeOpvDVT97kysRBfjSH7eTLbIW26t+7Xg5dBg4XBaBYjc0hQv+mputbfP tt8PECXhxw82ijir68HsLk1YmB8AtZYty9Tel/13uJwBodg6x9InGlN4Zg+lp76QUJom /10MGaLUxzXBhDHqvPo3t7Yepj1KuHtSsOhS+y9R25YZpost3vsi5xZ3Okr/diybTDS5 mQ8hOe39wwTo8F6msu9Lq/1VXEvSqR6ThFEq/RK/p/3ugyi7d1h1O+1CtvWJ1ec3TiFy /iRmrWmy+DmDj4EBEc7QlbaHth/Xv/eXUa14kFlYwH7DQybk4dqUvjLYk+g+nkzBA/2b gHXg== 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=E/j9uq6f/xFO4LJp1BRi8dZQn9ht1b53g1oDJg2kWTw=; b=dW2A5CwFx0vnps0GUiK1hHwco3IvtqVQZyso5x0c9MHHmTw7caBOaDTulcM2xZY5pe 2DDbF3Exxb09VZFntLwemWI7aBNMF/0IPrr9Xm3EehHUVE5TtWApaJY3OJ0L05h6UIZ3 SFzsBC0Zv5XqY9v3AYFKXZ0ykpU5sANi/t6b6H+yNiSFWYWgQlhp3jTiTkVKVtyerRk6 5EjAY6yUSQAkR3fdhcA388+6Gp76FO5eraePfd06BvsiasOKjZKKK+8Eoqhig9odzK27 plTacBOdVTLX9vZOxh+tnHvqKAnyqhzYo9B4/kjacdj4dME3tLPlq/5MgtKiQkwxT66G DFQg== X-Gm-Message-State: AOAM530h1e476eoEjDBVabEAYjOHOT8sk2nozP8Z7F1aP7I4HbtwEuUV FfivNrg/++I7ctJsfzSzkLqcsQ== X-Received: by 2002:a17:90a:1149:: with SMTP id d9mr691859pje.227.1602631521380; Tue, 13 Oct 2020 16:25:21 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id b8sm791871pfr.159.2020.10.13.16.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 16:25:20 -0700 (PDT) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org Cc: guennadi.liakhovetski@linux.intel.com, arnaud.pouliquen@st.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/9] rpmsg: Make RPMSG name service modular Date: Tue, 13 Oct 2020 17:25:10 -0600 Message-Id: <20201013232519.1367542-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 Good afternoon, This set 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.9. Thanks, Mathieu [1]. https://patchwork.kernel.org/project/linux-remoteproc/list/?series=338335 ------ New for V2: - Created new RPMSG types (Guennadi). - Re-worked byte conversion functions(Guennadi). - Added a single ->is_little_endian() operation (Arnaud). - Fixed byte conversion before making name service modular. 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 (5): rpmsg: Move rpmsg_endpoint_ops to rpmsg.h rpmsg: Introduce __rpmsg{16|32|64} types rpmsg: virtio: Move from virtio to rpmsg byte conversion rpmsg: Move rpmsg_hr and 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 | 27 +--- drivers/rpmsg/rpmsg_ns.c | 110 +++++++++++++++++ drivers/rpmsg/virtio_rpmsg_bus.c | 206 ++++++++++--------------------- include/linux/rpmsg.h | 93 ++++++++++++-- include/linux/rpmsg_byteorder.h | 67 ++++++++++ include/linux/rpmsg_ns.h | 79 ++++++++++++ include/uapi/linux/rpmsg.h | 3 + include/uapi/linux/rpmsg_types.h | 11 ++ 11 files changed, 481 insertions(+), 168 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