Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3537939ybl; Mon, 19 Aug 2019 21:18:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiwrJGEJthxdPT7nmVMhZQobeWSHnnPjujEC67ZHNZxF8fx4ktovamOdMxIpsLYHtJ0DFY X-Received: by 2002:a62:1858:: with SMTP id 85mr28302885pfy.120.1566274697656; Mon, 19 Aug 2019 21:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566274697; cv=none; d=google.com; s=arc-20160816; b=VESMMNR12uAz2s5mCtSRytvwt3jupfUdI7fZXe5NqTFZzRY9dRumoEFTZ1aeo7jxP1 sF3QSfhhKKU2CwaqsUKPphGmn0IkK2qMh9kOsjxE56lbJxCIn17Ct0ZaJHqOlLqmslIK ysvuE2EZflNK6XTdX9s7Ha4yIDVBkcWJk18youtFSbeVCfVWK9E0t31n4VRVLsBfCrnK CO118zK5Lo1pOaCLKXeBv6NYVQeqPLTbrMDW9sXALUCU0dGQNyDy/n9GEk5nIBQZVyhn L7c9M/ktrWeruDIGSBkojGCCuUjT4GIodvzbNizibt8UNMeOsPHnObkK6d6dfxtQyT2w gt8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=KbKypMZEMo628Sx98GbFT2Lyxp3a3o8vbOSGro2hqs8=; b=TgdMdJ8CIOqscAnJrpG9R8av3ue1CxNBaj5xHP/FyU2SdP3vKJ94ETOIoz3zC9W5xG jtqikc9bQlSR0hiVaSv9g1n82gtkynU7vLjUScivoZILliuA1tcaNrPr+FHC1I1f136F 3T4gAoo/SuNTuDK0VJAmZvCq5n8C/FF/TUJYAeEWXZYoiLC6CxMdW598k+pThAQh82Td T4KIhgvaehYaFYQ48qluC3TznZnGGWWBS7/ldQEtHkQ7Vu3OFP0UK8qVzgoxq62wd/th E9TOm8lVVUiw1mo/ShpCKDsjmBJ+TtT+66Cf+mTilzUzedJUawwtE77QK9qf7svxXmzh iD7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BbMcDsfd; 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 37si10352152pjo.39.2019.08.19.21.18.02; Mon, 19 Aug 2019 21:18:17 -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=BbMcDsfd; 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 S1729118AbfHTERB (ORCPT + 99 others); Tue, 20 Aug 2019 00:17:01 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:43809 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbfHTERB (ORCPT ); Tue, 20 Aug 2019 00:17:01 -0400 Received: by mail-pl1-f194.google.com with SMTP id 4so2047844pld.10 for ; Mon, 19 Aug 2019 21:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=KbKypMZEMo628Sx98GbFT2Lyxp3a3o8vbOSGro2hqs8=; b=BbMcDsfdhYJbYQOF4+aYA+FByqe1YzCp/GVmlI4KBpJik0CSaiyOMnbGH8m3TiqELX s4cEulkc1aWYVE0YqhE3Zgn8RO2mrIJ+vTMekI/vxsli4czBtUJA3lrnGfjK48ncRyBt 5eOTSVG8tSarLdTZM/Mgld7VoxpN0p+9jb10g+l8q2JiGwBzB32Sdx16m3FUCg1i3UK2 cUQRM6vLlhJbXk9WlqsISZah7xFjoLA1LLtMlpOCejDe85h3kOtM8xqxR//2Bh44v+3o dB/g1IRRMS9DwDLj9NIF/NaKw+Y3XfLNEPXYCd8rLtmOlUsym/69sM9Iouv3xzrrND4S WsVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KbKypMZEMo628Sx98GbFT2Lyxp3a3o8vbOSGro2hqs8=; b=qu8T+4x2ogiNFp6XjjN2Hxfg7vQBH7AWkAIpXpoammCnMPjkniC8F0rR+0nGqHWZJ4 yjshLwq/2csnW8REjLh0+PD1TmyhpN8S3/E0xL83o91iFlVcH1HdfxxRlmc2ahnEL6gc Pwuy96aC+N4JYOllZXqNm/QRqVEulRRtq8wd8XA8r3Wx+r5v9d40NFBtNLJSgN4h25V4 g44+y8ACAFosVsY7wBnwZkqaa3FJmgerB4DzFUHVA4QSQM1R4IXy9hqupYCycShswN1p aArYm+1nuBYHvOMmDnmn3H6Hm/+BsyzH944MEYdp5Zm0Mt7Aw0qxc/H2GlzGnh8Y+M6o jrUg== X-Gm-Message-State: APjAAAVNA612L1mxbdayBUOSQMb2YeTxp3iIeVmsqtYmOda4oOVEeEqO oldHZm6Cfl9AtZKgCyQlIf+5qA== X-Received: by 2002:a17:902:4401:: with SMTP id k1mr26180562pld.193.1566274620467; Mon, 19 Aug 2019 21:17:00 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id j6sm35010849pje.11.2019.08.19.21.16.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Aug 2019 21:16:59 -0700 (PDT) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH] rpmsg: glink-smem: Name the edge based on parent remoteproc Date: Mon, 19 Aug 2019 21:16:56 -0700 Message-Id: <20190820041656.17197-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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