get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1421818,
    "url": "http://patchwork.ozlabs.org/api/patches/1421818/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20210103092633.36226-4-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-4-jernej.skrabec@siol.net>",
    "list_archive_url": null,
    "date": "2021-01-03T09:26:19",
    "name": "[03/17] mmc: sunxi: Replace H6 ifdefs with H6 gen macro",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "326d17cd95b8052182a3d8d9acafb6b01358c200",
    "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-4-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/1421818/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1421818/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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\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 4D7thQ6tk4z9sVn\n\tfor <incoming@patchwork.ozlabs.org>; Sun,  3 Jan 2021 20:27:34 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id CF3D782440;\n\tSun,  3 Jan 2021 10:27:02 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id E1F4182642; Sun,  3 Jan 2021 10:26:59 +0100 (CET)",
            "from mail.siol.net (mailoutvs29.siol.net [185.57.226.220])\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 929B88240E\n for <u-boot@lists.denx.de>; Sun,  3 Jan 2021 10:26:56 +0100 (CET)",
            "from localhost (localhost [127.0.0.1])\n by mail.siol.net (Zimbra) with ESMTP id 3A952522ADB;\n Sun,  3 Jan 2021 10:26:56 +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 1JUIhi5hcuas; Sun,  3 Jan 2021 10:26:55 +0100 (CET)",
            "from mail.siol.net (localhost [127.0.0.1])\n by mail.siol.net (Zimbra) with ESMTPS id E4CEA522A92;\n Sun,  3 Jan 2021 10:26:55 +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 ADED6522ADB;\n Sun,  3 Jan 2021 10:26:53 +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 03/17] mmc: sunxi: Replace H6 ifdefs with H6 gen macro",
        "Date": "Sun,  3 Jan 2021 10:26:19 +0100",
        "Message-Id": "<20210103092633.36226-4-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": "It turns out that several SoCs share same mmc configuration as H6. In\norder to lower ifdef clutter replace H6 specific macro with common one.\n\nSigned-off-by: Jernej Skrabec <jernej.skrabec@siol.net>\n---\n arch/arm/include/asm/arch-sunxi/mmc.h |  2 +-\n drivers/mmc/sunxi_mmc.c               | 12 ++++++------\n 2 files changed, 7 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/arch/arm/include/asm/arch-sunxi/mmc.h b/arch/arm/include/asm/arch-sunxi/mmc.h\nindex f2deafddd202..340e25b04d2a 100644\n--- a/arch/arm/include/asm/arch-sunxi/mmc.h\n+++ b/arch/arm/include/asm/arch-sunxi/mmc.h\n@@ -45,7 +45,7 @@ struct sunxi_mmc {\n \tu32 chda;\t\t/* 0x90 */\n \tu32 cbda;\t\t/* 0x94 */\n \tu32 res2[26];\n-#if defined(CONFIG_SUNXI_GEN_SUN6I) || defined(CONFIG_MACH_SUN50I_H6)\n+#if defined(CONFIG_SUNXI_GEN_SUN6I) || defined(CONFIG_SUN50I_GEN_H6)\n \tu32 res3[17];\n \tu32 samp_dl;\n \tu32 res4[46];\ndiff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c\nindex 0e03b07ce555..3767a39277c1 100644\n--- a/drivers/mmc/sunxi_mmc.c\n+++ b/drivers/mmc/sunxi_mmc.c\n@@ -122,7 +122,7 @@ static int mmc_set_mod_clk(struct sunxi_mmc_priv *priv, unsigned int hz)\n \tif (IS_ENABLED(CONFIG_MACH_SUN8I_A83T) && priv->mmc_no != 2)\n \t\tnew_mode = false;\n \n-#if defined(CONFIG_MACH_SUN50I) || defined(CONFIG_MACH_SUN50I_H6)\n+#if defined(CONFIG_MACH_SUN50I) || defined(CONFIG_SUN50I_GEN_H6)\n \tcalibrate = true;\n #endif\n \n@@ -133,7 +133,7 @@ static int mmc_set_mod_clk(struct sunxi_mmc_priv *priv, unsigned int hz)\n #ifdef CONFIG_MACH_SUN9I\n \t\tpll = CCM_MMC_CTRL_PLL_PERIPH0;\n \t\tpll_hz = clock_get_pll4_periph0();\n-#elif defined(CONFIG_MACH_SUN50I_H6)\n+#elif defined(CONFIG_SUN50I_GEN_H6)\n \t\tpll = CCM_MMC_CTRL_PLL6X2;\n \t\tpll_hz = clock_get_pll6() * 2;\n #else\n@@ -249,7 +249,7 @@ static int mmc_config_clock(struct sunxi_mmc_priv *priv, struct mmc *mmc)\n \trval &= ~SUNXI_MMC_CLK_DIVIDER_MASK;\n \twritel(rval, &priv->reg->clkcr);\n \n-#if defined(CONFIG_MACH_SUN50I) || defined(CONFIG_MACH_SUN50I_H6)\n+#if defined(CONFIG_MACH_SUN50I) || defined(CONFIG_SUN50I_GEN_H6)\n \t/* A64 supports calibration of delays on MMC controller and we\n \t * have to set delay of zero before starting calibration.\n \t * Allwinner BSP driver sets a delay only in the case of\n@@ -530,7 +530,7 @@ struct mmc *sunxi_mmc_init(int sdc_no)\n \n \tcfg->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;\n \tcfg->host_caps = MMC_MODE_4BIT;\n-#if defined(CONFIG_MACH_SUN50I) || defined(CONFIG_MACH_SUN8I) || defined(CONFIG_MACH_SUN50I_H6)\n+#if defined(CONFIG_MACH_SUN50I) || defined(CONFIG_MACH_SUN8I) || defined(CONFIG_SUN50I_GEN_H6)\n \tif (sdc_no == 2)\n \t\tcfg->host_caps = MMC_MODE_8BIT;\n #endif\n@@ -545,7 +545,7 @@ struct mmc *sunxi_mmc_init(int sdc_no)\n \n \t/* config ahb clock */\n \tdebug(\"init mmc %d clock and io\\n\", sdc_no);\n-#if !defined(CONFIG_MACH_SUN50I_H6)\n+#if !defined(CONFIG_SUN50I_GEN_H6)\n \tsetbits_le32(&ccm->ahb_gate0, 1 << AHB_GATE_OFFSET_MMC(sdc_no));\n \n #ifdef CONFIG_SUNXI_GEN_SUN6I\n@@ -557,7 +557,7 @@ struct mmc *sunxi_mmc_init(int sdc_no)\n \twritel(SUNXI_MMC_COMMON_CLK_GATE | SUNXI_MMC_COMMON_RESET,\n \t       SUNXI_MMC_COMMON_BASE + 4 * sdc_no);\n #endif\n-#else /* CONFIG_MACH_SUN50I_H6 */\n+#else /* CONFIG_SUN50I_GEN_H6 */\n \tsetbits_le32(&ccm->sd_gate_reset, 1 << sdc_no);\n \t/* unassert reset */\n \tsetbits_le32(&ccm->sd_gate_reset, 1 << (RESET_SHIFT + sdc_no));\n",
    "prefixes": [
        "03/17"
    ]
}