get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1028119,
    "url": "http://patchwork.ozlabs.org/api/patches/1028119/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190120081107.25950-1-xypron.glpk@gmx.de/",
    "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": "<20190120081107.25950-1-xypron.glpk@gmx.de>",
    "list_archive_url": null,
    "date": "2019-01-20T08:11:07",
    "name": "[U-Boot,v2,1/1] powerpc: enabled building with CONFIG_DM=y",
    "commit_ref": "70eb82539baa49407ccf78f79f5bef769fa73fab",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e7285dd23d40f06d55d530224d6c1f0125e28e61",
    "submitter": {
        "id": 61270,
        "url": "http://patchwork.ozlabs.org/api/people/61270/?format=api",
        "name": "Heinrich Schuchardt",
        "email": "xypron.glpk@gmx.de"
    },
    "delegate": {
        "id": 2467,
        "url": "http://patchwork.ozlabs.org/api/users/2467/?format=api",
        "username": "prabhu_kush",
        "first_name": "Prabhakar",
        "last_name": "Kushwaha",
        "email": "prabhakar@freescale.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20190120081107.25950-1-xypron.glpk@gmx.de/mbox/",
    "series": [
        {
            "id": 87151,
            "url": "http://patchwork.ozlabs.org/api/series/87151/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=87151",
            "date": "2019-01-20T08:11:07",
            "name": "[U-Boot,v2,1/1] powerpc: enabled building with CONFIG_DM=y",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/87151/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1028119/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1028119/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=gmx.de"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 43j6p86fwMz9s9G\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 20 Jan 2019 19:11:26 +1100 (AEDT)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 6C2EDC21EC3; Sun, 20 Jan 2019 08:11:22 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id D64C9C21E3B;\n\tSun, 20 Jan 2019 08:11:19 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 538ADC21E3B; Sun, 20 Jan 2019 08:11:18 +0000 (UTC)",
            "from mout.gmx.net (mout.gmx.net [212.227.15.19])\n\tby lists.denx.de (Postfix) with ESMTPS id EEDB6C21C51\n\tfor <u-boot@lists.denx.de>; Sun, 20 Jan 2019 08:11:17 +0000 (UTC)",
            "from LT02.fritz.box ([84.118.159.3]) by mail.gmx.com (mrgmx002\n\t[212.227.17.184]) with ESMTPSA (Nemesis) id 0M5Lmp-1h9Gd316z9-00zZHx;\n\tSun, 20 Jan 2019 09:11:14 +0100"
        ],
        "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\tautolearn=unavailable autolearn_force=no version=3.4.0",
        "From": "Heinrich Schuchardt <xypron.glpk@gmx.de>",
        "To": "Wolfgang Denk <wd@denx.de>,\n\tYork Sun <york.sun@nxp.com>",
        "Date": "Sun, 20 Jan 2019 09:11:07 +0100",
        "Message-Id": "<20190120081107.25950-1-xypron.glpk@gmx.de>",
        "X-Mailer": "git-send-email 2.20.1",
        "MIME-Version": "1.0",
        "X-Provags-ID": "V03:K1:qdsPGQyj9c1kXyppdeXn3tfkdo/R/2GptlrcVNAQ7XcLEwl8ggh\n\tMFOwV0egDd+H9IyKEZvLyOq77OIguDbvcO6ikia03xMa7HQLgdySUMofwaD8FK4O5sbB40J\n\tDW293+ThRe5Z9T/pU+FGAQGERBIws4I8RHzlkq6z6LvHkUQlqHsiaTV6R7IP+lxJFzxepac\n\taGHhK5Im796PERsYeGN7A==",
        "X-UI-Out-Filterresults": "notjunk:1; V03:K0:OhIe05bjWow=:P6qjg+GJEn6sWM7utMPnww\n\tixJi7LVhjEs/ZxYcfnaVu0Ev4VSd4JDNlnoQCOZlh61X2S+vpvYo10Z9GaGfdTlrTebrO/4Pu\n\trP+A6poJjci3PVx6j8J6hVcPDC8gRGs0Egud47WsccLK76XwFgXpMsQIzAdgoxseq3/1i3T+I\n\t10+9JugYp18lHHxyUeCb8Ecp6Z9BtoVBSYSJ/edrRZIybtg/IDRQAdrEEJ+ht0dZSj9l1adfO\n\tE4ECGcEFxtXl053U5owZ0DwbU8g1NRtG2Nm/wRthJ0VO9wul8NWzM4ZFI6jqRWmcZZAGWX3HU\n\tE4WhcLzolZz5LL5PZ9AXWhthYZrv3VNsSwdv1LPumEhqcwuiVNkn6rSKkYa/XWuPIrNdNy5zf\n\t9fKPtbs3ciITb/l2GaMxoIa7fz5llywYZZpb3+E60BCJKVZ685LIShb0Qwl5ep025M+Ns/TM6\n\tbmZ0atG1poVGpUot/3WJ9fehD64lkX5PgfxeHXzbCu7VDgQtoRWm8LgL9u7DKhtaFQ5HgfOAX\n\toZ3tFqO+ZLAJwL5gbuGXe2nrGgfa3TBIm+/oEixOfGTELEhnbFmsp9iVThnASPLvhlDoJvrJy\n\tP/FzgWCQm2onELPVFiEfLQzYkectXlr8bVkFtVa/WRmESF7i2NTpGh/mJpqwazJrq2KLfq9F7\n\t7v9cc2FKKq0PUI+fr3+EcLJMCzQVyg0GesKrumVYskpj+p2zjtKZP0Y0D7jPoDUyshrlAereA\n\touQnZfDt1lTNawNNJGj5tutU18M81ZBH6YAmZyUQkB1K6X9SeQcUW98j3YXDbCx3sCpEHtcBs\n\ts7gwXE7JnCzmT2T9HS/UuHyQMIYk6UqG6n93UtmS8Tt9Pv/oIIROAlL3/uSDLmWSS1rEGSscX\n\tUI8GSWZdCNFhG2L9fYev5Al0ym6ccXUizH/+/x8V45iL31m7A2alJ61s1uvtNNm4lW9MGhLr9\n\ty4gNpMNeHqA==",
        "Cc": "u-boot@lists.denx.de, Heinrich Schuchardt <xypron.glpk@gmx.de>",
        "Subject": "[U-Boot] [PATCH v2 1/1] powerpc: enabled building with CONFIG_DM=y",
        "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>",
        "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": "Moving to the driver model requires CONFIG_DM to be enabled. Currently\nseveral boards like kmeter1_defconfig produce a build error when CONFIG_DM\nis enabled:\n\nIn file included from include/common.h:35,\n                 from ./arch/powerpc/include/asm/fsl_lbc.h:10,\n                 from include/mpc83xx.h:10,\n                 from ./arch/powerpc/include/asm/ppc.h:27,\n                 from ./arch/powerpc/include/asm/u-boot.h:18,\n                 from include/dm/of.h:10,\n                 from include/dm/ofnode.h:12,\n                 from include/dm/device.h:13,\n                 from include/linux/mtd/mtd.h:26,\n                 from drivers/mtd/mtdconcat.c:25:\ninclude/image.h: In function ‘image_check_target_arch’:\ninclude/image.h:846:3: error: #error \"please define IH_ARCH_DEFAULT in\n                       your arch asm/u-boot.h\"\n # error \"please define IH_ARCH_DEFAULT in your arch asm/u-boot.h\"\n   ^~~~~\ninclude/image.h:848:31: error: ‘IH_ARCH_DEFAULT’ undeclared (first use in\n                        this function); did you mean ‘IH_ARCH_COUNT’?\n  return image_check_arch(hdr, IH_ARCH_DEFAULT);\n\nThe error can be avoided by moving the definition of IH_ARCH_DEFAULT before\n\n     #include <asm/ppc.h>\n\nSigned-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>\n---\nv2\n\tmove the comment too\n---\n arch/powerpc/include/asm/u-boot.h | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/arch/powerpc/include/asm/u-boot.h b/arch/powerpc/include/asm/u-boot.h\nindex 9e7e2d45e8..1841565d0a 100644\n--- a/arch/powerpc/include/asm/u-boot.h\n+++ b/arch/powerpc/include/asm/u-boot.h\n@@ -13,11 +13,11 @@\n #ifndef __U_BOOT_H__\n #define __U_BOOT_H__\n \n+/* For image.h:image_check_target_arch() */\n+#define IH_ARCH_DEFAULT IH_ARCH_PPC\n+\n /* Use the generic board which requires a unified bd_info */\n #include <asm-generic/u-boot.h>\n #include <asm/ppc.h>\n \n-/* For image.h:image_check_target_arch() */\n-#define IH_ARCH_DEFAULT IH_ARCH_PPC\n-\n #endif\t/* __U_BOOT_H__ */\n",
    "prefixes": [
        "U-Boot",
        "v2",
        "1/1"
    ]
}