From patchwork Mon Oct 8 06:38:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Kumar Neelakantam X-Patchwork-Id: 10630087 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C5F7115E8 for ; Mon, 8 Oct 2018 06:39:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5CBA28D05 for ; Mon, 8 Oct 2018 06:39:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A829C28D19; Mon, 8 Oct 2018 06:39:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5566528D05 for ; Mon, 8 Oct 2018 06:39:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726020AbeJHNtc (ORCPT ); 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= 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-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-)