Received: by 10.192.165.148 with SMTP id m20csp61836imm; Thu, 26 Apr 2018 16:01:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoA4jY1Y3ONORM18P+1hDTeJHSFZM67T1i0gTm3wOuZUD0Lp6le+zkSQx2SM0HNVsjnx2ym X-Received: by 2002:a17:902:b7ca:: with SMTP id v10-v6mr7634369plz.275.1524783701176; Thu, 26 Apr 2018 16:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524783701; cv=none; d=google.com; s=arc-20160816; b=zjk1lMfJs9xsVIyW0G76Fo3MO+EZvOEdrr6bsY3gjFCzGHarNddRAcA0jjkW3byYAT tRzglzYPfiFC3RArTpnyJ3/nMYuvbntQAink2nB5URdJs1TdTbPqrIvi7M6O7tQfQSTH 5Lja7DhQH0rtB6u3q3SrAtjynA4XAI/JcXgQCKaMqBMMXvmrAVYXwOUzdbplsw2I2jJV hT9ATr+CyvIUuAOnkyyPGn5d3oA2+cIMCrdDYrCzQw1jzXGZszF+E+PjpanaUnCzhesb tMQB1nbIqN1CW7cuH932v0rGf/2gcNWONRQgi3paUmCwQwz+zJiyCtsxTkeKXGtrDbwb 8h5g== 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=Sv8ful28pPDcCWqRd8uPRhQyJOSkTuOcaTlSK99iYYk/brOgozDMgbgspTnf8Cyxxl L3wOAklafnPgdka3MjkcK3o2AjaiMxO4cium1m19kC73HZsTUbf6e2v/d4h6H0gdjaFx PgVZ/ZyBp0OYiRtlONRQBOgufQjZ1NmiyBfdjUN0ujk/9LaVFXw0TxOEwP0IyJj3h85L nayQ5hxzT+AkLPvztPdDGtQWGVQM2WBXtgp4+M86jjZZkRt+QyX+3R1AwFoiY7eUqDX7 VUi+GC+iR16dSuexcgTTCwSX6C7UI31YfURY4C5c6KggyDmPa6Zzg6k92/f4HAYiSFqD hg+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=o3AG6CE+; dkim=pass header.i=@codeaurora.org header.s=default header.b=QNGSnlAt; 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 m12si16147469pgd.240.2018.04.26.16.01.25; Thu, 26 Apr 2018 16:01:41 -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=o3AG6CE+; dkim=pass header.i=@codeaurora.org header.s=default header.b=QNGSnlAt; 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 S932086AbeDZW7f (ORCPT + 99 others); Thu, 26 Apr 2018 18:59:35 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37678 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756388AbeDZW71 (ORCPT ); Thu, 26 Apr 2018 18:59:27 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 776256081C; Thu, 26 Apr 2018 22:59:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524783566; bh=+SP3Vl1N8W8+IOGpVg6C500VzU00iJSgInpI8aGCRhk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o3AG6CE+9PkLQalSlQ9Fo9pM+uOGXp4vwjNdXQcjYYmAPU9J7wYv/alidYCWD09PN fYBZNXyts4P+PpnC4zvjsKgi5doj3UkLw91pfzFRlUxJrOJ1Rt1gLThxh5A7f8gC/M C9CK7jAc88Mhllb+FiVptKFnIwVoEmvt2pRb/HUc= 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 5F6FD6081C; Thu, 26 Apr 2018 22:59:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524783565; bh=+SP3Vl1N8W8+IOGpVg6C500VzU00iJSgInpI8aGCRhk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QNGSnlAtGM5yrXf8R6SH9TTK6HoAVJ2E8t3EtA3zbEkKHabb9UZEHlzbSbzTYeExn noXzxKSus6ckkf454gQDAjxDLdX/JocfMH/hyp3d4yaHAWS14HkrQqa2/h1G6xkAzY rWFDOqjqU9LC6aFR9sT2oxSsaUkS1Wwlic/bAaPI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5F6FD6081C 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 v3 2/6] rpmsg: glink: Store edge name for glink device Date: Thu, 26 Apr 2018 15:59:01 -0700 Message-Id: <1524783545-21951-3-git-send-email-clew@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524783545-21951-1-git-send-email-clew@codeaurora.org> References: <1524783545-21951-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