get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 800586,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/800586/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170811142341.22715-6-clg@kaod.org/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20170811142341.22715-6-clg@kaod.org>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20170811142341.22715-6-clg@kaod.org/",
    "date": "2017-08-11T14:23:38",
    "name": "[v2,5/8] powerpc/xive: add the HW IRQ number under xive_irq_data",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0522090244bf7854572676559b1c76d486cb92f4",
    "submitter": {
        "id": 68548,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/68548/?format=api",
        "name": "Cédric Le Goater",
        "email": "clg@kaod.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170811142341.22715-6-clg@kaod.org/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/800586/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/800586/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 [IPv6:2401:3900:2:1::3])\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 3xTS7J5tm3z9t2v\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat, 12 Aug 2017 00:29:16 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xTS7J4vqTzDrFL\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat, 12 Aug 2017 00:29:16 +1000 (AEST)",
            "from 3.mo4.mail-out.ovh.net (3.mo4.mail-out.ovh.net\n\t[46.105.57.129])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xTS1y3yGKzDqkX\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tSat, 12 Aug 2017 00:24:38 +1000 (AEST)",
            "from player772.ha.ovh.net (b6.ovh.net [213.186.33.56])\n\tby mo4.mail-out.ovh.net (Postfix) with ESMTP id 5A4128C9B6\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 11 Aug 2017 16:24:35 +0200 (CEST)",
            "from zorba.kaod.org.com (LFbn-1-10652-153.w90-89.abo.wanadoo.fr\n\t[90.89.238.153]) (Authenticated sender: clg@kaod.org)\n\tby player772.ha.ovh.net (Postfix) with ESMTPSA id 354F6740078;\n\tFri, 11 Aug 2017 16:24:29 +0200 (CEST)"
        ],
        "From": "=?UTF-8?q?C=C3=A9dric=20Le=20Goater?= <clg@kaod.org>",
        "To": "linuxppc-dev@lists.ozlabs.org",
        "Subject": "[PATCH v2 5/8] powerpc/xive: add the HW IRQ number under\n\txive_irq_data",
        "Date": "Fri, 11 Aug 2017 16:23:38 +0200",
        "Message-Id": "<20170811142341.22715-6-clg@kaod.org>",
        "X-Mailer": "git-send-email 2.13.4",
        "In-Reply-To": "<20170811142341.22715-1-clg@kaod.org>",
        "References": "<20170811142341.22715-1-clg@kaod.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-Ovh-Tracer-Id": "13700794494288890813",
        "X-VR-SPAMSTATE": "OK",
        "X-VR-SPAMSCORE": "-100",
        "X-VR-SPAMCAUSE": "gggruggvucftvghtrhhoucdtuddrfeelkedrkeelgdejiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd",
        "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 Gibson <david@gibson.dropbear.id.au>,\n\tPaul Mackerras <paulus@samba.org>,\n\t=?UTF-8?q?C=C3=A9dric=20Le=20Goater?= <clg@kaod.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": "It will be required later by the H_INT_ESB hcall.\n\nSigned-off-by: Cédric Le Goater <clg@kaod.org>\n---\n arch/powerpc/include/asm/xive.h   | 1 +\n arch/powerpc/sysdev/xive/native.c | 2 ++\n arch/powerpc/sysdev/xive/spapr.c  | 2 ++\n 3 files changed, 5 insertions(+)",
    "diff": "diff --git a/arch/powerpc/include/asm/xive.h b/arch/powerpc/include/asm/xive.h\nindex 473f133a8555..64ec9bbcf03e 100644\n--- a/arch/powerpc/include/asm/xive.h\n+++ b/arch/powerpc/include/asm/xive.h\n@@ -45,6 +45,7 @@ struct xive_irq_data {\n \tvoid __iomem *trig_mmio;\n \tu32 esb_shift;\n \tint src_chip;\n+\tu32 hw_irq;\n \n \t/* Setup/used by frontend */\n \tint target;\ndiff --git a/arch/powerpc/sysdev/xive/native.c b/arch/powerpc/sysdev/xive/native.c\nindex ef92a83090e1..f8bcff15b0f9 100644\n--- a/arch/powerpc/sysdev/xive/native.c\n+++ b/arch/powerpc/sysdev/xive/native.c\n@@ -82,6 +82,8 @@ int xive_native_populate_irq_data(u32 hw_irq, struct xive_irq_data *data)\n \t\treturn -ENOMEM;\n \t}\n \n+\tdata->hw_irq = hw_irq;\n+\n \tif (!data->trig_page)\n \t\treturn 0;\n \tif (data->trig_page == data->eoi_page) {\ndiff --git a/arch/powerpc/sysdev/xive/spapr.c b/arch/powerpc/sysdev/xive/spapr.c\nindex 89e5a57693db..7efcee928569 100644\n--- a/arch/powerpc/sysdev/xive/spapr.c\n+++ b/arch/powerpc/sysdev/xive/spapr.c\n@@ -264,6 +264,8 @@ static int xive_spapr_populate_irq_data(u32 hw_irq, struct xive_irq_data *data)\n \t\treturn -ENOMEM;\n \t}\n \n+\tdata->hw_irq = hw_irq;\n+\n \t/* Full function page supports trigger */\n \tif (flags & XIVE_SRC_TRIGGER) {\n \t\tdata->trig_mmio = data->eoi_mmio;\n",
    "prefixes": [
        "v2",
        "5/8"
    ]
}