get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 955953,
    "url": "http://patchwork.ozlabs.org/api/patches/955953/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20180810060711.6547-10-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-10-jagan@amarulasolutions.com>",
    "list_archive_url": null,
    "date": "2018-08-10T06:06:27",
    "name": "[U-Boot,v2,09/53] clk: sunxi: Add Allwinner A23 CLK driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "5cc30d9192c6e26329d7022abd0207669146df9b",
    "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-10-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/955953/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/955953/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=\"FpAoTnxJ\"; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 41mvz223hqz9s7Q\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 10 Aug 2018 16:16:46 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid C35EAC21EF7; Fri, 10 Aug 2018 06:10:37 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 8A1BDC21E1B;\n\tFri, 10 Aug 2018 06:08:29 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid BFE27C21E15; Fri, 10 Aug 2018 06:08:17 +0000 (UTC)",
            "from mail-pf1-f193.google.com (mail-pf1-f193.google.com\n\t[209.85.210.193])\n\tby lists.denx.de (Postfix) with ESMTPS id E5324C21DFB\n\tfor <u-boot@lists.denx.de>; Fri, 10 Aug 2018 06:08:12 +0000 (UTC)",
            "by mail-pf1-f193.google.com with SMTP id b11-v6so4017498pfo.3\n\tfor <u-boot@lists.denx.de>; Thu, 09 Aug 2018 23:08:12 -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.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 09 Aug 2018 23:08:10 -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=9wvqCeJsySkFwT9JnG4imAySwUvxMDIcj3EHOt6zMk8=;\n\tb=FpAoTnxJzbJ25+/t0yb82OFG8b0cXiRqktFo+7W+pRm9sJFyFdpvgCVrGwbQfsqKiC\n\tKy3fjXBc3TxedOgickuHpg2lLZaJPL/lkD3iTIAgH+VOsSvbtPfjsmgXIJGIlHz0SmZ7\n\tb9SmW+lqVEu+vSvSzSjVcfXLcCCni7VsTMkGM=",
        "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=9wvqCeJsySkFwT9JnG4imAySwUvxMDIcj3EHOt6zMk8=;\n\tb=k2/3fuspJiPPckH657WcpM3YCHuH47u2BTLgBl5596/s+nCzsSZoykR8CbKE9ANEZI\n\tpsrOm2O081+Pt5cCRXl8Ege9KwWaO/WtC3Z7SoLQZjMwj3j3Jbmt5uPrXDSzPqQsqOom\n\tq/X2cqwfh6WGsY9PCR+oPtWJLVdqJbGspf0m1yYN9B0JyF393LhL1oiGkoCfaMZnXirM\n\t9myw23moIFdp/ZgQT5vWVndFpkePG2VeYtNsXrq9GOt1qRrKko3FFCTjm84Vp5YeeUR3\n\t0kwxna7jAgvpcbDSqWWwXDYOOKUhg9A6qPV3chn2ovpcpHg4HuAEnjmjqRZ5ac45ROUa\n\tE5kg==",
        "X-Gm-Message-State": "AOUpUlGofA7fVVhZZP2fiPQs+mGUBSsGBhC8zFHyP0tPfI4COjbhIEef\n\tmhd4R+5n0hsuZDx2juokV2G0uA==",
        "X-Google-Smtp-Source": "AA+uWPwTAccOa0hnuobn1N4LWvwrcLcAFwj+kTqOs2fggoZ0e+Q9jgZwWjWNhinfvxOUvrEr7K+UMQ==",
        "X-Received": "by 2002:aa7:8087:: with SMTP id\n\tv7-v6mr5622112pff.38.1533881291444; \n\tThu, 09 Aug 2018 23:08:11 -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:27 +0530",
        "Message-Id": "<20180810060711.6547-10-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 09/53] clk: sunxi: Add Allwinner A23 CLK driver",
        "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 A23.\n\n- Implement USB bus and USB clocks via ccu_clk_map descriptor\n  for A23, so it can accessed in common clk enable and disable\n  functions from clk_sunxi.c\n- Implement USB bus and USB resets via ccu_reset_map descriptor\n  for A23, so it can accessed in common reset deassert and assert\n  functions 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_a23.c | 79 +++++++++++++++++++++++++++++++++++++\n 3 files changed, 87 insertions(+)\n create mode 100644 drivers/clk/sunxi/clk_a23.c",
    "diff": "diff --git a/drivers/clk/sunxi/Kconfig b/drivers/clk/sunxi/Kconfig\nindex 535b0dc02c..54600e8e1f 100644\n--- a/drivers/clk/sunxi/Kconfig\n+++ b/drivers/clk/sunxi/Kconfig\n@@ -30,6 +30,13 @@ config CLK_SUN6I_A31\n \t  This enables common clock driver support for platforms based\n \t  on Allwinner A31/A31s SoC.\n \n+config CLK_SUN8I_A23\n+\tbool \"Clock driver for Allwinner A23\"\n+\tdefault MACH_SUN8I_A23\n+\thelp\n+\t  This enables common clock driver support for platforms based\n+\t  on Allwinner A23 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 3cf0071b0c..6924897036 100644\n--- a/drivers/clk/sunxi/Makefile\n+++ b/drivers/clk/sunxi/Makefile\n@@ -9,5 +9,6 @@ obj-$(CONFIG_CLK_SUNXI) += clk_sunxi.o\n obj-$(CONFIG_CLK_SUN4I_A10) += clk_a10.o\n obj-$(CONFIG_CLK_SUN5I_A10S) += clk_a10s.o\n obj-$(CONFIG_CLK_SUN6I_A31) += clk_a31.o\n+obj-$(CONFIG_CLK_SUN8I_A23) += clk_a23.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_a23.c b/drivers/clk/sunxi/clk_a23.c\nnew file mode 100644\nindex 0000000000..799c8ac0aa\n--- /dev/null\n+++ b/drivers/clk/sunxi/clk_a23.c\n@@ -0,0 +1,79 @@\n+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)\n+/*\n+ * Copyright (C) 2018 Amarula Solutions B.V.\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/sun8i-a23-a33-ccu.h>\n+#include <dt-bindings/reset/sun8i-a23-a33-ccu.h>\n+\n+static struct ccu_clk_map a23_clks[] = {\n+\t[CLK_BUS_OTG]\t\t= { 0x060, BIT(24), NULL },\n+\t[CLK_BUS_EHCI]\t\t= { 0x060, BIT(26), NULL },\n+\t[CLK_BUS_OHCI]\t\t= { 0x060, BIT(29), NULL },\n+\n+\t[CLK_USB_PHY0]\t\t= { 0x0cc, BIT(8), NULL },\n+\t[CLK_USB_PHY1]\t\t= { 0x0cc, BIT(9), NULL },\n+\t[CLK_USB_HSIC]\t\t= { 0x0cc, BIT(10), NULL },\n+\t[CLK_USB_HSIC_12M]\t= { 0x0cc, BIT(11), NULL },\n+\t[CLK_USB_OHCI]\t\t= { 0x0cc, BIT(16), NULL },\n+};\n+\n+static struct ccu_reset_map a23_resets[] = {\n+\t[RST_USB_PHY0]\t\t= { 0x0cc, BIT(0) },\n+\t[RST_USB_PHY1]\t\t= { 0x0cc, BIT(1) },\n+\t[RST_USB_HSIC]\t\t= { 0x0cc, BIT(2) },\n+\n+\t[RST_BUS_OTG]\t\t= { 0x2c0, BIT(24) },\n+\t[RST_BUS_EHCI]\t\t= { 0x2c0, BIT(26) },\n+\t[RST_BUS_OHCI]\t\t= { 0x2c0, BIT(29) },\n+};\n+\n+static const struct ccu_desc sun8i_a23_ccu_desc = {\n+\t.clks = a23_clks,\n+\t.num_clks = ARRAY_SIZE(a23_clks),\n+\n+\t.resets = a23_resets,\n+\t.num_resets =  ARRAY_SIZE(a23_resets),\n+};\n+\n+static int a23_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 a23_clk_bind(struct udevice *dev)\n+{\n+\treturn sunxi_reset_bind(dev, 39);\n+}\n+\n+static const struct udevice_id a23_clk_ids[] = {\n+\t{ .compatible = \"allwinner,sun8i-a23-ccu\",\n+\t  .data = (ulong)&sun8i_a23_ccu_desc },\n+\t{ }\n+};\n+\n+U_BOOT_DRIVER(clk_sun8i_a23) = {\n+\t.name\t\t= \"sun8i_a23_ccu\",\n+\t.id\t\t= UCLASS_CLK,\n+\t.of_match\t= a23_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= a23_clk_probe,\n+\t.bind\t\t= a23_clk_bind,\n+};\n",
    "prefixes": [
        "U-Boot",
        "v2",
        "09/53"
    ]
}