Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3563752imm; Mon, 8 Oct 2018 06:10:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV6210OD/jl/Wbx+au8mzxFPtURX9vaFbVaXlMASnXJ/LMigbtS0iBQe9YJHTg3jE4T8IH2dc X-Received: by 2002:a17:902:e111:: with SMTP id cc17-v6mr23937158plb.175.1539004220068; Mon, 08 Oct 2018 06:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539004220; cv=none; d=google.com; s=arc-20160816; b=Q7SXV0B+wQQ3AcqhmgWFKM6SfJlo/7kTcKEU4nEFlXjNPkTCtwj7MXQwxzMme7R0XG kkZ0QkqDfZk8hcL96xNe7Kp36PUK7zETjW1dhzW3WNw4dzxRGpfq3pcLJyE+gecWyuuE s//VIvtPPmSCJEFfwbOj11DnQbx+TGUtAIn16QP5lQCYGR5N9EDcgDW3fJDUPeWVfUff 6M2ICGnpJzOfSmYAWMMDPpfzmjLPI0NovFhqXUnkOrWvNx9ZZkhJzMRqnUS1IhimlLq3 w92X1vQGfbD86oq3GNbRmUxi+UrSewGYrglCcJndHPAEK/lyEaKkyimZgJySoq7VAKJA QAmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=htIcau9mWqlI7SpzA5dAb9zeecgXhlUAzWsE1SpNn9Y=; b=omm8qsplkuArC9xoefg02vxahaulRT3FiNlG11l6SJFasokZexbnrCDGo11LDo4NIW f75DMeXpJ+EYl4kEerF+/9ZYodnIU6VJGzY40um8O9Hcrc4FoDE89CNf9a8JvqSnEVAV IL5te5DppBpvwjZpuOIZzrRUJv2Hd8KhFq2Ds3gFCZZMEF98n20oGLXbPF9/MF+/dpVT IQm49g8o5tTF5DDU/GWKYl5fi/ika3odjGTL9oXopCR135MiGDp3IPWM1uPP0dv8uONp yDYqgSVmzTB98rDSrTfCR0nfRGQTGiJM71hs1pH6qFma817yhfHsH3mLw8REFLACh6OI l8ZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w128-v6si16591185pgb.284.2018.10.08.06.10.04; Mon, 08 Oct 2018 06:10:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726195AbeJHUUV (ORCPT + 99 others); Mon, 8 Oct 2018 16:20:21 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:48890 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725914AbeJHUUV (ORCPT ); Mon, 8 Oct 2018 16:20:21 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w98D3lZm010106; Mon, 8 Oct 2018 15:08:37 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2mxj65bb48-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 08 Oct 2018 15:08:37 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7DEE534; Mon, 8 Oct 2018 13:08:36 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0FCA3517F; Mon, 8 Oct 2018 13:08:36 +0000 (GMT) Received: from [10.201.23.162] (10.75.127.44) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 8 Oct 2018 15:08:35 +0200 Subject: Re: [PATCH V4 0/4] Add TIOCM Signals support for RPMSG char devices To: Arun Kumar Neelakantam , , , , CC: , References: <1538980699-21516-1-git-send-email-aneela@codeaurora.org> From: Arnaud Pouliquen Openpgp: preference=signencrypt Autocrypt: addr=arnaud.pouliquen@st.com; prefer-encrypt=mutual; keydata= xsFNBFZu+HIBEAC/bt4pnj18oKkUw40q1IXSPeDFOuuznWgFbjFS6Mrb8axwtnxeYicv0WAL rWhlhQ6W2TfKDJtkDygkfaZw7Nlsj57zXrzjVXuy4Vkezxtg7kvSLYItQAE8YFSOrBTL58Yd d5cAFz/9WbWGRf0o9MxFavvGQ9zkfHVd+Ytw6dJNP4DUys9260BoxKZZMaevxobh5Hnram6M gVBYGMuJf5tmkXD/FhxjWEZ5q8pCfqZTlN9IZn7S8d0tyFL7+nkeYldA2DdVplfXXieEEURQ aBjcZ7ZTrzu1X/1RrH1tIQE7dclxk5pr2xY8osNePmxSoi+4DJzpZeQ32U4wAyZ8Hs0i50rS VxZuT2xW7tlNcw147w+kR9+xugXrECo0v1uX7/ysgFnZ/YasN8E+osM2sfa7OYUloVX5KeUK yT58KAVkjUfo0OdtSmGkEkILWQLACFEFVJPz7/I8PisoqzLS4Jb8aXbrwgIg7d4NDgW2FddV X9jd1odJK5N68SZqRF+I8ndttRGK0o7NZHH4hxJg9jvyEELdgQAmjR9Vf0eZGNfowLCnVcLq s+8q3nQ1RrW5cRBgB8YT2kC8wwY5as8fhfp4846pe2b8Akh0+Vba5pXaTvtmdOMRrcS7CtF6 Ogf9zKAxPZxTp0qGUOLE3PmSc3P3FQ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fmBWBgK 36tfTyducLyZtGB3mbJYfWeI7aiFgYsd5ehov6OIBlOz5iOshd97+wbbmziYEp6jWMIMX+Em zqSvS5ETZydayO5JBbw7fFBd1nGVYk1WL6Ll72g+iEnqgIckMtxey1TgfT7GhPkR7hl54ZAe 8mOik8I/F6EW8XyQAA2P Message-ID: Date: Mon, 8 Oct 2018 15:08:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1538980699-21516-1-git-send-email-aneela@codeaurora.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG1NODE3.st.com (10.75.127.3) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-08_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arun, Bjorn, On 10/08/2018 08:38 AM, Arun Kumar Neelakantam wrote: > Glink transport support signals to exchange state notification between > local and remote side clients. Adding support to send/receive the signal > command and notify the clients through callback and POLL notification. Please correct me if i'm wrong...My concern here is that this patchset implements a rpmsg service in the rpmsg core. I would separate this from the rpmsg core, as this is not part of the rpmsg protocol but seems linked to the serial protocol itself. Could it be implemented in rpmsg_char, using a dedicated channel...? Regards Arnaud > > Changes since v1: > - Split the patches as per functional areas like core, char, glink > - Add set, clear mask for TIOCMSET > - Merge the char signal callback and POLLPRI patches > > Changes since v2: > - Modify the rpmsg_get_signals function prototype > > Changes since v3: > - Correct the TICOMGET case handling as per new rpmsg_get_signals prototype > - Update the rpmsg_get_signals function header > > Arun Kumar Neelakantam (4): > rpmsg: core: Add signal API support > rpmsg: glink: Add support to handle signals command > rpmsg: char: Add TIOCMGET/TIOCMSET ioctl support > rpmsg: char: Add signal callback and POLLPRI support > > drivers/rpmsg/qcom_glink_native.c | 126 ++++++++++++++++++++++++++++++++++++++ > drivers/rpmsg/rpmsg_char.c | 74 +++++++++++++++++++++- > drivers/rpmsg/rpmsg_core.c | 41 +++++++++++++ > drivers/rpmsg/rpmsg_internal.h | 5 ++ > include/linux/rpmsg.h | 26 ++++++++ > 5 files changed, 269 insertions(+), 3 deletions(-) >