get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 807934,
    "url": "http://patchwork.ozlabs.org/api/patches/807934/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1504131194-24902-1-git-send-email-eric@nelint.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": "<1504131194-24902-1-git-send-email-eric@nelint.com>",
    "list_archive_url": null,
    "date": "2017-08-30T22:13:14",
    "name": "[U-Boot,V2] imx: mx7: Add support for USB and normal boot modes",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": false,
    "hash": "4b87a17c393ad8cec989e8b53c19d51db0278ff3",
    "submitter": {
        "id": 67231,
        "url": "http://patchwork.ozlabs.org/api/people/67231/?format=api",
        "name": "Eric Nelson",
        "email": "eric@nelint.com"
    },
    "delegate": {
        "id": 1693,
        "url": "http://patchwork.ozlabs.org/api/users/1693/?format=api",
        "username": "sbabic",
        "first_name": "Stefano",
        "last_name": "Babic",
        "email": "sbabic@denx.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1504131194-24902-1-git-send-email-eric@nelint.com/mbox/",
    "series": [
        {
            "id": 706,
            "url": "http://patchwork.ozlabs.org/api/series/706/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=706",
            "date": "2017-08-30T22:13:14",
            "name": "[U-Boot,V2] imx: mx7: Add support for USB and normal boot modes",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/706/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/807934/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/807934/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\tdkim=fail reason=\"key not found in DNS\" (0-bit key;\n\tsecure) header.d=nelint.com header.i=@nelint.com header.b=\"aYm5BNEV\";\n\tdkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xjKZd39LSz9s81\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 08:15:36 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid B40DEC21D55; Wed, 30 Aug 2017 22:15:25 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 12A19C21C27;\n\tWed, 30 Aug 2017 22:15:23 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 4A37EC21C27; Wed, 30 Aug 2017 22:15:21 +0000 (UTC)",
            "from mail-pf0-f180.google.com (mail-pf0-f180.google.com\n\t[209.85.192.180])\n\tby lists.denx.de (Postfix) with ESMTPS id 91DE5C21C26\n\tfor <u-boot@lists.denx.de>; Wed, 30 Aug 2017 22:15:20 +0000 (UTC)",
            "by mail-pf0-f180.google.com with SMTP id r187so2250520pfr.3\n\tfor <u-boot@lists.denx.de>; Wed, 30 Aug 2017 15:15:20 -0700 (PDT)",
            "from localhost.localdomain\n\t([2600:8800:1300:1c00:a894:22d2:29ef:3774])\n\tby smtp.gmail.com with ESMTPSA id\n\ta14sm3171315pgn.76.2017.08.30.15.15.17\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 30 Aug 2017 15:15:17 -0700 (PDT)"
        ],
        "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=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nelint.com; s=google;\n\th=from:to:cc:subject:date:message-id;\n\tbh=Rf3xfHf6/BM9ti3sQQ9IOJsQWruQEfeyZKQChWfgefQ=;\n\tb=aYm5BNEVALGxi+6f0/OWmzk2jCxXgT2xJJo9LJQfl4CjKqQ7Lta6567M7sx5cyUCfh\n\tEBFIQeXVp147E0/11PhM3fpOIirn4f406HxFokNpOz6OG+1rtKBVEwKTdDB7FCFS9w11\n\toWM10B1r0P4cj8FsKHgHb7kWFYYd2YltYofuU=",
        "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;\n\tbh=Rf3xfHf6/BM9ti3sQQ9IOJsQWruQEfeyZKQChWfgefQ=;\n\tb=N2VEo/viIbtkDsqMKVf1Z1DKDU5NQVPKco8nJ/y0LcHKPt4FhiVojeOvkhRxwq/51Y\n\tM8BPXrtPFFJKDtsg92EZ59jqxaltnrakVmLWEYSpkv2urD6AuTQS8KtO3fnsemMIUO9o\n\tWuxGoH1had3p2TqWcJvO9pL7cSqhEdsDFOyzM3YEMd9M+6bDdh4gs0E6Ikbk4/QP+NY3\n\tbXA/Kvejin+EnEWUqK5QV83v5DaG0C0T/aRLD1Ig8289l+dPnxgo1QZscK8nRFkIHxYg\n\toC2xIvLzY/SrZ73sIRVKtQyUvH1GchNcUqTxQxxuZS5zEhT4ghbnIfHBb7DYMmrtZEA7\n\t1yeA==",
        "X-Gm-Message-State": "AHYfb5jQjVJ/aAwCE2ITEpB/scMDkhlSEX1oB46Pp2ArmYTUiL5JWULN\n\tSO+CujqBJwd/Qlg5BWo=",
        "X-Received": "by 10.98.7.138 with SMTP id 10mr95471pfh.258.1504131318509;\n\tWed, 30 Aug 2017 15:15:18 -0700 (PDT)",
        "From": "Eric Nelson <eric@nelint.com>",
        "To": "u-boot@lists.denx.de",
        "Date": "Wed, 30 Aug 2017 15:13:14 -0700",
        "Message-Id": "<1504131194-24902-1-git-send-email-eric@nelint.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "Cc": "stefan.agner@toradex.com, adrian.alonso@nxp.com, vanessa.maegima@nxp.com,\n\tfabio.estevam@nxp.com",
        "Subject": "[U-Boot] [PATCH V2] imx: mx7: Add support for USB and normal boot\n\tmodes",
        "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": "This adds support for two additional boot modes on the i.MX7D SoC, which\nis most useful when doing U-Boot development on this chip.\n\n1. \"bmode usb\" can be used to force the ROM boot loader's serial\n2. \"bmode normal\" can be used to revert to the normal boot mode\n   as specified by fuses and BOOT_MODE pins\n\nSigned-off-by: Eric Nelson <eric@nelint.com>\n---\nV2 adds \"normal\" mode as suggested by Troy Kisky\n arch/arm/mach-imx/mx7/soc.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch/arm/mach-imx/mx7/soc.c\nindex 87bf105..15be42a 100644\n--- a/arch/arm/mach-imx/mx7/soc.c\n+++ b/arch/arm/mach-imx/mx7/soc.c\n@@ -372,6 +372,9 @@ void set_wdog_reset(struct wdog_regs *wdog)\n  * to SBMR1, which will determine the boot device.\n  */\n const struct boot_mode soc_boot_modes[] = {\n+\t{\"normal\",\tMAKE_CFGVAL(0x00, 0x00, 0x00, 0x00)},\n+\t{\"usb\",\t\tMAKE_CFGVAL(0x01, 0x00, 0x00, 0x00)},\n+\n \t{\"ecspi1:0\",\tMAKE_CFGVAL(0x00, 0x60, 0x00, 0x00)},\n \t{\"ecspi1:1\",\tMAKE_CFGVAL(0x40, 0x62, 0x00, 0x00)},\n \t{\"ecspi1:2\",\tMAKE_CFGVAL(0x80, 0x64, 0x00, 0x00)},\n",
    "prefixes": [
        "U-Boot",
        "V2"
    ]
}