get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 805535,
    "url": "http://patchwork.ozlabs.org/api/patches/805535/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170824153412.24086-1-dennis@ausil.us/",
    "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": "<20170824153412.24086-1-dennis@ausil.us>",
    "list_archive_url": null,
    "date": "2017-08-24T15:34:12",
    "name": "[U-Boot] detect and setup solidrun hummingboard2",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "b47f20ebb39cb828e4ab34d8d31d4d0135ceeaec",
    "submitter": {
        "id": 1879,
        "url": "http://patchwork.ozlabs.org/api/people/1879/?format=api",
        "name": "Dennis Gilmore",
        "email": "dennis@ausil.us"
    },
    "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/20170824153412.24086-1-dennis@ausil.us/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/805535/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/805535/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 3xdSz26k0Tz9s3T\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 25 Aug 2017 01:34:54 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 97D0FC21E70; Thu, 24 Aug 2017 15:34:48 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id A84CCC21DA9;\n\tThu, 24 Aug 2017 15:34:45 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 18ED8C21DA9; Thu, 24 Aug 2017 15:34:45 +0000 (UTC)",
            "from mail.ausil.us (mail02.ausil.us [74.119.218.151])\n\tby lists.denx.de (Postfix) with ESMTP id 6BC17C21D80\n\tfor <u-boot@lists.denx.de>; Thu, 24 Aug 2017 15:34:43 +0000 (UTC)",
            "from localhost (unknown [127.0.0.1])\n\tby mail.ausil.us (Postfix) with ESMTP id 137702E297D;\n\tThu, 24 Aug 2017 15:34:42 +0000 (UTC)",
            "from mail.ausil.us ([127.0.0.1])\n\tby localhost (mail02.ausil.us [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id iVdLPVpg0iWv; Thu, 24 Aug 2017 15:34:25 +0000 (GMT)",
            "from anubis.ausil.us.com (anubis.ausil.us\n\t[IPv6:2607:ff50:3:9:e454:c403:c9f0:87f])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby mail.ausil.us (Postfix) with ESMTPSA id 21B7C2E0233;\n\tThu, 24 Aug 2017 15:34:25 +0000 (GMT)"
        ],
        "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=none autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "X-Virus-Scanned": "amavisd-new at ausil.us",
        "From": "Dennis Gilmore <dennis@ausil.us>",
        "To": "u-boot@lists.denx.de,\n\tfabio.estevam@nxp.com,\n\trabeeh@solid-run.com",
        "Date": "Thu, 24 Aug 2017 10:34:12 -0500",
        "Message-Id": "<20170824153412.24086-1-dennis@ausil.us>",
        "X-Mailer": "git-send-email 2.13.3",
        "Cc": "Dennis Gilmore <dennis@ausil.us>, Dennis Gilmore <dgilmore@redhat.com>",
        "Subject": "[U-Boot] [PATCH] detect and setup solidrun hummingboard2",
        "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": "The hummingboard2 is slightly different to the cubox i and to the\nhummingboard. The GPIO pin info to probe came from solidruns\nfor of u-boot on github.\nhttps://github.com/SolidRun/u-boot-imx6/blob/imx6/board/solidrun/mx6_cubox-i/mx6_cubox-i.c#L569-L589\nI have tested on a hummingboard-edge witha  imx6 solo and 512mb of\nram.\n\nSigned-off-by: Dennis Gilmore <dgilmore@redhat.com>\n---\n board/solidrun/mx6cuboxi/mx6cuboxi.c | 33 ++++++++++++++++++++++++++++++++-\n include/configs/mx6cuboxi.h          |  4 ++++\n 2 files changed, 36 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/board/solidrun/mx6cuboxi/mx6cuboxi.c\nindex 7e59fb259e..43a7a52978 100644\n--- a/board/solidrun/mx6cuboxi/mx6cuboxi.c\n+++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c\n@@ -349,6 +349,7 @@ static bool is_hummingboard(void)\n \t * Machine selection -\n \t * Machine        val1, val2\n \t * -------------------------\n+\t * HB2            x     x\n \t * HB rev 3.x     x     0\n \t * CBi            0     1\n \t * HB             1     1\n@@ -362,9 +363,37 @@ static bool is_hummingboard(void)\n \t\treturn true;\n }\n \n+static bool is_hummingboard2(void)\n+{\n+\tint val1;\n+\n+\tSETUP_IOMUX_PADS(hb_cbi_sense);\n+\n+\tgpio_direction_input(IMX_GPIO_NR(2, 8));\n+\n+        val1 = gpio_get_value(IMX_GPIO_NR(2, 8));\n+\n+\t/*\n+\t * Machine selection -\n+\t * Machine        val1\n+\t * -------------------\n+\t * HB2            0\n+\t * HB rev 3.x     x\n+\t * CBi            x\n+\t * HB             x\n+\t */\n+\n+\tif (val1 == 0)\n+\t\treturn true;\n+\telse\n+\t\treturn false;\n+}\n+\n int checkboard(void)\n {\n-\tif (is_hummingboard())\n+\tif (is_hummingboard2())\n+\t\tputs(\"Board: MX6 Hummingboard2\\n\");\n+\telse if (is_hummingboard())\n \t\tputs(\"Board: MX6 Hummingboard\\n\");\n \telse\n \t\tputs(\"Board: MX6 Cubox-i\\n\");\n@@ -376,6 +405,8 @@ int board_late_init(void)\n {\n #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG\n \tif (is_hummingboard())\n+\t\tenv_set(\"board_name\", \"HUMMINGBOARD2\");\n+\telse if (is_hummingboard())\n \t\tenv_set(\"board_name\", \"HUMMINGBOARD\");\n \telse\n \t\tenv_set(\"board_name\", \"CUBOXI\");\ndiff --git a/include/configs/mx6cuboxi.h b/include/configs/mx6cuboxi.h\nindex 5930f591cb..ce9b5469ee 100644\n--- a/include/configs/mx6cuboxi.h\n+++ b/include/configs/mx6cuboxi.h\n@@ -108,6 +108,10 @@\n \t\t\t\"fi; \"\t\\\n \t\t\"fi\\0\" \\\n \t\"findfdt=\"\\\n+\t\t\"if test $board_name = HUMMINGBOARD2 && test $board_rev = MX6Q ; then \" \\\n+\t\t\t\"setenv fdtfile imx6q-hummingboard2.dtb; fi; \" \\\n+\t\t\"if test $board_name = HUMMINGBOARD2 && test $board_rev = MX6DL ; then \" \\\n+\t\t\t\"setenv fdtfile imx6dl-hummingboard2.dtb; fi; \" \\\n \t\t\"if test $board_name = HUMMINGBOARD && test $board_rev = MX6Q ; then \" \\\n \t\t\t\"setenv fdtfile imx6q-hummingboard.dtb; fi; \" \\\n \t\t\"if test $board_name = HUMMINGBOARD && test $board_rev = MX6DL ; then \" \\\n",
    "prefixes": [
        "U-Boot"
    ]
}