Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3782073imm; Mon, 8 Oct 2018 09:24:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV62fyS+h29UV1xZ1lIEeMIMV4TXlItKQEznKa1WehTzLW4pabkA1Kl9d9oXFVA84ecEhSEkV X-Received: by 2002:a17:902:b949:: with SMTP id h9-v6mr24930414pls.34.1539015854516; Mon, 08 Oct 2018 09:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539015854; cv=none; d=google.com; s=arc-20160816; b=FME/ACpvHuZtwIuN9oA6/c9Y+b5nVMzkGj8FxMPxdc2gGhNjTJHuLalVrFMjdB0qX6 FQgEaJVGnGYqdoQyii5hUB9xBnS1JDsZU+J4q8S+LSljYR7NS8UPRDpRdwSJvsTE8THR c2KUaOI06rQybhI0ugLZabj6UGqE506mWmI03ZxNllGoJo4UxwA5DmLIABBhdKDTYenK 5ThUFaTl1FATXV+CxlMsftMDoKNbX+2x8CkKDdTahC/ESzG8W1gCrlJk+Gaxh+n1mAAm DBVxKxYV2/XSd8HrlkIbzHPJDtQWK7d/PekLLz0kaNt33aD1StlK3pMic550m2hccte5 iVCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Q+GE5EQyYPulWX4UbfdJGXuAQGzapTUeuq3TcN4JYZ8=; b=cJjo3VGXE1OUfBWZNcvsREcc0R9zty0ct41gUbYg7UvexG93Rxy7W8VGCkXnYKpm0Q md8Mbic3u+eflAZ8wDTCYahnFLWfzEOKgGFLC39xOxgRZD0IBrlDc4xZ108QyKAjnubB 0LdTGyeQXc5jE7NT+VA3Owxmfkiv+LeT/mHqJqmIveXDIuceqgIRiR9aVH1ls0L3n9XL VlS05HdCSS9qFBWSQeymytMsU4J9I5BRRrcFgRuWgNi9BB+rZoL1zQGbOnAFfk3nhRJc WGWzmh68KkVweYfOXPzLMUTJTDdm1IKMbLqJJwlaiOJptEq0cMtq3yWQmCmwSGdg7iWP SFaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NtDNN2hc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7-v6si17342239pgb.301.2018.10.08.09.23.59; Mon, 08 Oct 2018 09:24:14 -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; dkim=pass header.i=@linaro.org header.s=google header.b=NtDNN2hc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726613AbeJHXgA (ORCPT + 99 others); Mon, 8 Oct 2018 19:36:00 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42048 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbeJHXgA (ORCPT ); Mon, 8 Oct 2018 19:36:00 -0400 Received: by mail-pf1-f194.google.com with SMTP id f26-v6so8453433pfn.9 for ; Mon, 08 Oct 2018 09:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Q+GE5EQyYPulWX4UbfdJGXuAQGzapTUeuq3TcN4JYZ8=; b=NtDNN2hcUf0K0hleAMQekT6K0jEi6wkY3Bq09CY8rFAqrxBF5BTW26A+tB8y7aK7Bs Vow0VFyUE1BZFJ1lOkK//pgRC9QEG2WfY2NdNhGu7FGLMBkmFJvtt02g4gpOyfDH7h+d A/2W7HFWttBIKSO6lcODx5mbhNEZkRR7vvccA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Q+GE5EQyYPulWX4UbfdJGXuAQGzapTUeuq3TcN4JYZ8=; b=l3v7kY8YKB/2UujHjCcqydnSG6ZUuRiY3CwA6adetJlZx5Bez0ai6N5+pfNUiG9ezh G/KxX1MnzKqk4jujNOM92hBzt4NUO0NHUS0OUcJXr7NpwNHSZzTpA/0Ud/hujoSPX+Fg W6mX1JQCcFrNsMrw1ylfup7YuObGXlMP8rTjbZQ6eTsrZ69lJHOBiiMc6MNSd5GvPvQk Dc8+VblO66fPp6eq42lXKCwF20A0I5ICbZ7XIeM7ca6PTXHWR67D+tDVKvUcJiamy1TB 5SkBu8H2bVUiXeV26pNlEGy+Kpa11YUJnVI9v3WKQiAIKxDLT6gQAZ778MluzQDbrOep UyVw== X-Gm-Message-State: ABuFfogls5Dy22Kk/R3q5TfM5MzTNnsBpMkXzwkIYsRK6F0pzrACuU3H TJaLCTvSjyfu9j44Rfwl0jmCZw== X-Received: by 2002:a65:43cd:: with SMTP id n13-v6mr21681316pgp.185.1539015809334; Mon, 08 Oct 2018 09:23:29 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id o9-v6sm29192239pgn.30.2018.10.08.09.23.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Oct 2018 09:23:28 -0700 (PDT) Date: Mon, 8 Oct 2018 09:23:25 -0700 From: Bjorn Andersson To: Arnaud Pouliquen Cc: Arun Kumar Neelakantam , ohad@wizery.com, clew@codeaurora.org, sricharan@codeaurora.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V4 0/4] Add TIOCM Signals support for RPMSG char devices Message-ID: <20181008162325.GA1331@tuxbook-pro> References: <1538980699-21516-1-git-send-email-aneela@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 08 Oct 06:08 PDT 2018, Arnaud Pouliquen wrote: > 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...? > rpmsg_char does expose a rpmsg channel (be it virtio, smd or glink) to user space. This patch series add support for invoking TIOCMGET and TIOCMSET on these channels. In addition to adding the client side of this to rpmsg_char it provides this support for glink, but the same mechanism exists in smd - while this is not supported (today) by the virtio rpmsg. I'm uncertain of how we could implement this mechanism for virtio rpmsg, given that it as a transport doesn't really have a concept of channels/flows - but it's really useful to have! PS. rpmsg_set_signals() can be called from any rpmsg device to perform flow control of the communication channel. Regards, Bjorn > 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(-) > >