From patchwork Mon Dec 18 22:02:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Lew X-Patchwork-Id: 10121975 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1B0CC60327 for ; Mon, 18 Dec 2017 22:04:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D00426CFC for ; Mon, 18 Dec 2017 22:04:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 021ED28B44; Mon, 18 Dec 2017 22:04:04 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 AD2E526CFC for ; Mon, 18 Dec 2017 22:04:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965675AbdLRWDV (ORCPT ); Mon, 18 Dec 2017 17:03:21 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:51858 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937859AbdLRWC0 (ORCPT ); Mon, 18 Dec 2017 17:02:26 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2785B60710; Mon, 18 Dec 2017 22:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1513634546; bh=pWkaKOhJoOWi/sRwvW+9fpP+4Shr8K2GecEva4c/nn8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LtRMdXc5UED8YAhask3WS1V11sFnyzeKwCMm865Dt/20zDtpT/RKgIH4bMNDg+J46 lVgBZqYW7FL1iuri5stL0nJ4qNQhZlvKY262qtguMZ1GSjR8LyHEBI+GJHBbwhagL9 t0wv/chj5ZMtigLRHSh7bi7Yri9XFEgcQxtefa78= Received: from clew-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: clew@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6AD4E60724; Mon, 18 Dec 2017 22:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1513634545; bh=pWkaKOhJoOWi/sRwvW+9fpP+4Shr8K2GecEva4c/nn8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hFc/Q9J1kpZExAg5f2Qhsb4PoSV79X8Qv5Wq++P9AaHDcBjroMUCZBbpXvG9tpPHe Lc+6OcfafGP79OSJom8vyy7+Iw0Tv3MPk5k0OFn9IPyupCD95ns2lWWx/nGPUxPC8O M2qK0ZkYxvRo4ybpD7ledcmVtA4yAk4kAdTzOoiE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6AD4E60724 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=clew@codeaurora.org From: Chris Lew To: bjorn.andersson@linaro.org, robh+dt@kernel.org, andy.gross@linaro.org, david.brown@linaro.org Cc: aneela@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, clew@codeaurora.org Subject: [PATCH 6/6] rpmsg: glink: Add get_rproc_name device op Date: Mon, 18 Dec 2017 14:02:14 -0800 Message-Id: <1513634534-22861-7-git-send-email-clew@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1513634534-22861-1-git-send-email-clew@codeaurora.org> References: <1513634534-22861-1-git-send-email-clew@codeaurora.org> 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 Add support for clients to query the edge name for the glink device their channel is registered for. Signed-off-by: Chris Lew --- drivers/rpmsg/qcom_glink_native.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/rpmsg/qcom_glink_native.c b/drivers/rpmsg/qcom_glink_native.c index a897ccea3098..4748dea0748e 100644 --- a/drivers/rpmsg/qcom_glink_native.c +++ b/drivers/rpmsg/qcom_glink_native.c @@ -1346,6 +1346,14 @@ static struct device_node *qcom_glink_match_channel(struct device_node *node, return NULL; } +static const char *qcom_glink_get_rproc_name(struct rpmsg_device *rpdev) +{ + struct glink_channel *channel = to_glink_channel(rpdev->ept); + struct qcom_glink *glink = channel->glink; + + return glink->name; +} + static const struct rpmsg_device_ops glink_chrdev_ops = { .create_ept = qcom_glink_create_ept, }; @@ -1353,6 +1361,7 @@ static struct device_node *qcom_glink_match_channel(struct device_node *node, static const struct rpmsg_device_ops glink_device_ops = { .create_ept = qcom_glink_create_ept, .announce_create = qcom_glink_announce_create, + .get_rproc_name = qcom_glink_get_rproc_name, }; static const struct rpmsg_endpoint_ops glink_endpoint_ops = {