get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 428124,
    "url": "http://patchwork.ozlabs.org/api/patches/428124/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1421096015-27463-2-git-send-email-arnab_basu@rocketmail.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1421096015-27463-2-git-send-email-arnab_basu@rocketmail.com>",
    "list_archive_url": null,
    "date": "2015-01-12T20:53:27",
    "name": "[U-Boot,v2,1/9] ARM: PSCI: Update psci.h for psci v0.2",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "1cc2e9a75cfa2c23a51c870882caa13a6916e001",
    "submitter": {
        "id": 65465,
        "url": "http://patchwork.ozlabs.org/api/people/65465/?format=api",
        "name": "Arnab Basu",
        "email": "arnab_basu@rocketmail.com"
    },
    "delegate": {
        "id": 1694,
        "url": "http://patchwork.ozlabs.org/api/users/1694/?format=api",
        "username": "aaribaud",
        "first_name": "Albert",
        "last_name": "ARIBAUD",
        "email": "albert.aribaud@free.fr"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1421096015-27463-2-git-send-email-arnab_basu@rocketmail.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/428124/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/428124/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Received": [
            "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 62EEE140146\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 13 Jan 2015 08:01:31 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 4F9254B664;\n\tMon, 12 Jan 2015 22:01:26 +0100 (CET)",
            "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id p7Mu-MNlX-kX; Mon, 12 Jan 2015 22:01:26 +0100 (CET)",
            "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 1B51F4B61D;\n\tMon, 12 Jan 2015 22:01:19 +0100 (CET)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id DD2DB4B5FA\n\tfor <u-boot@lists.denx.de>; Mon, 12 Jan 2015 21:57:20 +0100 (CET)",
            "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id AMw0Iv47pXG8 for <u-boot@lists.denx.de>;\n\tMon, 12 Jan 2015 21:57:20 +0100 (CET)",
            "from nm49-vm4.bullet.mail.ne1.yahoo.com\n\t(nm49-vm4.bullet.mail.ne1.yahoo.com [98.138.121.132])\n\tby theia.denx.de (Postfix) with ESMTPS id 565714B5F5\n\tfor <u-boot@lists.denx.de>; Mon, 12 Jan 2015 21:57:16 +0100 (CET)",
            "from [127.0.0.1] by nm49.bullet.mail.ne1.yahoo.com with NNFMP;\n\t12 Jan 2015 20:57:15 -0000",
            "from [98.138.100.103] by nm49.bullet.mail.ne1.yahoo.com with NNFMP;\n\t12 Jan 2015 20:54:19 -0000",
            "from [106.10.166.123] by tm102.bullet.mail.ne1.yahoo.com with\n\tNNFMP; 12 Jan 2015 20:54:19 -0000",
            "from [106.10.167.159] by tm12.bullet.mail.sg3.yahoo.com with NNFMP;\n\t12 Jan 2015 20:54:18 -0000",
            "from [127.0.0.1] by smtp132.mail.sg3.yahoo.com with NNFMP;\n\t12 Jan 2015 20:54:18 -0000"
        ],
        "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com;\n\ts=s2048; \n\tt=1421096235; bh=tLxUlec4luvj4qu6tJTacIaWvocsAggVKaJ5OVpp6qI=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject;\n\tb=SKbknozwqpXpyqmKuquvEQvpNajwFg62NAAbFEh1cucm/WvoT/083zUmKvuzIn1/C2OOZ5g/SzARtdcm100wvuwyBgPz/wGC39kfNxpnHGs+JUKYs35UGv/T0512ZYdaMWwJ9wKsUj/NPFqpqngo1k65vCtxC/nJVwP8aU+5sV1N6/j1lxOiJ3DqOqMqgrRUjowivmQp4/8yetwMdfTtzZkUammfL2HudQK4Y7rynkJV0pxXKs1cbM8lQZSCK2r72ujYjqNeoXeQxtCTfXrtDq+gIhFvwTxBlwx2rzuGZ0WPoPwvVCxfi89/LVQ5B08nHYzqO8JzTZdKWHLHSB3CVA==",
        "DomainKey-Signature": "a=rsa-sha1; q=dns; c=nofws; s=s2048; d=rocketmail.com; \n\tb=TxSOjNB6iRw6zMqFu9TVx16kmwjqI2ff+YyoYAXF7Aq5yYRtwMj/9Utj7xVLgbJtn+Bv4b839fT0Z+OAfV5ithH4RSq+MCHJX7qjfM0A7b9R4m3Umh6MHK6tCd9vqE4i99MJsiE8S15KctyNGvMf0xaX0aAWnouKPbzJxPrg+hK1DkQPZRRgcY+suVlPc4pv2rd6PuB1O4aRdyEwJdyqsuJeOYSBSXVe4ct3plcBiR8/LuabwDhLHZto5qY11/I5/+wZsn6hKtc1rz8dcYUGVZOAoopOyQbKOXoiTYURuSLFC2oa+jPp24COECuuT0GrpW5L+lHl1EXIo+ZdgMjZmA==;",
        "X-Yahoo-Newman-Id": "763155.30836.bm@smtp132.mail.sg3.yahoo.com",
        "X-Yahoo-Newman-Property": "ymail-4",
        "X-YMail-OSG": "_UeIWM0VM1lF13svGxcqDnGR4slP0qZ5mwTWgQb8PUOezhl\n\t.ID9fwx9LZ4jE.6F2V.65AWBHcU9ej1duSZBPBU_6nteWsatTvDJ3t__4lMK\n\tonc4Q.wN1t_MUFQeBNmtIBeXAj_sF4mtImpKiuiA9Mscva2qszPyeYiE36Gb\n\tdHHvjEf0yhl_3HuDlz3TwTccCgH_j3Qd2ItypBzoLZKbNpnJwpmcYzg4bEkY\n\tqo_R0qM8qV.VJy0Hhk1TGtKVtBV1xwo7aO_qrl8ZuhTRTgOzo0le.Jo09C.M\n\t2gObvkLzM2G1gN69Cye2UlNCY_Z5uWLpQn0lOSb3eKzMt6RfRHE3_R85Igy7\n\tl5RG0gj0yJCpzBA_JbnmXNaxOGzGsF5zz_boW.IiW9arJfCHKCqJDSXi4_Ob\n\tUnoltIiWMlO.ezZcY_5etIUmbKC2X9FUfhwWmdqEI0pf3cDCsmFrZPA9c3F0\n\tUi.QK_N4RpBfmyWOJuVEwcVMVXcaXteskZ0oLgjCq3EvCUPtPtO.uhrfniny\n\tFPfe._0bRxJbvrPh0sCmf9.kOXXXUCBz8l63Qq0OWjVa6pMU1b5PbGFk6v5V\n\tNWHf4uLONpLED5Wm1",
        "X-Yahoo-SMTP": "crLrLjSswBAdKO_oWys7UTWLvPXPfbdd3XtEOYM5nEof1j3oy80-",
        "From": "Arnab Basu <arnab_basu@rocketmail.com>",
        "To": "u-boot@lists.denx.de,\n\tAlbert Aribaud <albert.u.boot@aribaud.net>",
        "Date": "Tue, 13 Jan 2015 02:23:27 +0530",
        "Message-Id": "<1421096015-27463-2-git-send-email-arnab_basu@rocketmail.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1421096015-27463-1-git-send-email-arnab_basu@rocketmail.com>",
        "References": "<1421096015-27463-1-git-send-email-arnab_basu@rocketmail.com>",
        "X-Mailman-Approved-At": "Mon, 12 Jan 2015 22:01:16 +0100",
        "Cc": "stuart.yoder@freescale.com, Marc Zyngier <marc.zyngier@arm.com>,\n\tyorksun@freescale.com",
        "Subject": "[U-Boot] [PATCH v2 1/9] ARM: PSCI: Update psci.h for psci v0.2",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.13",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<http://lists.denx.de/mailman/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<http://lists.denx.de/pipermail/u-boot>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "u-boot-bounces@lists.denx.de",
        "Errors-To": "u-boot-bounces@lists.denx.de"
    },
    "content": "Signed-off-by: Arnab Basu <arnab_basu@rocketmail.com>\nCc: Bhupesh Sharma <bhupesh.sharma@freescale.com>\nCc: Marc Zyngier <marc.zyngier@arm.com>\n---\n arch/arm/include/asm/psci.h | 42 +++++++++++++++++++++++++++++++++++++++++-\n 1 file changed, 41 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h\nindex 704b4b0..68579cd 100644\n--- a/arch/arm/include/asm/psci.h\n+++ b/arch/arm/include/asm/psci.h\n@@ -2,6 +2,10 @@\n  * Copyright (C) 2013 - ARM Ltd\n  * Author: Marc Zyngier <marc.zyngier@arm.com>\n  *\n+ * Copyright (C) 2014 - Freescale Semiconductor Ltd\n+ * Author: Arnab Basu <arnab.basu@freescale.com>\n+ *\t   updated file for PSCI v0.2\n+ *\n  * This program is free software; you can redistribute it and/or modify\n  * it under the terms of the GNU General Public License version 2 as\n  * published by the Free Software Foundation.\n@@ -18,7 +22,7 @@\n #ifndef __ARM_PSCI_H__\n #define __ARM_PSCI_H__\n \n-/* PSCI interface */\n+/* PSCI v0.1 interface */\n #define ARM_PSCI_FN_BASE\t\t0x95c1ba5e\n #define ARM_PSCI_FN(n)\t\t\t(ARM_PSCI_FN_BASE + (n))\n \n@@ -27,9 +31,45 @@\n #define ARM_PSCI_FN_CPU_ON\t\tARM_PSCI_FN(2)\n #define ARM_PSCI_FN_MIGRATE\t\tARM_PSCI_FN(3)\n \n+/* PSCI v0.2 interface */\n+#define PSCI_0_2_FN_BASE\t\t0x84000000\n+#define PSCI_0_2_FN(n)\t\t\t(PSCI_0_2_FN_BASE + (n))\n+#define PSCI_0_2_64BIT\t\t\t0x40000000\n+#define PSCI_0_2_FN64_BASE\t\t\\\n+\t\t\t\t(PSCI_0_2_FN_BASE + PSCI_0_2_64BIT)\n+#define PSCI_0_2_FN64(n)\t\t(PSCI_0_2_FN64_BASE + (n))\n+\n+#define PSCI_0_2_FN_PSCI_VERSION\tPSCI_0_2_FN(0)\n+#define PSCI_0_2_FN_CPU_SUSPEND\t\tPSCI_0_2_FN(1)\n+#define PSCI_0_2_FN_CPU_OFF\t\tPSCI_0_2_FN(2)\n+#define PSCI_0_2_FN_CPU_ON\t\tPSCI_0_2_FN(3)\n+#define PSCI_0_2_FN_AFFINITY_INFO\tPSCI_0_2_FN(4)\n+#define PSCI_0_2_FN_MIGRATE\t\tPSCI_0_2_FN(5)\n+#define PSCI_0_2_FN_MIGRATE_INFO_TYPE\tPSCI_0_2_FN(6)\n+#define PSCI_0_2_FN_MIGRATE_INFO_UP_CPU\tPSCI_0_2_FN(7)\n+#define PSCI_0_2_FN_SYSTEM_OFF\t\tPSCI_0_2_FN(8)\n+#define PSCI_0_2_FN_SYSTEM_RESET\tPSCI_0_2_FN(9)\n+\n+#define PSCI_0_2_FN64_CPU_SUSPEND\t\tPSCI_0_2_FN64(1)\n+#define PSCI_0_2_FN64_CPU_ON\t\t\tPSCI_0_2_FN64(3)\n+#define PSCI_0_2_FN64_AFFINITY_INFO\t\tPSCI_0_2_FN64(4)\n+#define PSCI_0_2_FN64_MIGRATE\t\t\tPSCI_0_2_FN64(5)\n+#define PSCI_0_2_FN64_MIGRATE_INFO_UP_CPU\tPSCI_0_2_FN64(7)\n+\n+\n+/*\n+ * Only PSCI return values such as: SUCCESS, NOT_SUPPORTED,\n+ * INVALID_PARAMS, and DENIED defined below are applicable\n+ * to PSCI v0.1.\n+ */\n #define ARM_PSCI_RET_SUCCESS\t\t0\n #define ARM_PSCI_RET_NI\t\t\t(-1)\n #define ARM_PSCI_RET_INVAL\t\t(-2)\n #define ARM_PSCI_RET_DENIED\t\t(-3)\n+#define PSCI_RET_ALREADY_ON\t\t(-4)\n+#define PSCI_RET_ON_PENDING\t\t(-5)\n+#define PSCI_RET_INTERNAL_FAILURE\t(-6)\n+#define PSCI_RET_NOT_PRESENT\t\t(-7)\n+#define PSCI_RET_DISABLED\t\t(-8)\n \n #endif /* __ARM_PSCI_H__ */\n",
    "prefixes": [
        "U-Boot",
        "v2",
        "1/9"
    ]
}