get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 906567,
    "url": "http://patchwork.ozlabs.org/api/patches/906567/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20180430083436.72659-1-manu@freebsd.org/",
    "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": "<20180430083436.72659-1-manu@freebsd.org>",
    "list_archive_url": null,
    "date": "2018-04-30T08:34:36",
    "name": "[U-Boot,4/5] cmd: go: Flush cache before starting",
    "commit_ref": null,
    "pull_url": null,
    "state": "deferred",
    "archived": false,
    "hash": "61a18e173d65fe3239dc054b5ca0e7764ac28b97",
    "submitter": {
        "id": 69285,
        "url": "http://patchwork.ozlabs.org/api/people/69285/?format=api",
        "name": "Emmanuel Vadot",
        "email": "manu@freebsd.org"
    },
    "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/20180430083436.72659-1-manu@freebsd.org/mbox/",
    "series": [
        {
            "id": 41739,
            "url": "http://patchwork.ozlabs.org/api/series/41739/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=41739",
            "date": "2018-04-30T08:34:36",
            "name": null,
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/41739/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/906567/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/906567/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>)",
            "ozlabs.org;\n\tdmarc=none (p=none dis=none) header.from=freebsd.org"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 40ZJ961y3Rz9s06\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 30 Apr 2018 18:48:26 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid CED56C21F3D; Mon, 30 Apr 2018 08:46:59 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 4FCC4C21E36;\n\tMon, 30 Apr 2018 08:39:11 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 77FD3C21F92; Mon, 30 Apr 2018 08:34:50 +0000 (UTC)",
            "from mail.blih.net (mail.blih.net [212.83.177.182])\n\tby lists.denx.de (Postfix) with ESMTPS id 0F8FAC21F4E\n\tfor <u-boot@lists.denx.de>; Mon, 30 Apr 2018 08:34:46 +0000 (UTC)",
            "from mail.blih.net (mail.blih.net [212.83.177.182])\n\tby mail.blih.net (OpenSMTPD) with ESMTP id 9dd58c77\n\tfor <u-boot@lists.denx.de>; Mon, 30 Apr 2018 10:34:45 +0200 (CEST)",
            "from wopr.blih.net (62-210-199-19.rev.poneytelecom.eu\n\t[62.210.199.19])\n\tby mail.blih.net (OpenSMTPD) with ESMTPSA id 0fea6cbf\n\tTLS version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO\n\tfor <u-boot@lists.denx.de>; Mon, 30 Apr 2018 10:34:38 +0200 (CEST)",
            "from elbarto (uid 1001) (envelope-from manu@bidouilliste.com)\n\tid 7c9ae by wopr.blih.net (DragonFly Mail Agent v0.11);\n\tMon, 30 Apr 2018 10:34:37 +0200"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY\n\tautolearn=unavailable autolearn_force=no version=3.4.0",
        "From": "Emmanuel Vadot <manu@freebsd.org>",
        "To": "sjg@chromium.org, bmeng.cn@gmail.com, andriy.shevchenko@linux.intel.com, \n\trick@andestech.com, philipp.tomsich@theobroma-systems.com,\n\talbert.u.boot@aribaud.net, xypron.glpk@gmx.de",
        "Date": "Mon, 30 Apr 2018 10:34:36 +0200",
        "Message-Id": "<20180430083436.72659-1-manu@freebsd.org>",
        "X-Mailer": "git-send-email 2.16.3",
        "Cc": "u-boot@lists.denx.de",
        "Subject": "[U-Boot] [PATCH 4/5] cmd: go: Flush cache before starting",
        "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": "Some application might load some code at location that contain stale\ncache entries. Before running a elf or raw binary, flush the caches\nif they are enabled.\n\nSigned-off-by: Emmanuel Vadot <manu@freebsd.org>\n---\n cmd/boot.c | 10 ++++++++++\n 1 file changed, 10 insertions(+)",
    "diff": "diff --git a/cmd/boot.c b/cmd/boot.c\nindex 72f2cf362d..0b3979f6a5 100644\n--- a/cmd/boot.c\n+++ b/cmd/boot.c\n@@ -19,6 +19,16 @@ __attribute__((weak))\n unsigned long do_go_exec(ulong (*entry)(int, char * const []), int argc,\n \t\t\t\t char * const argv[])\n {\n+#if defined(CONFIG_SYS_HAVE_DCACHE_MAINTENANCE) && \\\n+\t!defined(CONFIG_SYS_DCACHE_OFF)\n+\tif (dcache_status())\n+\t\tflush_dcache_all();\n+#endif\n+#if defined(CONFIG_SYS_HAVE_ICACHE_MAINTENANCE) && \\\n+\t!defined(CONFIG_SYS_ICACHE_OFF)\n+\tif (icache_status())\n+\t\tinvalidate_icache_all();\n+#endif\n \treturn entry (argc, argv);\n }\n \n",
    "prefixes": [
        "U-Boot",
        "4/5"
    ]
}