get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808788,
    "url": "http://patchwork.ozlabs.org/api/patches/808788/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1504282319-21309-3-git-send-email-aford173@gmail.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": "<1504282319-21309-3-git-send-email-aford173@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-01T16:11:57",
    "name": "[U-Boot,V2,2/4] arm: da850-evm: Enable DM and device tree support for da850-evm",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "21058e1e96ca2e11c3d103545c8b7eaf201e2d47",
    "submitter": {
        "id": 67132,
        "url": "http://patchwork.ozlabs.org/api/people/67132/?format=api",
        "name": "Adam Ford",
        "email": "aford173@gmail.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/1504282319-21309-3-git-send-email-aford173@gmail.com/mbox/",
    "series": [
        {
            "id": 1062,
            "url": "http://patchwork.ozlabs.org/api/series/1062/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=1062",
            "date": "2017-09-01T16:11:55",
            "name": "Migrate DA850-evm to Driver Model",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/1062/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808788/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808788/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=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"bkelfwiI\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xkPRG10h4z9sRV\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  2 Sep 2017 02:12:58 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid D0656C21EDF; Fri,  1 Sep 2017 16:12:26 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 44DDFC21EDC;\n\tFri,  1 Sep 2017 16:12:20 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid B1FB5C21F05; Fri,  1 Sep 2017 16:12:14 +0000 (UTC)",
            "from mail-io0-f194.google.com (mail-io0-f194.google.com\n\t[209.85.223.194])\n\tby lists.denx.de (Postfix) with ESMTPS id 0CFBBC21F25\n\tfor <u-boot@lists.denx.de>; Fri,  1 Sep 2017 16:12:11 +0000 (UTC)",
            "by mail-io0-f194.google.com with SMTP id f99so713225ioi.0\n\tfor <u-boot@lists.denx.de>; Fri, 01 Sep 2017 09:12:10 -0700 (PDT)",
            "from ubuntu16.lan (c-73-65-120-235.hsd1.mn.comcast.net.\n\t[73.65.120.235]) by smtp.gmail.com with ESMTPSA id\n\tp128sm246362iod.11.2017.09.01.09.12.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 01 Sep 2017 09:12:09 -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=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=qJP8WOH1wlODrUnn4PBNe5EDzukDDamrorRzRq+coWw=;\n\tb=bkelfwiIKrm+QlSP10g4Fozgbiu6SSV/2nFSuJnLNX+Em7BnsK65X85nP+bZpE5Ade\n\twBtKvK6z+AoM6qTKHuHS3jMDGKOyY7t/UFXsl3f7fxa48m02unFaykLFVgK2Nzpwi0ST\n\t6AX0Hw6VVmDsVa0EHY8r9sCemFhlFVaYWpbRleH0wAHNkuO15Kg1wp3QlgWRN/USDno8\n\tsHVFc7EahaTsOrhwsTwQfRtN1sRGsrpSi/HqKclLqLyH2MIth8+7+GdmDPj735zJUPpw\n\t+V55GCzf/p79iYXMhbud3bwLOMB3Z/raM9MG5Td7W2QG3KsGvswdtNk/QAD02/Cz7ahd\n\tOtQQ==",
        "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:in-reply-to\n\t:references;\n\tbh=qJP8WOH1wlODrUnn4PBNe5EDzukDDamrorRzRq+coWw=;\n\tb=ZRDezMPi45Zz5TxfyR3zlEAp/AJUPOP4haGKo4QUBjU+VPI2QX/7iYNkO6AEmL14Qf\n\tMe+TUQtDBgyaRzmuhVno1QqhBhaYg6exwNrEZkL0fw75/Dko888wpy0CC1hBdGAcZkiV\n\t9aVcXmbQBKHBNKPlLyy65S8HQS2giS9QASB4W6gMJ8BoS32L6Yy27JINezJ7R1F102pz\n\tjZbBGBHOfAC0PUI2FzFy4cCGOr06zHt2RyflDs+ZB+RxJpxhq73A8vF6/I2IHBrxwFxJ\n\tRcWCTZyk4MMMYodrJOnZXC0lEvHLx7sYNqNk/4UAtUZTKGFmORg2VVm7XxtTHAUP0KZj\n\tE0hA==",
        "X-Gm-Message-State": "AHPjjUgcwFYve9DOiPvxeERU5l4V1+nC1d2YGx9/PUTzk2lbWkFsxuhh\n\thNCyTNR41FfWl5YlVLQ=",
        "X-Google-Smtp-Source": "ADKCNb5BA4utc0LT8bgTIQcxyx2vacwlqbkyVRJqzEn8stMgPxuCI5FRaGPVzR7rjCjCPQF3+J6MCA==",
        "X-Received": "by 10.36.204.138 with SMTP id x132mr244723itf.100.1504282329683; \n\tFri, 01 Sep 2017 09:12:09 -0700 (PDT)",
        "From": "Adam Ford <aford173@gmail.com>",
        "To": "u-boot@lists.denx.de",
        "Date": "Fri,  1 Sep 2017 11:11:57 -0500",
        "Message-Id": "<1504282319-21309-3-git-send-email-aford173@gmail.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1504282319-21309-1-git-send-email-aford173@gmail.com>",
        "References": "<1504282319-21309-1-git-send-email-aford173@gmail.com>",
        "Cc": "jagan@openedev.com, trini@konsulko.com",
        "Subject": "[U-Boot] [Patch V2 2/4] arm: da850-evm: Enable DM and device tree\n\tsupport for da850-evm",
        "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": "With the device tree ported and DM compatible drivers, enable:\nOF_CONTROL, DM_SPI, DM_SPI_FLASH and DM_SERIAL\n\nSigned-off-by: Adam Ford <aford173@gmail.com>\n---\n configs/da850evm_defconfig |  9 +++++++--\n include/configs/da850evm.h | 17 +++++++++++++++--\n 2 files changed, 22 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig\nindex 0135e7d..652da01 100644\n--- a/configs/da850evm_defconfig\n+++ b/configs/da850evm_defconfig\n@@ -6,8 +6,8 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y\n CONFIG_SPL_SERIAL_SUPPORT=y\n CONFIG_SPL_SPI_FLASH_SUPPORT=y\n CONFIG_SPL_SPI_SUPPORT=y\n+CONFIG_DEFAULT_DEVICE_TREE=\"da850-evm\"\n CONFIG_SYS_EXTRA_OPTIONS=\"MAC_ADDR_IN_SPIFLASH\"\n-CONFIG_ENV_IS_IN_SPI_FLASH=y\n CONFIG_BOOTDELAY=3\n CONFIG_USE_BOOTARGS=y\n CONFIG_BOOTARGS=\"mem=32M console=ttyS2,115200n8 root=/dev/mtdblock2 rw noinitrd ip=dhcp\"\n@@ -34,8 +34,13 @@ CONFIG_CMD_PING=y\n CONFIG_CMD_EXT2=y\n CONFIG_CMD_FAT=y\n CONFIG_CMD_DIAG=y\n+CONFIG_OF_CONTROL=y\n+CONFIG_ENV_IS_IN_SPI_FLASH=y\n+CONFIG_DM=y\n+CONFIG_DM_SPI_FLASH=y\n CONFIG_SPI_FLASH=y\n CONFIG_SPI_FLASH_STMICRO=y\n CONFIG_SPI_FLASH_WINBOND=y\n+CONFIG_DM_SERIAL=y\n CONFIG_SYS_NS16550=y\n-CONFIG_OF_LIBFDT=y\n+CONFIG_DM_SPI=y\ndiff --git a/include/configs/da850evm.h b/include/configs/da850evm.h\nindex 0736b39..b147bc5 100644\n--- a/include/configs/da850evm.h\n+++ b/include/configs/da850evm.h\n@@ -21,6 +21,15 @@\n #endif\n \n /*\n+* Disable DM_* for SPL build and can be re-enabled after adding\n+* DM support in SPL\n+*/\n+#ifdef CONFIG_SPL_BUILD\n+#undef CONFIG_DM_SPI\n+#undef CONFIG_DM_SPI_FLASH\n+#undef CONFIG_DM_I2C\n+#endif\n+/*\n  * SoC Configuration\n  */\n #define CONFIG_MACH_DAVINCI_DA850_EVM\n@@ -130,18 +139,23 @@\n /*\n  * Serial Driver info\n  */\n+\n+#ifdef CONFIG_SPL_BUILD\n #define CONFIG_SYS_NS16550_SERIAL\n #define CONFIG_SYS_NS16550_REG_SIZE\t-4\t/* NS16550 register size */\n #define CONFIG_SYS_NS16550_COM1\tDAVINCI_UART2_BASE /* Base address of UART2 */\n+#endif\n #define CONFIG_SYS_NS16550_CLK\tclk_get(DAVINCI_UART2_CLKID)\n #define CONFIG_CONS_INDEX\t1\t\t/* use UART0 for console */\n \n #define CONFIG_SPI\n #define CONFIG_DAVINCI_SPI\n-#define CONFIG_SYS_SPI_BASE\t\tDAVINCI_SPI1_BASE\n #define CONFIG_SYS_SPI_CLK\t\tclk_get(DAVINCI_SPI1_CLKID)\n+#ifdef CONFIG_SPL_BUILD\n+#define CONFIG_SYS_SPI_BASE\t\tDAVINCI_SPI1_BASE\n #define CONFIG_SF_DEFAULT_SPEED\t\t30000000\n #define CONFIG_ENV_SPI_MAX_HZ\tCONFIG_SF_DEFAULT_SPEED\n+#endif\n \n #ifdef CONFIG_USE_SPIFLASH\n #define CONFIG_SPL_SPI_LOAD\n@@ -152,7 +166,6 @@\n /*\n  * I2C Configuration\n  */\n-#define CONFIG_SYS_I2C\n #define CONFIG_SYS_I2C_DAVINCI\n #define CONFIG_SYS_DAVINCI_I2C_SPEED\t\t25000\n #define CONFIG_SYS_DAVINCI_I2C_SLAVE   10 /* Bogus, master-only in U-Boot */\n",
    "prefixes": [
        "U-Boot",
        "V2",
        "2/4"
    ]
}