Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3226373imm; Sun, 7 Oct 2018 23:40:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV61WQ4QgK9cjIhesuBeHoCO/04WxPZ0wVUsQr9T04yy+9lc+pURFkDTBPEkoN/8zVMw9t+Lr X-Received: by 2002:a63:1a1c:: with SMTP id a28-v6mr19499064pga.157.1538980859023; Sun, 07 Oct 2018 23:40:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538980858; cv=none; d=google.com; s=arc-20160816; b=dH4a/k0pxzYeucFvmu8ST+L/A3Pj18bZylQKpWZMdOsgcOskuvqwd4Y83w3MMN9UIu ToHDULlfwsz9N6QqCbFJF34kdSdChzbioPD39KWcFfwXc7/o57/2bDtmqUBg0wyZjmdx FS5g9g9VlxdnwcijK02UzQExQhE6WDMzh/d0biLlSllfJJ6ITwisvfzRoDxNmfmQ4sMz t54p8wKNQZoamHrOeHpyyaxiZVSTgVzgqiWvvv2JKUkYimfh6pynh1BDk3GAO4yI/DS4 ofv/KXRKNhLeMhklrytjGhte9w+GW7PO1Mna51SjM5XQ+H0RX/UmKJSCW7WEZO9/x+22 OJfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=08+ktKeYRlDHQA2PaTbn7yb2K/g2X31X8zraBdT8R+w=; b=RLbJiOSdk9Nv39aNTmS//b3jIzLaEdG/Lvxh3+kkd0ghN9QKartwvTV6wC03FEE00W Gii1kql8sRTlzrGtt5lbr0FxOufCo42lOD1CTYEmixhFnIS4RJYocVmmpBks/lNXjd4k VizzqLaqBys93OeJUjAcSK/KLWXsxLU/tuWQe6CUlYOdEgsBlX5nwgA2wnTXD5YsvKlV BQ64coNZxJsJ0opj+xlX4V0EN4Z+ynSV45VpkDgjA5OVdypvRKTTMPzdWXMMx3kdmqF6 gy6DpIRk4jAW3R/TIwfsR+3pvVKqUDrq53BNyLRIKQ3FgNBwFOkwIOMWtWDLetBJBBIk /dlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=PHocA1jc; dkim=pass header.i=@codeaurora.org header.s=default header.b=keovbENC; 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 b2-v6si13606834pgg.412.2018.10.07.23.40.43; Sun, 07 Oct 2018 23:40:58 -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=@codeaurora.org header.s=default header.b=PHocA1jc; dkim=pass header.i=@codeaurora.org header.s=default header.b=keovbENC; 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 S1726907AbeJHNtc (ORCPT + 99 others); Mon, 8 Oct 2018 09:49:32 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54276 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbeJHNtc (ORCPT ); Mon, 8 Oct 2018 09:49:32 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 45FC26079B; Mon, 8 Oct 2018 06:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538980763; bh=4M9FjBCbxNPwoY0Ir8hV9E7tX1aQzE+/fokXOZLsMHk=; h=From:To:Cc:Subject:Date:From; b=PHocA1jcN7m2prEgcwMIeGVxAy7TFXu7y0nZM6mkp6SccbQYSdvXCNkRZ3W05dEa6 oJMBChIOb+7jzA74lToh2SoyfmUy7+LSsn3rmJlxMLq01GRB5YZ9etzfgmtmXz7A01 PtTRqwzbtLFkIfCyjcBTiFKl0CAlFokWnmnv/ios= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from aneelaka-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aneela@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5C67560388; Mon, 8 Oct 2018 06:39:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538980762; bh=4M9FjBCbxNPwoY0Ir8hV9E7tX1aQzE+/fokXOZLsMHk=; h=From:To:Cc:Subject:Date:From; b=keovbENCO+KmQ4PuPNjTCe3eBWPm3v8q8O3umdZvzuPNakj1a/zpS0krU98nVQFkE 0Po6h9T+U2bTXD8h3CMBfBe0aU6KsAHBVRkexsY8x7i8ata7+uoinM3CSBiZBUuoYY v7rGUlgv/prcVwECYMlrxn0UAy4vB8A5WFi18cSA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5C67560388 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=aneela@codeaurora.org From: Arun Kumar Neelakantam To: ohad@wizery.com, bjorn.andersson@linaro.org, clew@codeaurora.org, sricharan@codeaurora.org Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Arun Kumar Neelakantam Subject: [PATCH V4 0/4] Add TIOCM Signals support for RPMSG char devices Date: Mon, 8 Oct 2018 12:08:14 +0530 Message-Id: <1538980699-21516-1-git-send-email-aneela@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project