Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp784133pxj; Tue, 18 May 2021 14:09:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFhRJMYe8Z2/CvlOqDiJflgyoxadGV5dhU23bijNW0usJ7T96cbgO35xTrzMx1ATUE7mAu X-Received: by 2002:a17:906:9bd6:: with SMTP id de22mr7970566ejc.382.1621372185735; Tue, 18 May 2021 14:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621372185; cv=none; d=google.com; s=arc-20160816; b=HW/x1RQdZkzzlQLBaObh+YKV7WIo8r8J3RIs5Oljj9teiXhS0pEh2IFBv8z+Yqjn20 7WKscQLWGo4D8G3eJqAlDpwEmIfBRiVn5grlJpgMfZua1sRoIj68m8lVZBASfLkyoOh7 b/4Px6a3sErLPj/qbkdb3Xz9KPbaGXxhXxTCjUjPpM++HnwVrq04ftdFtxyl467mJrFs vtB3KZwooCm0fr1I1L/uoFsVZycpVzIiuohv2KGbGAqInK1Bppzv9HFgN2JlTPjxeDRw 6BXh+PjyCtzrJS+icf2NznegRoWxXd/otI80mBZIAtpzdLGIs1CQPNY9DExD1BANgDhN IxOg== 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=3YrjTadT9YWcH6wHOszJ5jLmN9ANFDbrODygbqL4WIg=; b=GWBpnuD8u91IuPungFtU8ErXtE38DJD4Z+0Fuordzwyuq0xEuW3s6gFdPo0x1Y44xm 8kTWp7FCVhdIIGN60UEpOxVbRpF2Y1NNaykxFwk/JIrjGbUqVlXfDDqestQcBT7o9yha aYC5nsU//LHODih5SMvtdiWTE69H1PDqfpFOR5yX1y/VZ0F13w6g9gnyzy8X0YfhHzDD LzIcRFkIZUchTA4uxV2S2gxT2s8fRhhFDlHXGL6oDd/8KrQh3vifUlqaRJ0URRhnVYub CWAoZTw3HDbzjzg6wSbPtYtxOOTvuPM7/ZDfH17dQ4C+gKkafgtMV8AhsxlmScjUYLuL m+Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=8SNQh+6e; 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 j14si6249306edp.54.2021.05.18.14.08.59; Tue, 18 May 2021 14:09:45 -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=8SNQh+6e; 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 S241681AbhEQRRR (ORCPT + 99 others); Mon, 17 May 2021 13:17:17 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:39234 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236155AbhEQRRL (ORCPT ); Mon, 17 May 2021 13:17:11 -0400 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 14HHFrua027859; Mon, 17 May 2021 19:15:53 +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=3YrjTadT9YWcH6wHOszJ5jLmN9ANFDbrODygbqL4WIg=; b=8SNQh+6e3f4sn2BSwQrlNKujkEIfxUjs0EY8f4dEU4IV6DM1fl6UFo/i2H4V12mEeAIR qzrJcipdThuq/pP1jQ8AzxHR8ad3bbR8hQZrZc5DvFajILrMmp/L62s2C1lPvVNk+G6B R6nSZHCEZAlGaHcxdbVWzg9ZKo/uklxEgqemSBhvo00lZ7iLIBpag2hbZXNWR95nXtES pVuwCGzWclx3fCKMBxq2tk51tvLBbuqMpFllVj0f12NRI6u9koNTKXAjj8uNR5CzhJw2 lP5PUDA5COR7ZCDbwYQfQ3KpdONxBlNHg6+TwXX/2V/TmVMoSaQntJjT3rtCjRa28eCw 6A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 38k5dq63xc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 May 2021 19:15:53 +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 9B7DB10002A; Mon, 17 May 2021 19:15:42 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8CC402237C3; Mon, 17 May 2021 19:15:42 +0200 (CEST) Received: from localhost (10.75.127.50) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 17 May 2021 19:15:42 +0200 From: Arnaud Pouliquen To: Bjorn Andersson , Ohad Ben-Cohen , Mathieu Poirier CC: , , , Subject: [PATCH v4 0/4] Restructure the rpmsg char to decorrelate the control part. Date: Mon, 17 May 2021 19:15:27 +0200 Message-ID: <20210517171531.21205-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.50] 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-05-17_08:2021-05-17,2021-05-17 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Main update from V3 [1] - suppress patches related to the creation of a rpmsg device for the rpmsg_chdev. this will be sent in a sperated patchset. - add patch to clean-up useless include of rpmsg_internal.h file[3]. This series can be applied on git/andersson/remoteproc.git for-next branch (dc0e14fa833b). Series description: 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 code related to the control and the endpoint. The code related to the control part is moved in the rpmsg_ctrl.c. This split is an intermediate step to extend the controls to allow user applications to instantiate rpmsg devices. Notice that this patchset does not modify the behavior for using the RPMSG_CREATE_EPT_IOCTL and RPMSG_DESTROY_EPT_IOCTL controls. The next step should be to add the capability to: - instantiate rpmsg_chrdev from the remote side (NS announcement), - instantiate rpmsg_chrdev from local user application by introducing the IOCTLs RPMSG_CREATE_DEV_IOCTL and RPMSG_DESTROY_DEV_IOCTL to instantiate the rpmsg devices, - send a NS announcement to the remote side on rpmsg_chrdev local instantiation. [1]: https://patchwork.kernel.org/project/linux-remoteproc/list/?series=475217 [2]: https://patchwork.kernel.org/project/linux-remoteproc/list/?series=435523 [3]: https://patchwork.kernel.org/project/linux-remoteproc/patch/20210429080639.6379-1-arnaud.pouliquen@foss.st.com/ Arnaud Pouliquen (4): rpmsg: char: Remove useless include 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 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 | 184 ++----------------------- drivers/rpmsg/rpmsg_char.h | 51 +++++++ drivers/rpmsg/rpmsg_ctrl.c | 215 ++++++++++++++++++++++++++++++ drivers/rpmsg/rpmsg_internal.h | 8 +- drivers/rpmsg/virtio_rpmsg_bus.c | 2 +- 9 files changed, 293 insertions(+), 181 deletions(-) create mode 100644 drivers/rpmsg/rpmsg_char.h create mode 100644 drivers/rpmsg/rpmsg_ctrl.c -- 2.17.1