Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp735508imm; Fri, 27 Jul 2018 05:19:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcXtDpe4ssgOc+cZIO6HYlpekwhpO+zknp0hEnGA/4/yTN78BJv7/yAn2IDZfom5lpoN3LL X-Received: by 2002:a65:5205:: with SMTP id o5-v6mr5938236pgp.108.1532693997566; Fri, 27 Jul 2018 05:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532693997; cv=none; d=google.com; s=arc-20160816; b=wP3AcsSfMtXJ5OX2fq6fL0J8jCr+FS+GF4krSAmnuaCxvBH5cYsqHNHU7peMoy9fV/ 5kNL1uSSiC3IZntltBSchNA/XJzkC1UMAMl7fkx1LYKUfI8xJgeXLDag28vckMnUGN+b xpt2dXetzZ2oRFI+EJU2sDh0LsQXbxhYus9z0A2uPrU+6JbYKSoeYMc0B0N1LJ4WhAFP 6JBp0G1AqkekZPvEJZ6hoIdSW+l2JOrIL2g7rY5QAKYUPyPjAZIQyxDrZdj6fIfORhFy IaOJYEsd6aE/Ll60qkvB9M7EODZXvklM83tia8snGU7vXb8QwPc+qpaPnDDEG9MzRC/K hJ3Q== 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=QpinoR0g6l/VwQTObL4Rmyr0cJ4ZdVIbE619eHLZQIk=; b=HiP+67JtAS42hZv6rTgz5QOyKyRquOpsTJEoJmWUbnE8afB/EPP6ypSouDCAOhTlwt lKd5cDjJM0z/LEDEHRJieorsj8j5ZiVrCUFh04R+9WkhQSwBEGkNARUyyf3Zz6GDRzi7 kundmtbnCLONFY0OhtQBaulcUomuQKv/owuq1BikcZGcwX3/v2g1OtDdv1ujhPz5m3Ux AAl2dZiAh+AvWQgpKLSGfKcvPUtB3nZnGieSq1z96GGYyhZtVJz3wS8N/XDHlyGRMeEt tXU7tlWqS9z8ucak9bI2vxabEqHs4+1Kbe5NQ45lX9gpqWJNa2jepAMkYN9hpwFRp9F2 ljLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=FFb1RxZe; dkim=pass header.i=@codeaurora.org header.s=default header.b=JkOKDKLG; 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 w65-v6si3779149pfw.95.2018.07.27.05.19.42; Fri, 27 Jul 2018 05:19:57 -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=FFb1RxZe; dkim=pass header.i=@codeaurora.org header.s=default header.b=JkOKDKLG; 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 S2388575AbeG0NkK (ORCPT + 99 others); Fri, 27 Jul 2018 09:40:10 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45650 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730488AbeG0NkJ (ORCPT ); Fri, 27 Jul 2018 09:40:09 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 128C160B7B; Fri, 27 Jul 2018 12:18:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532693909; bh=/iwPFhzuTR1EhsAi4MUmkQ7Y2gHk8p8sHDiMTnBzjxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FFb1RxZeeKnGPOxfvtKmjLsZJ2DgJChT+uboZvpCWSIwOr1OPb0fQh7/4CbOi3QFC NJsTklDVBDTo9fhix9/Hnp5oetEfF97ukb+0H6M4DKkW0Kf2iFIQttAjQhxtHkoZFL +QeRcCuypb8TMG6BclgnvFy7kfiLm4AEW8evYdeQ= 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 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 8F07D605BD; Fri, 27 Jul 2018 12:18:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532693908; bh=/iwPFhzuTR1EhsAi4MUmkQ7Y2gHk8p8sHDiMTnBzjxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JkOKDKLGA7vhWVJipiPa5gWiX5BVi3kUbdogsUXkap0jAoy5B/xCJBZvv8Kp6hw19 GV0QuVTOMoBB+IdEN9yQa6+058cFfuMwS7BLdMQh+8+xeaGiiNh/eUcmG0N7pYoqu4 WkpXTPqQhQBxH4H/UcLpE92CI+JAeq7VLs+Cv7Q0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8F07D605BD 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, robh+dt@kernel.org, arnaud.pouliquen@st.com, andy.gross@linaro.org Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Arun Kumar Neelakantam Subject: [PATCH V4 2/9] rpmsg: glink: Store edge name for glink device Date: Fri, 27 Jul 2018 17:47:22 +0530 Message-Id: <1532693849-7037-3-git-send-email-aneela@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1532693849-7037-1-git-send-email-aneela@codeaurora.org> References: <1532693849-7037-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 From: Chris Lew 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 Signed-off-by: Arun Kumar Neelakantam --- 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 f505f58..22a3cac 100644 --- a/drivers/rpmsg/qcom_glink_native.c +++ b/drivers/rpmsg/qcom_glink_native.c @@ -93,6 +93,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; @@ -1572,6 +1574,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