Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2476453imm; Wed, 3 Oct 2018 04:36:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Gl6LdetqfMdUBAN7+fMe8YYfU+InguK0OoefpBAxJdmT0NvLtwyyEYwlRX/Nrl0HQTRia X-Received: by 2002:a17:902:7244:: with SMTP id c4-v6mr1177111pll.339.1538566608417; Wed, 03 Oct 2018 04:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538566608; cv=none; d=google.com; s=arc-20160816; b=Vsu1wVsgLAgDzNNWkxC09c1Pv0xDrz52s3Aj8SuFFoma/DOW/netRMO/bLvbaVgOKh YWo9AbAZT+vlTdoxVTe4R2S5IJwogkTEk9VHFtq4uRaJDxn26ldabLnHdCErgu+oIyvn MZ/aYl7e89oII/mImDe1OefOBFWcYoiUqME7Ru8nlXyY8UwxzvO0hT9XzHZANVCL/8DD QqcUu1MVf0DatOv8WeIgufDKF9RL0oONlHsBv/C4a6XQb06Kc3EQbhZjOL68adjMvahv uVqVnq9UaN6T+1NRaaZwrR0P3e2kU79TxWyCfOUgB/CFq9k3PUEgQaT+/fDA1ZI83z4L 3PEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature; bh=18UFMrTEUv13iER2glj7On+mRQN6sSzPhOGFeh7C44Q=; b=E8wN4ZGAlyTIdJpMIrI/l3rV7A1LSgKpKaqeJjR5BtHeq6ymKPhEZOPqLEwY5R1eFf 4trsREYb3pK5X/ckOuOJZiYdZzGXxU8eIRVimOIHjl4JgLSlS4O6CAYJ/Dg43Yut6Y58 Kkh+3RQ9gJEeru1RIESCWT9/4/i4FJS2ZAZC08uISMyk406231FTiAncVc15FyR8scgy eKMeZI1I0qjtScoHmRiAR1s4w2M2JHC6JTXSEYcslC4ut2gkgc+qR8day29a8Pgtakc/ T0JiiuwynhXif/DjPee55ckrlI22RF5ux6MT1X9z8eVaOz5akqrv97djBlM0AX8Qdt4T H5xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=X7qjqVMr; dkim=pass header.i=@codeaurora.org header.s=default header.b=X7qjqVMr; 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 y15-v6si1270002plp.371.2018.10.03.04.36.33; Wed, 03 Oct 2018 04:36:48 -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=X7qjqVMr; dkim=pass header.i=@codeaurora.org header.s=default header.b=X7qjqVMr; 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 S1727109AbeJCSXC (ORCPT + 99 others); Wed, 3 Oct 2018 14:23:02 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:55232 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726617AbeJCSXB (ORCPT ); Wed, 3 Oct 2018 14:23:01 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 92F3A60C64; Wed, 3 Oct 2018 11:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538566501; bh=nUgIgU3sGUyVGun7lBeMAs0TsBKW0lT54wD28lwzNvk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X7qjqVMrhWVTLy/dFU2oY7T1KbwUuhYwP2UBkOAaWDpK2c6WZ4nNFped3NmUsI5Kz QYsPidu2ZyzLLFReDP/BW0L0uEpCqLvhSzWaGDo72WaN/jEuguwam5sYI36hM7W4cU 17K4NgXgmI1ZoSaIFpzDjwTSEOhlFjYXG7SDPaCs= 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 5EAD8607BD; Wed, 3 Oct 2018 11:34:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538566501; bh=nUgIgU3sGUyVGun7lBeMAs0TsBKW0lT54wD28lwzNvk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X7qjqVMrhWVTLy/dFU2oY7T1KbwUuhYwP2UBkOAaWDpK2c6WZ4nNFped3NmUsI5Kz QYsPidu2ZyzLLFReDP/BW0L0uEpCqLvhSzWaGDo72WaN/jEuguwam5sYI36hM7W4cU 17K4NgXgmI1ZoSaIFpzDjwTSEOhlFjYXG7SDPaCs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5EAD8607BD 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 2/5] rpmsg: Add signal callback to rpmsg char device Date: Wed, 3 Oct 2018 17:04:20 +0530 Message-Id: <1538566463-24627-3-git-send-email-aneela@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538566463-24627-1-git-send-email-aneela@codeaurora.org> References: <1538566463-24627-1-git-send-email-aneela@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Register a callback to get the signal notifications from rpmsg. Signed-off-by: Arun Kumar Neelakantam --- drivers/rpmsg/rpmsg_char.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c index a76b963..86003d5 100644 --- a/drivers/rpmsg/rpmsg_char.c +++ b/drivers/rpmsg/rpmsg_char.c @@ -5,6 +5,7 @@ * Copyright (c) 2012, PetaLogix * Copyright (c) 2011, Texas Instruments, Inc. * Copyright (c) 2011, Google, Inc. + * Copyright (c) 2018, The Linux Foundation. * * Based on rpmsg performance statistics driver by Michal Simek, which in turn * was based on TI & Google OMX rpmsg driver. @@ -120,6 +121,12 @@ static int rpmsg_ept_cb(struct rpmsg_device *rpdev, void *buf, int len, return 0; } +static int rpmsg_sigs_cb(struct rpmsg_device *rpdev, void *priv, + u32 old, u32 new) +{ + return 0; +} + static int rpmsg_eptdev_open(struct inode *inode, struct file *filp) { struct rpmsg_eptdev *eptdev = cdev_to_eptdev(inode->i_cdev); @@ -136,6 +143,7 @@ static int rpmsg_eptdev_open(struct inode *inode, struct file *filp) return -EINVAL; } + ept->sig_cb = rpmsg_sigs_cb; eptdev->ept = ept; filp->private_data = eptdev; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project