Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751256AbdLSRwN (ORCPT ); Tue, 19 Dec 2017 12:52:13 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:46064 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbdLSRwH (ORCPT ); Tue, 19 Dec 2017 12:52:07 -0500 X-Google-Smtp-Source: ACJfBospWBnhWIUQ2qPrnZmBYd7Sw6coKvEALHVwL7VxQUPmdKXZ4tmnVsPyOfrc4CNSmU77cto9kg== Date: Tue, 19 Dec 2017 09:52:02 -0800 From: Bjorn Andersson To: Chris Lew Cc: robh+dt@kernel.org, andy.gross@linaro.org, david.brown@linaro.org, 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 Subject: Re: [PATCH 5/6] rpmsg: Introduce rpmsg_get_rproc_name Message-ID: <20171219175202.GB12655@minitux> References: <1513634534-22861-1-git-send-email-clew@codeaurora.org> <1513634534-22861-6-git-send-email-clew@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1513634534-22861-6-git-send-email-clew@codeaurora.org> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 728 Lines: 22 On Mon 18 Dec 14:02 PST 2017, Chris Lew wrote: > Add support for client's to query the edge name their channel is > registered for. This is useful for clients who share the same channel > identifier across different remote procs. > I presume this will result in a strcmp in some client driver? When we're registering the rpmsg device, as part of handling of an arriving "open request", we do look for an of_node with matching qcom,glink-channels and if one is found we point the dev->of_node of the new device to this node. So I would suggest that you, in your client driver, use this to decide which instance you're on; regardless if you're using compatible based driver matching. Does this work for you? Regards, Bjorn