Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2839330pxb; Tue, 13 Apr 2021 11:22:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIuqPjmj9nBx0k/je2lJiik2SvDM4UUyuEHXBYNaXQwS3npgek2nLKJOsrUynugaD9Mk8P X-Received: by 2002:a17:906:170a:: with SMTP id c10mr22368568eje.493.1618338172380; Tue, 13 Apr 2021 11:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618338172; cv=none; d=google.com; s=arc-20160816; b=OarZOxJHtGi5B9GDkC+mROvOQfdOeNRq0YDzyXTY96M3vlh7eKr1ZJSmx/+nct/dF0 yyOJP2SAGmQ9FS4xBb6rgjrdUv29adn696jPVjUrjYN3kF3s2/ynRDDeXW9L3QJN2aZA r8p9Qm25hHh07BLzWrrrdX6nksbnsdWsOuJE8sB4LjdhM2TpTMFt/3OEMfjFevB7VPpR TQyKiEnOqotVU5+TnfX1KAJ8U+61z9HWmhlbcu2o0pSimSolT+X40wgcAKHYBc/PK3fK 4qtoLTBAeY2aYnVN6YcvGdqmw/7M1iSKSbqpmHAENGOSiH4B2QxdiIuPlRIbIO6klB9a 0eQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=MYBqS1kHklA7I7PbkLW0VJrCIpl2g8/kyjPjrVAuLD8=; b=IuR3O2hajSDLmRuHp35TUKAb/AtDLZSRkIM6EtmXNjev8v+WmPzmnaRzhPODKAe7Sf S4DQMWdf3jYQ7ErGd3zkgVp0dV9Oy3UgxhAzYf6GZU51ihmzl0DUqmRu7/NJr97YVkiC TaAI7utWKrFactGE9r7e3BjAYenzN3Ha+k0r2t0uKojLILRY2oZOXk9lrsUJrvTYdFRr aBU/E7402C1EIUq2v+BdDszHwoVELI0L426D4W5JfAw7bQ795R45iQRgzlu8XSa/MibR yT8xK680o7ajrrYXRRLa+fo9mQZq27Er3NXaMbnsGperC+zNtsF/jX/v5YlmJ67q5Kw+ 46ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=1DappFPl; 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=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lf11si5151672ejc.313.2021.04.13.11.22.24; Tue, 13 Apr 2021 11:22:52 -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=@foss.st.com header.s=selector1 header.b=1DappFPl; 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=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346084AbhDMNpp (ORCPT + 99 others); Tue, 13 Apr 2021 09:45:45 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:47844 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1346076AbhDMNpo (ORCPT ); Tue, 13 Apr 2021 09:45:44 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13DDhRDN031750; Tue, 13 Apr 2021 15:45:19 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=selector1; bh=MYBqS1kHklA7I7PbkLW0VJrCIpl2g8/kyjPjrVAuLD8=; b=1DappFPlpJ7sThdMdwIrvROpDT6SWL7DhgUWd7B2GAbz4XlVwJQg+qIL6QD2kBBg8a7h A5Zb5WnTJx8Tw8XUtEVdTVlkXH6fvuWCqB8U40M225ZlrO71sY2V7NPU3bxLkTOmp7IY VlIphPC21OD66IFNvlPTPu8paOn/OIcRGb9qK44LgXSRDKcHgmaSWRwEoYeDvh/NB1lf KxbO76sKfv2cGRwYmr6noc+m1oE/w0xGDZFXijS28td72qoRXJvsfl2JBVzoYcE0xioF sYpqK885awukJ9Ox3wj8Ty1qkOnjc50SwiAX3iEFe6pEJDKKAjqbmGfxEPac+43iW5KA 5A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 37vu4e52sf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Apr 2021 15:45:19 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E70F110002A; Tue, 13 Apr 2021 15:45:18 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D59A3226C5A; Tue, 13 Apr 2021 15:45:18 +0200 (CEST) Received: from localhost (10.75.127.51) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 13 Apr 2021 15:45:18 +0200 From: Arnaud Pouliquen To: Bjorn Andersson , Ohad Ben-Cohen , Mathieu Poirier CC: , , , Subject: [PATCH v2 0/7] Restructure the rpmsg char and introduce the rpmsg-raw channel Date: Tue, 13 Apr 2021 15:44:51 +0200 Message-ID: <20210413134458.17912-1-arnaud.pouliquen@foss.st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-13_07:2021-04-13,2021-04-13 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org update from V1 [1] - fix issues reported by Mathieu Poirier This series is the second step in the division of the series [2]: "Introducing a Generic IOCTL Interface for RPMsg Channel Management". The purpose of this patchset is to: - split the control code related to the control and the endpoint. - define the rpmsg-raw channel, associated with the rpmsg char device to allow it to be instantiated using a name service announcement. An important point to keep in mind for this patchset is that the concept of channel is associated with a default endpoint. To facilitate communication with the remote side, this default endpoint must have a fixed address. Consequently, for this series, I made a design choice to fix the endpoint on the "rpmsg-raw" channel probe, and not allow to create/destroy an endpoint on FS open/close. This is only applicable for channels probed by the rpmsg bus. The behavior, using the RPMSG_CREATE_EPT_IOCTL and RPMSG_DESTROY_EPT_IOCTL controls, is preserved. The next steps should be to correct this: Introduce the IOCTLs RPMSG_CREATE_DEV_IOCTL and RPMSG_DESTROY_DEV_IOCTL to instantiate the rpmsg devices [1]: https://patchwork.kernel.org/project/linux-remoteproc/list/?series=453805 [2]: https://patchwork.kernel.org/project/linux-remoteproc/list/?series=435523 Arnaud Pouliquen (7): rpmsg: char: Export eptdev create an destroy functions rpmsg: Move the rpmsg control device from rpmsg_char to rpmsg_ctrl rpmsg: Update rpmsg_chrdev_register_device function rpmsg: char: Introduce __rpmsg_chrdev_create_eptdev function rpmsg: char: Introduce a rpmsg driver for the rpmsg char device rpmsg: char: No dynamic endpoint management for the default one rpmsg: char: Return error if user tries to destroy a default endpoint. drivers/rpmsg/Kconfig | 9 ++ drivers/rpmsg/Makefile | 1 + drivers/rpmsg/qcom_glink_native.c | 2 +- drivers/rpmsg/qcom_smd.c | 2 +- drivers/rpmsg/rpmsg_char.c | 222 +++++++++------------------- drivers/rpmsg/rpmsg_char.h | 52 +++++++ drivers/rpmsg/rpmsg_ctrl.c | 231 ++++++++++++++++++++++++++++++ drivers/rpmsg/rpmsg_internal.h | 8 +- drivers/rpmsg/virtio_rpmsg_bus.c | 2 +- 9 files changed, 368 insertions(+), 161 deletions(-) create mode 100644 drivers/rpmsg/rpmsg_char.h create mode 100644 drivers/rpmsg/rpmsg_ctrl.c -- 2.17.1