get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1421825,
    "url": "http://patchwork.ozlabs.org/api/patches/1421825/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20210103092633.36226-10-jernej.skrabec@siol.net/",
    "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": "<20210103092633.36226-10-jernej.skrabec@siol.net>",
    "list_archive_url": null,
    "date": "2021-01-03T09:26:25",
    "name": "[09/17] sunxi: add support for H616 uart0",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "941a98aafcaa3954ebb8288b260e6979317b4907",
    "submitter": {
        "id": 70601,
        "url": "http://patchwork.ozlabs.org/api/people/70601/?format=api",
        "name": "Jernej Škrabec",
        "email": "jernej.skrabec@siol.net"
    },
    "delegate": {
        "id": 114289,
        "url": "http://patchwork.ozlabs.org/api/users/114289/?format=api",
        "username": "apritzel",
        "first_name": "Andre",
        "last_name": "Przywara",
        "email": "andre.przywara@arm.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20210103092633.36226-10-jernej.skrabec@siol.net/mbox/",
    "series": [
        {
            "id": 222511,
            "url": "http://patchwork.ozlabs.org/api/series/222511/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=222511",
            "date": "2021-01-03T09:26:16",
            "name": "sunxi: Introduce H616 support",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/222511/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1421825/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1421825/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 spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)",
            "ozlabs.org;\n dmarc=fail (p=none dis=none) header.from=siol.net",
            "phobos.denx.de;\n dmarc=fail (p=none dis=none) header.from=siol.net",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=siol.net",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=jernej.skrabec@siol.net"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4D7tjp5W4gz9sVn\n\tfor <incoming@patchwork.ozlabs.org>; Sun,  3 Jan 2021 20:28:46 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 257ED8268F;\n\tSun,  3 Jan 2021 10:27:16 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id C483982675; Sun,  3 Jan 2021 10:27:12 +0100 (CET)",
            "from mail.siol.net (mailoutvs30.siol.net [185.57.226.221])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 1EB418266B\n for <u-boot@lists.denx.de>; Sun,  3 Jan 2021 10:27:10 +0100 (CET)",
            "from localhost (localhost [127.0.0.1])\n by mail.siol.net (Zimbra) with ESMTP id BF00B522D16;\n Sun,  3 Jan 2021 10:27:09 +0100 (CET)",
            "from mail.siol.net ([127.0.0.1])\n by localhost (psrvmta12.zcs-production.pri [127.0.0.1]) (amavisd-new,\n port 10032)\n with ESMTP id yz_hmoKRvHFH; Sun,  3 Jan 2021 10:27:09 +0100 (CET)",
            "from mail.siol.net (localhost [127.0.0.1])\n by mail.siol.net (Zimbra) with ESMTPS id 850F3522D2B;\n Sun,  3 Jan 2021 10:27:09 +0100 (CET)",
            "from localhost.localdomain (89-212-178-211.dynamic.t-2.net\n [89.212.178.211]) (Authenticated sender: 031275009)\n by mail.siol.net (Zimbra) with ESMTPSA id 4DADD522D16;\n Sun,  3 Jan 2021 10:27:07 +0100 (CET)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,\n SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2",
        "From": "Jernej Skrabec <jernej.skrabec@siol.net>",
        "To": "jagan@amarulasolutions.com,\n\tandre.przywara@arm.com",
        "Cc": "hdegoede@redhat.com, jernej.skrabec@siol.net, lukma@denx.de, hs@denx.de,\n peng.fan@nxp.com, joe.hershberger@ni.com, jh80.chung@samsung.com,\n u-boot@lists.denx.de, linux-sunxi@googlegroups.com",
        "Subject": "[PATCH 09/17] sunxi: add support for H616 uart0",
        "Date": "Sun,  3 Jan 2021 10:26:25 +0100",
        "Message-Id": "<20210103092633.36226-10-jernej.skrabec@siol.net>",
        "X-Mailer": "git-send-email 2.30.0",
        "In-Reply-To": "<20210103092633.36226-1-jernej.skrabec@siol.net>",
        "References": "<20210103092633.36226-1-jernej.skrabec@siol.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "quoted-printable",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://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 <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.102.3 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "This port is used for debug terminal on all known H616 boards.\n\nSigned-off-by: Jernej Skrabec <jernej.skrabec@siol.net>\n---\n arch/arm/include/asm/arch-sunxi/gpio.h | 1 +\n arch/arm/mach-sunxi/board.c            | 4 ++++\n 2 files changed, 5 insertions(+)",
    "diff": "diff --git a/arch/arm/include/asm/arch-sunxi/gpio.h b/arch/arm/include/asm/arch-sunxi/gpio.h\nindex f817d328f432..cdb7dbd5b8e5 100644\n--- a/arch/arm/include/asm/arch-sunxi/gpio.h\n+++ b/arch/arm/include/asm/arch-sunxi/gpio.h\n@@ -206,6 +206,7 @@ enum sunxi_gpio_number {\n #define SUN6I_GPH_UART0\t\t2\n #define SUN9I_GPH_UART0\t\t2\n #define SUN50I_H6_GPH_UART0\t2\n+#define SUN50I_H616_GPH_UART0\t2\n \n #define SUNXI_GPI_SDC3\t\t2\n #define SUN7I_GPI_TWI3\t\t3\ndiff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c\nindex 296efd615769..2dece395aa7c 100644\n--- a/arch/arm/mach-sunxi/board.c\n+++ b/arch/arm/mach-sunxi/board.c\n@@ -116,6 +116,10 @@ static int gpio_init(void)\n \tsunxi_gpio_set_cfgpin(SUNXI_GPH(0), SUN50I_H6_GPH_UART0);\n \tsunxi_gpio_set_cfgpin(SUNXI_GPH(1), SUN50I_H6_GPH_UART0);\n \tsunxi_gpio_set_pull(SUNXI_GPH(1), SUNXI_GPIO_PULL_UP);\n+#elif CONFIG_CONS_INDEX == 1 && defined(CONFIG_MACH_SUN50I_H616)\n+\tsunxi_gpio_set_cfgpin(SUNXI_GPH(0), SUN50I_H616_GPH_UART0);\n+\tsunxi_gpio_set_cfgpin(SUNXI_GPH(1), SUN50I_H616_GPH_UART0);\n+\tsunxi_gpio_set_pull(SUNXI_GPH(1), SUNXI_GPIO_PULL_UP);\n #elif CONFIG_CONS_INDEX == 1 && defined(CONFIG_MACH_SUN8I_A83T)\n \tsunxi_gpio_set_cfgpin(SUNXI_GPB(9), SUN8I_A83T_GPB_UART0);\n \tsunxi_gpio_set_cfgpin(SUNXI_GPB(10), SUN8I_A83T_GPB_UART0);\n",
    "prefixes": [
        "09/17"
    ]
}