get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 806755,
    "url": "http://patchwork.ozlabs.org/api/patches/806755/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1503949586-24936-1-git-send-email-agust@denx.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": "<1503949586-24936-1-git-send-email-agust@denx.de>",
    "list_archive_url": null,
    "date": "2017-08-28T19:46:26",
    "name": "[U-Boot] imx6: disable clock command and print_cpuinfo code in SPL",
    "commit_ref": "38df37018215215fc83463bba5bdc786813d3c1a",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e7701f34ef87e3e5f5f738d25e13a906b5baae33",
    "submitter": {
        "id": 872,
        "url": "http://patchwork.ozlabs.org/api/people/872/?format=api",
        "name": "Anatolij Gustschin",
        "email": "agust@denx.de"
    },
    "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/1503949586-24936-1-git-send-email-agust@denx.de/mbox/",
    "series": [
        {
            "id": 249,
            "url": "http://patchwork.ozlabs.org/api/series/249/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=249",
            "date": "2017-08-28T19:46:26",
            "name": "[U-Boot] imx6: disable clock command and print_cpuinfo code in SPL",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/249/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/806755/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806755/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 3xh2MT6FWtz9s7M\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 29 Aug 2017 05:46:28 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 06572C22495; Mon, 28 Aug 2017 19:46:19 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id E5B98C22339;\n\tMon, 28 Aug 2017 19:46:16 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 62C91C22517; Mon, 28 Aug 2017 19:46:15 +0000 (UTC)",
            "from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9])\n\tby lists.denx.de (Postfix) with ESMTPS id 01C14C22495\n\tfor <u-boot@lists.denx.de>; Mon, 28 Aug 2017 19:46:15 +0000 (UTC)",
            "from frontend01.mail.m-online.net (unknown [192.168.8.182])\n\tby mail-out.m-online.net (Postfix) with ESMTP id 3xh2MB5nmnz1rCxX;\n\tMon, 28 Aug 2017 21:46:14 +0200 (CEST)",
            "from localhost (dynscan1.mnet-online.de [192.168.6.70])\n\tby mail.m-online.net (Postfix) with ESMTP id 3xh2MB5Gj8z3jgYb;\n\tMon, 28 Aug 2017 21:46:14 +0200 (CEST)",
            "from mail.mnet-online.de ([192.168.8.182])\n\tby localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new,\n\tport 10024)\n\twith ESMTP id EJ9odoNK297P; Mon, 28 Aug 2017 21:46:13 +0200 (CEST)",
            "from crub.agik.hopto.org (p4FCB44C5.dip0.t-ipconnect.de\n\t[79.203.68.197]) (using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mail.mnet-online.de (Postfix) with ESMTPSA;\n\tMon, 28 Aug 2017 21:46:13 +0200 (CEST)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,\n\tRCVD_IN_MSPIKE_H3,\n\tRCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no\n\tversion=3.4.0",
        "X-Virus-Scanned": "amavisd-new at mnet-online.de",
        "X-Auth-Info": "rcyZoZNtyfsdQqQRlIJWIK0i/KpTOQQre9eaatqGI5g=",
        "From": "Anatolij Gustschin <agust@denx.de>",
        "To": "u-boot@lists.denx.de",
        "Date": "Mon, 28 Aug 2017 21:46:26 +0200",
        "Message-Id": "<1503949586-24936-1-git-send-email-agust@denx.de>",
        "X-Mailer": "git-send-email 2.7.4",
        "Subject": "[U-Boot] [PATCH] imx6: disable clock command and print_cpuinfo code\n\tin SPL",
        "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": "We do not use print_cpuinfo and clock command code in SPL,\ndisable it when building SPL image.\n\nSigned-off-by: Anatolij Gustschin <agust@denx.de>\n---\n arch/arm/mach-imx/cpu.c       |  4 ++--\n arch/arm/mach-imx/mx6/clock.c | 30 ++++++++++++++++--------------\n 2 files changed, 18 insertions(+), 16 deletions(-)",
    "diff": "diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c\nindex 1017eb8..18205dc 100644\n--- a/arch/arm/mach-imx/cpu.c\n+++ b/arch/arm/mach-imx/cpu.c\n@@ -25,7 +25,7 @@\n #include <fsl_esdhc.h>\n #endif\n \n-#if defined(CONFIG_DISPLAY_CPUINFO)\n+#if defined(CONFIG_DISPLAY_CPUINFO) && !defined(CONFIG_SPL_BUILD)\n static u32 reset_cause = -1;\n \n static char *get_reset_cause(void)\n@@ -132,7 +132,7 @@ unsigned imx_ddr_size(void)\n }\n #endif\n \n-#if defined(CONFIG_DISPLAY_CPUINFO)\n+#if defined(CONFIG_DISPLAY_CPUINFO) && !defined(CONFIG_SPL_BUILD)\n \n const char *get_imx_type(u32 imxtype)\n {\ndiff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c\nindex 0e019c4..71a9e6b 100644\n--- a/arch/arm/mach-imx/mx6/clock.c\n+++ b/arch/arm/mach-imx/mx6/clock.c\n@@ -1220,6 +1220,20 @@ void enable_thermal_clk(void)\n \tenable_pll3();\n }\n \n+#ifdef CONFIG_MTD_NOR_FLASH\n+void enable_eim_clk(unsigned char enable)\n+{\n+\tu32 reg;\n+\n+\treg = __raw_readl(&imx_ccm->CCGR6);\n+\tif (enable)\n+\t\treg |= MXC_CCM_CCGR6_EMI_SLOW_MASK;\n+\telse\n+\t\treg &= ~MXC_CCM_CCGR6_EMI_SLOW_MASK;\n+\t__raw_writel(reg, &imx_ccm->CCGR6);\n+}\n+#endif\n+\n unsigned int mxc_get_clock(enum mxc_clock clk)\n {\n \tswitch (clk) {\n@@ -1262,6 +1276,7 @@ unsigned int mxc_get_clock(enum mxc_clock clk)\n \treturn 0;\n }\n \n+#ifndef CONFIG_SPL_BUILD\n /*\n  * Dump some core clockes.\n  */\n@@ -1463,20 +1478,6 @@ void select_ldb_di_clock_source(enum ldb_di_clock clk)\n }\n #endif\n \n-#ifdef CONFIG_MTD_NOR_FLASH\n-void enable_eim_clk(unsigned char enable)\n-{\n-\tu32 reg;\n-\n-\treg = __raw_readl(&imx_ccm->CCGR6);\n-\tif (enable)\n-\t\treg |= MXC_CCM_CCGR6_EMI_SLOW_MASK;\n-\telse\n-\t\treg &= ~MXC_CCM_CCGR6_EMI_SLOW_MASK;\n-\t__raw_writel(reg, &imx_ccm->CCGR6);\n-}\n-#endif\n-\n /***************************************************/\n \n U_BOOT_CMD(\n@@ -1484,3 +1485,4 @@ U_BOOT_CMD(\n \t\"display clocks\",\n \t\"\"\n );\n+#endif\n",
    "prefixes": [
        "U-Boot"
    ]
}