get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 955958,
    "url": "http://patchwork.ozlabs.org/api/patches/955958/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20180810060711.6547-8-jagan@amarulasolutions.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": "<20180810060711.6547-8-jagan@amarulasolutions.com>",
    "list_archive_url": null,
    "date": "2018-08-10T06:06:25",
    "name": "[U-Boot,v2,07/53] clk: sunxi: Add Allwinner A10s/A13 CLK driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "ed9b53da30aacddf91495aecbd0dd274693acd1d",
    "submitter": {
        "id": 69820,
        "url": "http://patchwork.ozlabs.org/api/people/69820/?format=api",
        "name": "Jagan Teki",
        "email": "jagan@amarulasolutions.com"
    },
    "delegate": {
        "id": 17739,
        "url": "http://patchwork.ozlabs.org/api/users/17739/?format=api",
        "username": "jagan",
        "first_name": "Jagannadha Sutradharudu",
        "last_name": "Teki",
        "email": "jagannadh.teki@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20180810060711.6547-8-jagan@amarulasolutions.com/mbox/",
    "series": [
        {
            "id": 60190,
            "url": "http://patchwork.ozlabs.org/api/series/60190/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=60190",
            "date": "2018-08-10T06:06:18",
            "name": "clk: Add Allwinner CLK, RESET support",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/60190/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/955958/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/955958/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; dmarc=none (p=none dis=none)\n\theader.from=amarulasolutions.com",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=amarulasolutions.com\n\theader.i=@amarulasolutions.com header.b=\"plTCH/Om\"; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 41mw1R4kntz9s7Q\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 10 Aug 2018 16:18:51 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 599DBC21F53; Fri, 10 Aug 2018 06:12:00 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id E7C86C21DD9;\n\tFri, 10 Aug 2018 06:08:49 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid AE545C21D83; Fri, 10 Aug 2018 06:08:12 +0000 (UTC)",
            "from mail-pl0-f68.google.com (mail-pl0-f68.google.com\n\t[209.85.160.68])\n\tby lists.denx.de (Postfix) with ESMTPS id 8D0DEC21DFA\n\tfor <u-boot@lists.denx.de>; Fri, 10 Aug 2018 06:08:05 +0000 (UTC)",
            "by mail-pl0-f68.google.com with SMTP id g6-v6so3588800plq.9\n\tfor <u-boot@lists.denx.de>; Thu, 09 Aug 2018 23:08:05 -0700 (PDT)",
            "from localhost.localdomain ([183.82.228.250])\n\tby smtp.gmail.com with ESMTPSA id\n\tr23-v6sm16880975pfj.5.2018.08.09.23.08.00\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 09 Aug 2018 23:08:03 -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=RCVD_IN_MSPIKE_H3,\n\tRCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=amarulasolutions.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=JrL4PwIQVEfNFs3AO0c2riZBEr9cr5sGFUQsrs8VDZY=;\n\tb=plTCH/OmYqQ1WBZohUXjORNKQMKjxKdXhf7HQrwgkbXjTqbJyZ8NdOhwOL46CJC9V+\n\t6xKbhH+qyT2j2+tvfMG44QzWfI9QSxTr/DPbqXQRtfaH9p2G8HZUxwF/I5IJ77k9FPRg\n\tCz/UBiH63r5TlWlIJJWViUdpa8I5sWdrfUiqM=",
        "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:mime-version:content-transfer-encoding;\n\tbh=JrL4PwIQVEfNFs3AO0c2riZBEr9cr5sGFUQsrs8VDZY=;\n\tb=LHo9nt+l6nXPque1v7gMV30SA1lGbuyyiz4+Ho8gYBkhElzAvlD4sXCYirLg6gRmti\n\t5iTYd614fX91+OeE17asubQYyXFgx/zZZt4nUBnJrrCsXjXcgEzHXK1GpKwlnX3VksA1\n\tVPjS5l3ZM0/0FehyisB3Tv9k2rtnej6ntkGTjD0e0JYC+GnwZpAZMOm464u5i6gdnPDQ\n\tgvSTYMS6sYJ9XnElRl6u3CWfn7s3vNLgbHJqNxVmyIgjccSiqAXgjvIV52x5GRPcXEwI\n\t7CvKepiGm558gTBad2isRWpc+qaJjC4zkIWhDTLj6mIZ/K2Y2V1u1uE/PMuVTsrhO7Dm\n\ti7Qg==",
        "X-Gm-Message-State": "AOUpUlGUS6P3ko2cE2M4oH3M3CPm1yeuQhhwuxh6tOn38l8jlM1/UUJz\n\tM2yM1Hma68HhgafhWB7l1HyzC2HXLsA=",
        "X-Google-Smtp-Source": "AA+uWPxLnR2FCJJqyR58rstuu3SNiuokVPKkQA0ie1V3Lu5Rs8m8uxzN5ZnWkY2LSjYNKybwEZgVmQ==",
        "X-Received": "by 2002:a17:902:6907:: with SMTP id\n\tj7-v6mr4847776plk.323.1533881284164; \n\tThu, 09 Aug 2018 23:08:04 -0700 (PDT)",
        "From": "Jagan Teki <jagan@amarulasolutions.com>",
        "To": "Maxime Ripard <maxime.ripard@bootlin.com>,\n\tAndre Przywara <andre.przywara@arm.com>, Chen-Yu Tsai <wens@csie.org>,\n\tIcenowy Zheng <icenowy@aosc.io>",
        "Date": "Fri, 10 Aug 2018 11:36:25 +0530",
        "Message-Id": "<20180810060711.6547-8-jagan@amarulasolutions.com>",
        "X-Mailer": "git-send-email 2.18.0.321.gffc6fa0e3",
        "In-Reply-To": "<20180810060711.6547-1-jagan@amarulasolutions.com>",
        "References": "<20180810060711.6547-1-jagan@amarulasolutions.com>",
        "MIME-Version": "1.0",
        "Cc": "Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de",
        "Subject": "[U-Boot] [PATCH v2 07/53] clk: sunxi: Add Allwinner A10s/A13 CLK\n\tdriver",
        "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": "Add initial clock driver for Allwinner A10s/A13.\n\n- Implement USB ahb and USB clocks via ccu_clk_map descriptor\n  for A10s/A13, so it can accessed in common clk enable and disable\n  functions from clk_sunxi.c\n- Implement USB resets via ccu_reset_map descriptor for A10s/A13,\n  so it can accessed in common reset deassert and assert functions\n  from reset-sunxi.c\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\n---\n drivers/clk/sunxi/Kconfig    |  7 ++++\n drivers/clk/sunxi/Makefile   |  1 +\n drivers/clk/sunxi/clk_a10s.c | 74 ++++++++++++++++++++++++++++++++++++\n 3 files changed, 82 insertions(+)\n create mode 100644 drivers/clk/sunxi/clk_a10s.c",
    "diff": "diff --git a/drivers/clk/sunxi/Kconfig b/drivers/clk/sunxi/Kconfig\nindex fbbf94ef55..b228c2fa3a 100644\n--- a/drivers/clk/sunxi/Kconfig\n+++ b/drivers/clk/sunxi/Kconfig\n@@ -16,6 +16,13 @@ config CLK_SUN4I_A10\n \t  This enables common clock driver support for platforms based\n \t  on Allwinner A10/A20 SoC.\n \n+config CLK_SUN5I_A10S\n+\tbool \"Clock driver for Allwinner A10s/A13\"\n+\tdefault MACH_SUN5I\n+\thelp\n+\t  This enables common clock driver support for platforms based\n+\t  on Allwinner A10s/A13 SoC.\n+\n config CLK_SUN8I_H3\n \tbool \"Clock driver for Allwinner H3/H5\"\n \tdefault MACH_SUNXI_H3_H5\ndiff --git a/drivers/clk/sunxi/Makefile b/drivers/clk/sunxi/Makefile\nindex bba830922f..466d4b79d6 100644\n--- a/drivers/clk/sunxi/Makefile\n+++ b/drivers/clk/sunxi/Makefile\n@@ -7,5 +7,6 @@\n obj-$(CONFIG_CLK_SUNXI) += clk_sunxi.o\n \n obj-$(CONFIG_CLK_SUN4I_A10) += clk_a10.o\n+obj-$(CONFIG_CLK_SUN5I_A10S) += clk_a10s.o\n obj-$(CONFIG_CLK_SUN8I_H3) += clk_h3.o\n obj-$(CONFIG_CLK_SUN50I_A64) += clk_a64.o\ndiff --git a/drivers/clk/sunxi/clk_a10s.c b/drivers/clk/sunxi/clk_a10s.c\nnew file mode 100644\nindex 0000000000..976595201f\n--- /dev/null\n+++ b/drivers/clk/sunxi/clk_a10s.c\n@@ -0,0 +1,74 @@\n+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)\n+/*\n+ * Copyright (C) 2018 Amarula Solutions.\n+ * Author: Jagan Teki <jagan@amarulasolutions.com>\n+ */\n+\n+#include <common.h>\n+#include <clk-uclass.h>\n+#include <dm.h>\n+#include <errno.h>\n+#include <asm/arch/ccu.h>\n+#include <dt-bindings/clock/sun5i-ccu.h>\n+#include <dt-bindings/reset/sun5i-ccu.h>\n+\n+static struct ccu_clk_map a10s_clks[] = {\n+\t[CLK_AHB_OTG]\t\t= { 0x060, BIT(0), NULL },\n+\t[CLK_AHB_EHCI]\t\t= { 0x060, BIT(1), NULL },\n+\t[CLK_AHB_OHCI]\t\t= { 0x060, BIT(2), NULL },\n+\n+\t[CLK_USB_OHCI]\t\t= { 0x0cc, BIT(6), NULL },\n+\t[CLK_USB_PHY0]\t\t= { 0x0cc, BIT(8), NULL },\n+\t[CLK_USB_PHY1]\t\t= { 0x0cc, BIT(9), NULL },\n+};\n+\n+static struct ccu_reset_map a10s_resets[] = {\n+\t[RST_USB_PHY0]\t\t= { 0x0cc, BIT(0) },\n+\t[RST_USB_PHY1]\t\t= { 0x0cc, BIT(1) },\n+};\n+\n+static const struct ccu_desc sun5i_a10s_ccu_desc = {\n+\t.clks = a10s_clks,\n+\t.num_clks = ARRAY_SIZE(a10s_clks),\n+\n+\t.resets = a10s_resets,\n+\t.num_resets =  ARRAY_SIZE(a10s_resets),\n+};\n+\n+static int a10s_clk_probe(struct udevice *dev)\n+{\n+\tstruct sunxi_clk_priv *priv = dev_get_priv(dev);\n+\n+\tpriv->base = dev_read_addr_ptr(dev);\n+\tif (!priv->base)\n+\t\treturn -ENOMEM;\n+\n+\tpriv->desc = (const struct ccu_desc *)dev_get_driver_data(dev);\n+\tif (!priv->desc)\n+\t\treturn -EINVAL;\n+\n+\treturn 0;\n+}\n+\n+static int a10s_clk_bind(struct udevice *dev)\n+{\n+\treturn sunxi_reset_bind(dev, 10);\n+}\n+\n+static const struct udevice_id a10s_clk_ids[] = {\n+\t{ .compatible = \"allwinner,sun5i-a10s-ccu\",\n+          .data = (ulong)&sun5i_a10s_ccu_desc },\n+\t{ .compatible = \"allwinner,sun5i-a13-ccu\",\n+          .data = (ulong)&sun5i_a10s_ccu_desc },\n+\t{ }\n+};\n+\n+U_BOOT_DRIVER(clk_sun5i_a10s) = {\n+\t.name\t\t= \"sun5i_a10s_ccu\",\n+\t.id\t\t= UCLASS_CLK,\n+\t.of_match\t= a10s_clk_ids,\n+\t.priv_auto_alloc_size\t= sizeof(struct sunxi_clk_priv),\n+\t.ops\t\t= &sunxi_clk_ops,\n+\t.probe\t\t= a10s_clk_probe,\n+\t.bind\t\t= a10s_clk_bind,\n+};\n",
    "prefixes": [
        "U-Boot",
        "v2",
        "07/53"
    ]
}