Received: by 10.192.165.148 with SMTP id m20csp1438985imm; Wed, 25 Apr 2018 19:11:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx494XSLnDSXW3TbtdGOOVMJBl8x7Y33C7mVuM89auEBFGkm+5xikmX4jCP66A6Fu8jBfbwAW X-Received: by 10.98.214.5 with SMTP id r5mr22389798pfg.8.1524708698820; Wed, 25 Apr 2018 19:11:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524708698; cv=none; d=google.com; s=arc-20160816; b=ID9BmkQy2EFafeWsM5kkgXI/VlMF6BzlBjLFXmMtGJIWg4qBcUB0o5cYLv+kegN2A9 B3VN0JlJPJ/LzduB7surrLq/0i3aqqAoA+EQLBz2E1fSO+PbdAV+SdM3w87I1JIYBlk7 CJ0dqM7XPEvvS85AGsaohjN5DdrM5c88DgPp6W87FkOf7Syi28itvdDK8uYTB/zKHPhq a7u1S8q+z1rYeMmTbtZeIYmj0qkaRfU2FBA6R2Xrw69v9mXi3cw8slNz0oyIO/WnzUt6 tdzMvbGKYZE/6laove/4TtkbuUZfy/kjerS3JqVoILfO1LaXPgCMcGR0Wt2+uK3b+CAk YW3Q== 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 :arc-authentication-results; bh=8H4buY9/64ki5kQCmoT5AGZvglpclTZwYJHKlvz3ylw=; b=Pj49DBANf/CPgnW+s/+s03iuXYXa7DM3NGlBY2ymS6lJT+ct1c+f8YAm+TxXklGYq8 Xpp6A0r9nag5oAhWyYxVO/xHvPCvKGywyhP7HVDUHNTMlnLx2ofwjrkxNXoD2d9pb45l bpFvn7Tb4hZi2+3Bz1zf7mCU973n6+f75MAe8d7CPcIoR9gIhC9oEbh+WPdnYOEJSENi KHs6n1fjMunDkYHWq3wGhtBSoow9eponoeSRdmTNwdOIPmWvOTXW3lLDpJf1E5zsQp04 hIY1btrsaCCRac3Y7K/kYmdG30zxWBMbLojPtYTIjON8NGI7JmswHzfbe3aeuvyCW17E Jr1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=SqfwebcT; dkim=pass header.i=@codeaurora.org header.s=default header.b=IA4xCnZL; 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 r25si14230212pgu.219.2018.04.25.19.11.24; Wed, 25 Apr 2018 19:11:38 -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=SqfwebcT; dkim=pass header.i=@codeaurora.org header.s=default header.b=IA4xCnZL; 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 S1751655AbeDZCIu (ORCPT + 99 others); Wed, 25 Apr 2018 22:08:50 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44228 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751647AbeDZCIl (ORCPT ); Wed, 25 Apr 2018 22:08:41 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0346260F8F; Thu, 26 Apr 2018 02:08:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524708521; bh=+SP3Vl1N8W8+IOGpVg6C500VzU00iJSgInpI8aGCRhk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SqfwebcTT97mjAzSpdxQoEqXEM+k9DMolJ6V/9k/c1zoaN1iru/d+nzuT7JoIgDIT qYJR40k2gMaDYmP6bxPVa9zC//DPqsskky6AQ9OiQcQA1xAW1rp5LVRG0v+CaH5OEQ 7wW7CW1OEXV0X2sfXhMxMyUw6X3VaZl3/2yeElpI= 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.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 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 35CB260117; Thu, 26 Apr 2018 02:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524708520; bh=+SP3Vl1N8W8+IOGpVg6C500VzU00iJSgInpI8aGCRhk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IA4xCnZLlanfXs7snTu5UC0jviuKAZ6xh/I+SwfEeTs6rb4OjNHhfJu04o9uURJV3 C8YCPlWE/LL6jMlaQ4yAJbrsdc7EGjXyIEclgMhc/maFfpe8/t03VuwU0cOKErbC+d Ee6YgzvpDIUUSfvwHwrilDW++ngs1DjqNX+JpvSg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 35CB260117 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, andy.gross@linaro.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com 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 v2 2/6] rpmsg: glink: Store edge name for glink device Date: Wed, 25 Apr 2018 19:07:48 -0700 Message-Id: <1524708472-18263-3-git-send-email-clew@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524708472-18263-1-git-send-email-clew@codeaurora.org> References: <1524708472-18263-1-git-send-email-clew@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Channels may need to identify the edge their channel was probed for. Store the edge name by reading the label property from device tree or default to the node name. Signed-off-by: Chris Lew --- Changes since v1: - None drivers/rpmsg/qcom_glink_native.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/rpmsg/qcom_glink_native.c b/drivers/rpmsg/qcom_glink_native.c index 768ef542a841..c3f548e2ff20 100644 --- a/drivers/rpmsg/qcom_glink_native.c +++ b/drivers/rpmsg/qcom_glink_native.c @@ -101,6 +101,8 @@ struct glink_core_rx_intent { struct qcom_glink { struct device *dev; + const char *name; + struct mbox_client mbox_client; struct mbox_chan *mbox_chan; @@ -1580,6 +1582,10 @@ struct qcom_glink *qcom_glink_native_probe(struct device *dev, idr_init(&glink->lcids); idr_init(&glink->rcids); + ret = of_property_read_string(dev->of_node, "label", &glink->name); + if (ret < 0) + glink->name = dev->of_node->name; + glink->mbox_client.dev = dev; glink->mbox_client.knows_txdone = true; glink->mbox_chan = mbox_request_channel(&glink->mbox_client, 0); -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project