Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1112675ybe; Thu, 5 Sep 2019 10:28:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqySHKlID6CGvIuCcMlO6dJ+zVbicd/LRdCJyZ/wrERgthMlBlqvCcsQqMkPtSudJMeSc2m4 X-Received: by 2002:a17:90a:1d0:: with SMTP id 16mr5018263pjd.98.1567704484457; Thu, 05 Sep 2019 10:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567704484; cv=none; d=google.com; s=arc-20160816; b=h2UfvYNoNfGEHJf/0cbKaEG0mVnOt80RSSPq8q7ImXmNeih1xlfS8O/u2v970kKHZ6 F7hZ/8rbIeeVHmFDECftTANwD9Wwf1QzDfuTud7sTW1vMJx4IrJKoTTVgsUZP8CawBpq yHbZXeKWZlMNfUe6Y/gfaxjf/gsCxax5tnOCy+i4RC6lrK7gJoY9Pmxr72lGK4J4g6WL elhp0FLluxrfUP2i0GJM26P23KR20WOoenOrSOIBblPgJPw5AuXvW44GvsPpOiXi5D52 A8l8Ojlf77tA0paPT0nMJGwsMXCfoHl+J03qXqTIJb7Qwc7r/Xbi8mPwVqfnf3Q+mI+1 l1Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X6liaIL8n/K+qZNHyRxBvsG3aE56VnalzfSINEJsXSQ=; b=o+soaNqI3LmCN5KHql6GCMJMbsRt9p+FqKd5s6wHq+qcXl1B/PCwAw19n0iV+lZEzO QNafmRcOxWMoVw1Q7VEZYSiTh/sZ5k+QiLVWr0NzOccB9nx/L5ft4EgCf4iyboIoqR+y et806EsMSqL2xJPh7lTJeSpOc+98Uk2Wm/2kmlFgvwP/BpEImAFlSfyX5NVkVV2nhmLi 6ZxHIDWAk2LnrONLN+EY598kXKtTAXWuoKpRVGX6jfrWiwHs10DR8htOBJyFoMFdmMbB EbPUXV3HY/KZENgq6vRLH9q2QIwucFidMDiDLyzK2VsUnp9NoxDzTFzTjqvEJdWFYZCW 4lyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b+63NMLi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9si2595370plo.104.2019.09.05.10.27.48; Thu, 05 Sep 2019 10:28:04 -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=@linaro.org header.s=google header.b=b+63NMLi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388655AbfIENPB (ORCPT + 99 others); Thu, 5 Sep 2019 09:15:01 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:36354 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388385AbfIENPA (ORCPT ); Thu, 5 Sep 2019 09:15:00 -0400 Received: by mail-lf1-f68.google.com with SMTP id x80so2001929lff.3 for ; Thu, 05 Sep 2019 06:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=X6liaIL8n/K+qZNHyRxBvsG3aE56VnalzfSINEJsXSQ=; b=b+63NMLiO6uu9ngd3jzIr8Dsw188HJm9sNb07rlJMnX80r7/h5LUN3/Lpbh3bxpJ9z xYJqjXXgagt+VDuvA3yKvH7qp7A2+W1iv5h1mRb24Jb2adl7EuLWgyNX1JPnrepTNa9Q goCuPYhfmvTDmiz0qWuVckEjqgfqRDoltmXHgdBIf8vad80BD+OtqWFql1CSBxLD7jDL PWs9E6CwQdu80zJAOHSJX+PJNszKu0Zwaywda1OI5fC9bc/t0il8d+aa4SI03VA65BG0 pqsIykPn5ko3cJwLwAXbf0ErZ98Dsu+DqnGqOb8fcfaBo5zLC2Uk4FyM9xYDgLnBUVyl HiPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=X6liaIL8n/K+qZNHyRxBvsG3aE56VnalzfSINEJsXSQ=; b=Cs3+78NdjWHudoLgbgaFRb/J5i2iPvAUxinQ/JRcHIOPqAl3DrhpAMfTWI4kFwHEzF xK27cgNPWgxdWzBX9L45wZdKUNQqvgwoaX26tPzRJgs9uL+5aqfxST43Rc3lkbDzKK2E ro/FyN8+R1UeidGmHGHqpE5jtfOTW3nbvz3uz5bsiqP0CO8lB6B49BIBTp05BN5cF8VU hwaCw3GZ8+Ws1gAP0Rw++GE9hlCf7VIIz9j3YH6FpxGBsNa+2fwyHvq1Rc20fOLXtIa9 3oGnzBl1o5RhWJLXn3zfFXTOVkm4j5PKmHJfTJLu8rzXE48iTS5gvWI0Z2LJa3Oue+aY FWug== X-Gm-Message-State: APjAAAUOZSYz+EGvctkwED6POHv23AbivirzEUsCzIFQc45TYeMlo8T4 C+B0W4fXhQTH4xBpwXaKBxUuKw== X-Received: by 2002:a19:4912:: with SMTP id w18mr2283793lfa.93.1567689298714; Thu, 05 Sep 2019 06:14:58 -0700 (PDT) Received: from centauri (ua-84-219-138-247.bbcust.telenor.se. [84.219.138.247]) by smtp.gmail.com with ESMTPSA id b25sm486140lfa.90.2019.09.05.06.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2019 06:14:58 -0700 (PDT) Date: Thu, 5 Sep 2019 15:14:56 +0200 From: Niklas Cassel To: Bjorn Andersson Cc: Ohad Ben-Cohen , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: Re: [PATCH] rpmsg: glink-smem: Name the edge based on parent remoteproc Message-ID: <20190905131456.GA26674@centauri> References: <20190820041656.17197-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190820041656.17197-1-bjorn.andersson@linaro.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 19, 2019 at 09:16:56PM -0700, Bjorn Andersson wrote: > Naming the glink edge device on the parent of_node short name causes > collisions when multiple remoteproc instances with only different unit > address are described on the platform_bus in DeviceTree. > > Base the edge's name on the parent remoteproc's name instead, to ensure > that it's unique. > > Signed-off-by: Bjorn Andersson > --- > drivers/rpmsg/qcom_glink_smem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/rpmsg/qcom_glink_smem.c b/drivers/rpmsg/qcom_glink_smem.c > index 64a5ce324c7f..4238383d8685 100644 > --- a/drivers/rpmsg/qcom_glink_smem.c > +++ b/drivers/rpmsg/qcom_glink_smem.c > @@ -201,7 +201,7 @@ struct qcom_glink *qcom_glink_smem_register(struct device *parent, > dev->parent = parent; > dev->of_node = node; > dev->release = qcom_glink_smem_release; > - dev_set_name(dev, "%pOFn:%pOFn", node->parent, node); > + dev_set_name(dev, "%s:%pOFn", dev_name(parent->parent), node); > ret = device_register(dev); > if (ret) { > pr_err("failed to register glink edge\n"); > -- > 2.18.0 > Reviewed-by: Niklas Cassel