{"id":804050,"url":"http://patchwork.ozlabs.org/api/patches/804050/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170821151651.25096-3-robh@kernel.org/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/","list_archive_url":"https://lore.kernel.org/linuxppc-dev/","list_archive_url_format":"https://lore.kernel.org/linuxppc-dev/{}/","commit_url_format":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"},"msgid":"<20170821151651.25096-3-robh@kernel.org>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20170821151651.25096-3-robh@kernel.org/","date":"2017-08-21T15:16:48","name":"[v2,2/5] powerpc: pseries: vio: match parent nodes with of_find_node_by_path","commit_ref":null,"pull_url":null,"state":"superseded","archived":true,"hash":"043564a3cf56518d8951a35f4d8f0ba0503bae21","submitter":{"id":62529,"url":"http://patchwork.ozlabs.org/api/people/62529/?format=json","name":"Rob Herring (Arm)","email":"robh@kernel.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170821151651.25096-3-robh@kernel.org/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/804050/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/804050/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xbcmz2CYLz9sCZ\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 22 Aug 2017 01:19:47 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xbcmz0VpTzDrKy\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 22 Aug 2017 01:19:47 +1000 (AEST)","from mail-oi0-f68.google.com (mail-oi0-f68.google.com\n\t[209.85.218.68])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xbcjm5blgzDqp9\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 22 Aug 2017 01:17:00 +1000 (AEST)","by mail-oi0-f68.google.com with SMTP id p62so5690049oih.3\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tMon, 21 Aug 2017 08:17:00 -0700 (PDT)","from localhost.localdomain (216-188-254-6.dyn.grandenetworks.net.\n\t[216.188.254.6]) by smtp.googlemail.com with ESMTPSA id\n\tq134sm4505638oic.51.2017.08.21.08.16.57\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 21 Aug 2017 08:16:58 -0700 (PDT)"],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=fRu07O2bQFNU3KvToFTG2UKP7n4CXm+3v8jOT2gzJS0=;\n\tb=F5v5fMpAtS0R8Y2ml7cx7+9Ef4C4XhTj3atrxxa0J4eaBuNKikp+4QEeKVJGB3ck0D\n\thxtyrvaW2gCA4Bn9Pz0texI2+2KWL2jV3cCKj/uMtlSGDInr8weOhA+K8YYFlkEgT+Ty\n\tbQq/W8rkD+xdqFgXrybKH22sGf3acws/I4yspoG/Z2rHqX/3HVZnmbtYx6KQ2D3skO5B\n\tyoU987mBdpipxj/r+WbvvldtRNODNI9/ZfLkwDu42s5bMrZvdsTSw1/UL8yd7mXYeGtN\n\tFhmZQeNBgQbm7Dsqbtn5X1JOdqz1abpQLNbIcfEnGpNTbU35pMhZur0rTqy7B/LwYaNx\n\tKrdQ==","X-Gm-Message-State":"AHYfb5hExSL18S7lECWPmDlcRJYHWpIteriUbsdgQW+0kkG1jaOxz4Gb\n\tWDXXaqEilkq6j0JDp9Y=","X-Received":"by 10.202.185.11 with SMTP id j11mr21104384oif.250.1503328618619;\n\tMon, 21 Aug 2017 08:16:58 -0700 (PDT)","From":"Rob Herring <robh@kernel.org>","To":"devicetree@vger.kernel.org, Michael Ellerman <mpe@ellerman.id.au>,\n\tlinuxppc-dev@lists.ozlabs.org","Subject":"[PATCH v2 2/5] powerpc: pseries: vio: match parent nodes with\n\tof_find_node_by_path","Date":"Mon, 21 Aug 2017 10:16:48 -0500","Message-Id":"<20170821151651.25096-3-robh@kernel.org>","X-Mailer":"git-send-email 2.11.0","In-Reply-To":"<20170821151651.25096-1-robh@kernel.org>","References":"<20170821151651.25096-1-robh@kernel.org>","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"David Laight <David.Laight@aculab.com>,\n\tFrank Rowand <frowand.list@gmail.com>, linux-kernel@vger.kernel.org, \n\tPaul Mackerras <paulus@samba.org>","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"},"content":"In preparation to remove the full path from device_node.full_name, use\nof_find_node_by_path instead of open coding with strcmp.\n\nSigned-off-by: Rob Herring <robh@kernel.org>\nCc: Benjamin Herrenschmidt <benh@kernel.crashing.org>\nCc: Paul Mackerras <paulus@samba.org>\nCc: Michael Ellerman <mpe@ellerman.id.au>\nCc: linuxppc-dev@lists.ozlabs.org\n---\nv2:\n- rebased to linux-next and removed spurious change fro patch 1.\n\n arch/powerpc/platforms/pseries/vio.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)","diff":"diff --git a/arch/powerpc/platforms/pseries/vio.c b/arch/powerpc/platforms/pseries/vio.c\nindex aa5ca74316fa..5754572deb23 100644\n--- a/arch/powerpc/platforms/pseries/vio.c\n+++ b/arch/powerpc/platforms/pseries/vio.c\n@@ -1357,9 +1357,9 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node)\n \t */\n \tparent_node = of_get_parent(of_node);\n \tif (parent_node) {\n-\t\tif (!strcmp(parent_node->full_name, \"/ibm,platform-facilities\"))\n+\t\tif (parent_node == of_find_node_by_path(\"/ibm,platform-facilities\"))\n \t\t\tfamily = PFO;\n-\t\telse if (!strcmp(parent_node->full_name, \"/vdevice\"))\n+\t\telse if (parent_node == of_find_node_by_path(\"/vdevice\"))\n \t\t\tfamily = VDEVICE;\n \t\telse {\n \t\t\tpr_warn(\"%s: parent(%pOF) of %s not recognized.\\n\",\n","prefixes":["v2","2/5"]}