get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1378388,
    "url": "http://patchwork.ozlabs.org/api/patches/1378388/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20201008051250.25784-2-faiz_abbas@ti.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": "<20201008051250.25784-2-faiz_abbas@ti.com>",
    "list_archive_url": null,
    "date": "2020-10-08T05:12:34",
    "name": "[01/17] mmc: sdhci: Add helper functions for UHS modes",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "3a1f19ac636febd8722fd71a5f0b312d2d1f74c2",
    "submitter": {
        "id": 72140,
        "url": "http://patchwork.ozlabs.org/api/people/72140/?format=api",
        "name": "Faiz Abbas",
        "email": "faiz_abbas@ti.com"
    },
    "delegate": {
        "id": 19261,
        "url": "http://patchwork.ozlabs.org/api/users/19261/?format=api",
        "username": "lokeshvutla",
        "first_name": "Lokesh",
        "last_name": "Vutla",
        "email": "lokeshvutla@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20201008051250.25784-2-faiz_abbas@ti.com/mbox/",
    "series": [
        {
            "id": 206622,
            "url": "http://patchwork.ozlabs.org/api/series/206622/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=206622",
            "date": "2020-10-08T05:12:33",
            "name": "Add support for MMC higher speed modes for TI's am65x, j721e and j7200 platforms",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/206622/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1378388/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1378388/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=pass (p=quarantine dis=none) header.from=ti.com",
            "ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256\n header.s=ti-com-17Q1 header.b=mCJNyD5h;\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=ti.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.b=\"mCJNyD5h\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=ti.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=faiz_abbas@ti.com"
        ],
        "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 4C6K9F6kDMz9sTK\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  8 Oct 2020 16:13:20 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 3093182337;\n\tThu,  8 Oct 2020 07:13:06 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 8556182337; Thu,  8 Oct 2020 07:13:05 +0200 (CEST)",
            "from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 4DA1E8172F\n for <u-boot@lists.denx.de>; Thu,  8 Oct 2020 07:13:02 +0200 (CEST)",
            "from fllv0034.itg.ti.com ([10.64.40.246])\n by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0985D0uf050215;\n Thu, 8 Oct 2020 00:13:00 -0500",
            "from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33])\n by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0985D0pl083019\n (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL);\n Thu, 8 Oct 2020 00:13:00 -0500",
            "from DFLE109.ent.ti.com (10.64.6.30) by DFLE112.ent.ti.com\n (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 8 Oct\n 2020 00:13:00 -0500",
            "from lelv0327.itg.ti.com (10.180.67.183) by DFLE109.ent.ti.com\n (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via\n Frontend Transport; Thu, 8 Oct 2020 00:13:00 -0500",
            "from a0230074-Latitude-E7470.ent.ti.com (ileax41-snat.itg.ti.com\n [10.172.224.153])\n by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0985Cpxd022642;\n Thu, 8 Oct 2020 00:12:57 -0500"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_MSPIKE_H3,\n RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com;\n s=ti-com-17Q1; t=1602133980;\n bh=9oFdvojyxTSmQHMiJWwMpIEjl65g2L6b52ICP2q3b4M=;\n h=From:To:CC:Subject:Date:In-Reply-To:References;\n b=mCJNyD5hciFTnNW3GO7MzTAWtKv/ngIAu4AdXp6pEDVaXTqvpAsdHMHgiEnxWQYMR\n gTg7ceHxsHR24s9hjl+1Npa0FFqnbY0jfDIlDQuJ+GpjZUTdfjdYRiZDorgNxMj5W4\n umwjHW8A27tmz47YbBcVUc1nT9TL4G79HiHedb8g=",
        "From": "Faiz Abbas <faiz_abbas@ti.com>",
        "To": "<u-boot@lists.denx.de>, <peng.fan@nxp.com>, <lokeshvutla@ti.com>",
        "CC": "<faiz_abbas@ti.com>",
        "Subject": "[PATCH 01/17] mmc: sdhci: Add helper functions for UHS modes",
        "Date": "Thu, 8 Oct 2020 10:42:34 +0530",
        "Message-ID": "<20201008051250.25784-2-faiz_abbas@ti.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20201008051250.25784-1-faiz_abbas@ti.com>",
        "References": "<20201008051250.25784-1-faiz_abbas@ti.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-EXCLAIMER-MD-CONFIG": "e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180",
        "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": "Add a set_voltage() function which handles the switch from 3.3V to 1.8V\nfor SD card UHS modes.\n\nSigned-off-by: Faiz Abbas <faiz_abbas@ti.com>\n---\n drivers/mmc/sdhci.c | 49 +++++++++++++++++++++++++++++++++++++++++++++\n include/sdhci.h     |  1 +\n 2 files changed, 50 insertions(+)",
    "diff": "diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c\nindex 7673219fb3..987055d970 100644\n--- a/drivers/mmc/sdhci.c\n+++ b/drivers/mmc/sdhci.c\n@@ -20,6 +20,7 @@\n #include <linux/delay.h>\n #include <linux/dma-mapping.h>\n #include <phys2bus.h>\n+#include <power/regulator.h>\n \n static void sdhci_reset(struct sdhci_host *host, u8 mask)\n {\n@@ -556,6 +557,54 @@ void sdhci_set_uhs_timing(struct sdhci_host *host)\n \tsdhci_writew(host, reg, SDHCI_HOST_CONTROL2);\n }\n \n+#if CONFIG_IS_ENABLED(MMC_IO_VOLTAGE)\n+static void sdhci_set_voltage(struct sdhci_host *host)\n+{\n+\tstruct mmc *mmc = (struct mmc *)host->mmc;\n+\tu32 ctrl;\n+\n+\tctrl = sdhci_readw(host, SDHCI_HOST_CONTROL2);\n+\n+\tswitch (mmc->signal_voltage) {\n+\tcase MMC_SIGNAL_VOLTAGE_330:\n+\t\tif (mmc->vqmmc_supply) {\n+\t\t\tregulator_set_enable(mmc->vqmmc_supply, false);\n+\t\t\tregulator_set_value(mmc->vqmmc_supply, 3300000);\n+\t\t\tregulator_set_enable(mmc->vqmmc_supply, true);\n+\t\t}\n+\n+\t\tmdelay(5);\n+\t\tif (IS_SD(mmc)) {\n+\t\t\tctrl &= ~SDHCI_CTRL_VDD_180;\n+\t\t\tsdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2);\n+\t\t}\n+\t\tbreak;\n+\tcase MMC_SIGNAL_VOLTAGE_180:\n+\t\tif (mmc->vqmmc_supply) {\n+\t\t\tregulator_set_enable(mmc->vqmmc_supply, false);\n+\t\t\tregulator_set_value(mmc->vqmmc_supply, 1800000);\n+\t\t\tregulator_set_enable(mmc->vqmmc_supply, true);\n+\t\t}\n+\n+\t\tif (IS_SD(mmc)) {\n+\t\t\tctrl |= SDHCI_CTRL_VDD_180;\n+\t\t\tsdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2);\n+\t\t}\n+\t\tbreak;\n+\tdefault:\n+\t\t/* No signal voltage switch required */\n+\t\treturn;\n+\t}\n+}\n+#else\n+static void sdhci_set_voltage(struct sdhci_host *host) { }\n+#endif\n+void sdhci_set_control_reg(struct sdhci_host *host)\n+{\n+\tsdhci_set_voltage(host);\n+\tsdhci_set_uhs_timing(host);\n+}\n+\n #ifdef CONFIG_DM_MMC\n static int sdhci_set_ios(struct udevice *dev)\n {\ndiff --git a/include/sdhci.h b/include/sdhci.h\nindex 94fc3ed56a..d3f8741042 100644\n--- a/include/sdhci.h\n+++ b/include/sdhci.h\n@@ -492,6 +492,7 @@ void sdhci_set_uhs_timing(struct sdhci_host *host);\n /* Export the operations to drivers */\n int sdhci_probe(struct udevice *dev);\n int sdhci_set_clock(struct mmc *mmc, unsigned int clock);\n+void sdhci_set_control_reg(struct sdhci_host *host);\n extern const struct dm_mmc_ops sdhci_ops;\n #else\n #endif\n",
    "prefixes": [
        "01/17"
    ]
}