get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 797003,
    "url": "http://patchwork.ozlabs.org/api/patches/797003/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1501741014-84630-1-git-send-email-tomas.melin@vaisala.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": "<1501741014-84630-1-git-send-email-tomas.melin@vaisala.com>",
    "list_archive_url": null,
    "date": "2017-08-03T06:16:54",
    "name": "[U-Boot] cosmetic: bootcount: correct comment for used scratch register",
    "commit_ref": "bac9170fb269eba370e5014d3990c07a083dc508",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "151ad9a407cc3ccaf05eb91c413e7be0ba853747",
    "submitter": {
        "id": 69916,
        "url": "http://patchwork.ozlabs.org/api/people/69916/?format=api",
        "name": "Tomas Melin",
        "email": "tomas.melin@vaisala.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1501741014-84630-1-git-send-email-tomas.melin@vaisala.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/797003/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/797003/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",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xNKbT5P0bz9rxm\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  3 Aug 2017 16:17:25 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid C5BAAC21D82; Thu,  3 Aug 2017 06:17:16 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id C5C67C21C39;\n\tThu,  3 Aug 2017 06:17:13 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 5A936C21C39; Thu,  3 Aug 2017 06:17:12 +0000 (UTC)",
            "from hel-mailgw-01.vaisala.com (hel-mailgw-01.vaisala.com\n\t[193.143.230.17])\n\tby lists.denx.de (Postfix) with ESMTPS id D7CE1C21C35\n\tfor <u-boot@lists.denx.de>; Thu,  3 Aug 2017 06:17:11 +0000 (UTC)",
            "from hel-smtp.corp.vaisala.com ([172.24.1.225])\n\tby hel-mailgw-01.vaisala.com with ESMTP; 03 Aug 2017 09:17:10 +0300",
            "from debian8.corp.vaisala.com ([172.24.65.153]) by\n\tHEL-SMTP.corp.vaisala.com over TLS secured channel with Microsoft\n\tSMTPSVC(8.5.9600.16384); Thu, 3 Aug 2017 09:17:10 +0300"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,\n\tSPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.0",
        "IronPort-PHdr": "=?us-ascii?q?9a23=3AzFwb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JckDu661GhRa0oEk6xajFDqm1NUYnWIbLFJeYh6IkpbmO1fBIfziEPiw?=\n\t=?us-ascii?q?nQfkrDA+2rXMObr9KpHMNWTY1rvse6Y750MP5hA0yIVj4JddEfkkLfbyXAelqN?=\n\t=?us-ascii?q?vdBwR/NgGwwuDPFtx8zYoaUCSEBarPY/CaikOB+u96e7rEX4QSojuoc/U=3D?=",
        "X-IronPort-Anti-Spam-Filtered": "true",
        "X-IronPort-Anti-Spam-Result": "=?us-ascii?q?A2FMBABZv4JZ/+EBGKxcHQEFAQsBGAEFA?=\n\t=?us-ascii?q?QsBhSe4KIVHhHwUAQEBAQEBAQEBAQECgRCCMyKCcVKBUblNOotOMgkBgx6DTop?=\n\t=?us-ascii?q?JhSgFkXiOBIIokgeSQAKVfDaBLDIhJIV1HIFqc4g3AQEB?=",
        "X-IPAS-Result": "=?us-ascii?q?A2FMBABZv4JZ/+EBGKxcHQEFAQsBGAEFAQsBhSe4KIVHhHw?=\n\t=?us-ascii?q?UAQEBAQEBAQEBAQECgRCCMyKCcVKBUblNOotOMgkBgx6DTopJhSgFkXiOBIIok?=\n\t=?us-ascii?q?geSQAKVfDaBLDIhJIV1HIFqc4g3AQEB?=",
        "X-IronPort-AV": "E=Sophos;i=\"5.41,314,1498510800\"; d=\"scan'208\";a=\"44252194\"",
        "From": "Tomas Melin <tomas.melin@vaisala.com>",
        "To": "u-boot@lists.denx.de",
        "Date": "Thu,  3 Aug 2017 09:16:54 +0300",
        "Message-Id": "<1501741014-84630-1-git-send-email-tomas.melin@vaisala.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "X-OriginalArrivalTime": "03 Aug 2017 06:17:10.0773 (UTC)\n\tFILETIME=[24152A50:01D30C20]",
        "Cc": "trini@konsulko.com, sr@denx.de",
        "Subject": "[U-Boot] [PATCH] cosmetic: bootcount: correct comment for used\n\tscratch register",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/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": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>\n---\n drivers/bootcount/bootcount_davinci.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/bootcount/bootcount_davinci.c b/drivers/bootcount/bootcount_davinci.c\nindex fa87b5e..17829be 100644\n--- a/drivers/bootcount/bootcount_davinci.c\n+++ b/drivers/bootcount/bootcount_davinci.c\n@@ -18,9 +18,9 @@ void bootcount_store(ulong a)\n \t\t(struct davinci_rtc *)CONFIG_SYS_BOOTCOUNT_ADDR;\n \n \t/*\n-\t * write RTC kick register to enable write\n-\t * for RTC Scratch registers. Scratch0 and 1 are\n-\t * used for bootcount values.\n+\t * write RTC kick registers to enable write\n+\t * for RTC Scratch registers. Scratch register 2 is\n+\t * used for bootcount value.\n \t */\n \twritel(RTC_KICK0R_WE, &reg->kick0r);\n \twritel(RTC_KICK1R_WE, &reg->kick1r);\n",
    "prefixes": [
        "U-Boot"
    ]
}