Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937987AbdLRWDf (ORCPT ); Mon, 18 Dec 2017 17:03:35 -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 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1360 Lines: 38 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 = { -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project