get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/793665/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 793665,
    "url": "http://patchwork.ozlabs.org/api/patches/793665/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170725214427.25768-3-robh@kernel.org/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "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": "<20170725214427.25768-3-robh@kernel.org>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20170725214427.25768-3-robh@kernel.org/",
    "date": "2017-07-25T21:44:25",
    "name": "[2/4] powerpc: pseries: remove dlpar_attach_node dependency on full path",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2234c98d7f6f9674ddc158b77a7d91ec84f09fe8",
    "submitter": {
        "id": 62529,
        "url": "http://patchwork.ozlabs.org/api/people/62529/?format=api",
        "name": "Rob Herring",
        "email": "robh@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170725214427.25768-3-robh@kernel.org/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/793665/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/793665/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 3xHBhm3B2cz9ryr\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 26 Jul 2017 07:49:12 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xHBhm2FblzDqsr\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 26 Jul 2017 07:49:12 +1000 (AEST)",
            "from mail-yw0-f196.google.com (mail-yw0-f196.google.com\n\t[209.85.161.196])\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 3xHBbX25xkzDqmw\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 26 Jul 2017 07:44:40 +1000 (AEST)",
            "by mail-yw0-f196.google.com with SMTP id u207so3655624ywc.0\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 25 Jul 2017 14:44:40 -0700 (PDT)",
            "from localhost.localdomain (24-223-123-72.static.usa-companies.net.\n\t[24.223.123.72]) by smtp.googlemail.com with ESMTPSA id\n\t204sm2386383ywx.35.2017.07.25.14.44.36\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 25 Jul 2017 14:44:37 -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=1KzvnSGPYvbqL2EEh/Uc/rZaxNxoRokk/OdZxBkHQss=;\n\tb=KC4onDNFavRwXIh5GcX14FKUk0qRZp/vpmwTWvq+++H+eyGRweun/eAHhi1LsQZ437\n\tQAbb5y9+znDEKk7RwOxraEP73oEellVVszLbLC03e6cF03vS2E+9utu3MplGyaIsq/3d\n\tP0dpXaHBlABvFE1Rb6yO5rlF9x5z2575UBho1OA6jGXb/DhUthoBcrqH1uLFaH3oWIp9\n\ttblF4csL/Pwu0KcG1meyVkbF96UHZyEhM6NQIdSsumWv4w+GE+bU3D5/YcQWsifWI76y\n\tlvOuFrReHdATIhavY6RnA1LMMfEa4V40tSKvagYf0IcSvBVmjEioOQt85YAw78e/6s1I\n\t0ddw==",
        "X-Gm-Message-State": "AIVw112h3R7n6VOE9ZAQ/DmFqEMhhn6fmr4yVpeZ6fxzQS70Fn4t6KEC\n\tZljiAvaF5OVr7w==",
        "X-Received": "by 10.129.79.210 with SMTP id\n\td201mr17023736ywb.467.1501019077677; \n\tTue, 25 Jul 2017 14:44:37 -0700 (PDT)",
        "From": "Rob Herring <robh@kernel.org>",
        "To": "devicetree@vger.kernel.org,\n\tlinuxppc-dev@lists.ozlabs.org",
        "Subject": "[PATCH 2/4] powerpc: pseries: remove dlpar_attach_node dependency on\n\tfull path",
        "Date": "Tue, 25 Jul 2017 16:44:25 -0500",
        "Message-Id": "<20170725214427.25768-3-robh@kernel.org>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170725214427.25768-1-robh@kernel.org>",
        "References": "<20170725214427.25768-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": "Frank 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 stop storing the full node path in full_name, remove the\ndependency on full_name from dlpar_attach_node(). Callers of\ndlpar_attach_node() already have the parent device_node, so just pass the\nparent node into dlpar_attach_node instead of the path. This avoids doing\na lookup of the parent node by the path.\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---\n arch/powerpc/platforms/pseries/dlpar.c       | 6 ++----\n arch/powerpc/platforms/pseries/hotplug-cpu.c | 2 +-\n arch/powerpc/platforms/pseries/mobility.c    | 2 +-\n arch/powerpc/platforms/pseries/pseries.h     | 2 +-\n 4 files changed, 5 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c\nindex 80b84c9c8509..783f36364690 100644\n--- a/arch/powerpc/platforms/pseries/dlpar.c\n+++ b/arch/powerpc/platforms/pseries/dlpar.c\n@@ -254,13 +254,11 @@ struct device_node *dlpar_configure_connector(__be32 drc_index,\n \treturn first_dn;\n }\n \n-int dlpar_attach_node(struct device_node *dn)\n+int dlpar_attach_node(struct device_node *dn, struct device_node *parent)\n {\n \tint rc;\n \n-\tdn->parent = pseries_of_derive_parent(dn->full_name);\n-\tif (IS_ERR(dn->parent))\n-\t\treturn PTR_ERR(dn->parent);\n+\tdn->parent = parent;\n \n \trc = of_attach_node(dn);\n \tif (rc) {\ndiff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c b/arch/powerpc/platforms/pseries/hotplug-cpu.c\nindex 0a93093fbcef..b357f1ae0b0a 100644\n--- a/arch/powerpc/platforms/pseries/hotplug-cpu.c\n+++ b/arch/powerpc/platforms/pseries/hotplug-cpu.c\n@@ -463,7 +463,7 @@ static ssize_t dlpar_cpu_add(u32 drc_index)\n \t\treturn -EINVAL;\n \t}\n \n-\trc = dlpar_attach_node(dn);\n+\trc = dlpar_attach_node(dn, parent);\n \tif (rc) {\n \t\tsaved_rc = rc;\n \t\tpr_warn(\"Failed to attach node %s, rc: %d, drc index: %x\\n\",\ndiff --git a/arch/powerpc/platforms/pseries/mobility.c b/arch/powerpc/platforms/pseries/mobility.c\nindex 2da4851eff99..210ce632d63e 100644\n--- a/arch/powerpc/platforms/pseries/mobility.c\n+++ b/arch/powerpc/platforms/pseries/mobility.c\n@@ -229,7 +229,7 @@ static int add_dt_node(__be32 parent_phandle, __be32 drc_index)\n \tif (!dn)\n \t\treturn -ENOENT;\n \n-\trc = dlpar_attach_node(dn);\n+\trc = dlpar_attach_node(dn, parent_dn);\n \tif (rc)\n \t\tdlpar_free_cc_nodes(dn);\n \ndiff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h\nindex 1361a9db534b..4470a3194311 100644\n--- a/arch/powerpc/platforms/pseries/pseries.h\n+++ b/arch/powerpc/platforms/pseries/pseries.h\n@@ -46,7 +46,7 @@ extern void dlpar_free_cc_nodes(struct device_node *);\n extern void dlpar_free_cc_property(struct property *);\n extern struct device_node *dlpar_configure_connector(__be32,\n \t\t\t\t\t\tstruct device_node *);\n-extern int dlpar_attach_node(struct device_node *);\n+extern int dlpar_attach_node(struct device_node *, struct device_node *);\n extern int dlpar_detach_node(struct device_node *);\n extern int dlpar_acquire_drc(u32 drc_index);\n extern int dlpar_release_drc(u32 drc_index);\n",
    "prefixes": [
        "2/4"
    ]
}