get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 816907,
    "url": "http://patchwork.ozlabs.org/api/patches/816907/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1506004213-22620-14-git-send-email-jjhiblot@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": "<1506004213-22620-14-git-send-email-jjhiblot@ti.com>",
    "list_archive_url": null,
    "date": "2017-09-21T14:30:00",
    "name": "[U-Boot,v2,13/26] mmc: Enable signal voltage to be selected from mmc core",
    "commit_ref": "aff5d3c83fb8c294b3c4b97c5b6386306b47f1a0",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "47a84e857fedbbc83960a0016646852aa44bc999",
    "submitter": {
        "id": 70508,
        "url": "http://patchwork.ozlabs.org/api/people/70508/?format=api",
        "name": "Jean-Jacques Hiblot",
        "email": "jjhiblot@ti.com"
    },
    "delegate": {
        "id": 12423,
        "url": "http://patchwork.ozlabs.org/api/users/12423/?format=api",
        "username": "Jaehoon",
        "first_name": "Jaehoon",
        "last_name": "Chung",
        "email": "jh80.chung@samsung.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1506004213-22620-14-git-send-email-jjhiblot@ti.com/mbox/",
    "series": [
        {
            "id": 4400,
            "url": "http://patchwork.ozlabs.org/api/series/4400/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=4400",
            "date": "2017-09-21T14:29:47",
            "name": "mmc: Add support for HS200 and UHS modes",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/4400/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/816907/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/816907/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;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ti.com header.i=@ti.com header.b=\"g/wEeBMD\";\n\tdkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyfSq4kVkz9sNc\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 00:41:45 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 91ED8C22046; Thu, 21 Sep 2017 14:34:12 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id F0AA9C21F52;\n\tThu, 21 Sep 2017 14:31:48 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 50818C2202E; Thu, 21 Sep 2017 14:30:54 +0000 (UTC)",
            "from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17])\n\tby lists.denx.de (Postfix) with ESMTPS id 4447EC21E28\n\tfor <u-boot@lists.denx.de>; Thu, 21 Sep 2017 14:30:49 +0000 (UTC)",
            "from dlelxv90.itg.ti.com ([172.17.2.17])\n\tby fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v8LEUlbr000377; \n\tThu, 21 Sep 2017 09:30:47 -0500",
            "from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33])\n\tby dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8LEUl15019865; \n\tThu, 21 Sep 2017 09:30:47 -0500",
            "from DLEE107.ent.ti.com (157.170.170.37) by DLEE103.ent.ti.com\n\t(157.170.170.33) with Microsoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34;\n\tThu, 21 Sep 2017 09:30:46 -0500",
            "from dflp32.itg.ti.com (10.64.6.15) by DLEE107.ent.ti.com\n\t(157.170.170.37) with Microsoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend\n\tTransport; Thu, 21 Sep 2017 09:30:46 -0500",
            "from localhost (ileax41-snat.itg.ti.com [10.172.224.153])\n\tby dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8LEUjxX016438;\n\tThu, 21 Sep 2017 09:30:45 -0500"
        ],
        "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_DNSWL_NONE,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com;\n\ts=ti-com-17Q1; t=1506004247;\n\tbh=+Pe0zj/9yX2c/sleIqyFyUQyVy9MoyToooyFFHZCEIk=;\n\th=From:To:CC:Subject:Date:In-Reply-To:References;\n\tb=g/wEeBMD4KjOeBCUZ+70+Dt+MtlWlhTd13pIljLAV+MaED/Rt9RojzdC2tV5WXUJi\n\t1sDclEQiSq8+sK7wIVC+p8Ma1v1pbgBnBqrQnokClswc5FuzqOKeNMFtgHG/hDcYG3\n\tAffwttUffGWvmmOgLU/Pq0DHJaz+/TSiUx54v5Lk=",
        "From": "Jean-Jacques Hiblot <jjhiblot@ti.com>",
        "To": "<jh80.chung@samsung.com>, <trini@konsulko.com>, <kishon@ti.com>,\n\t<sjg@chromium.org>",
        "Date": "Thu, 21 Sep 2017 16:30:00 +0200",
        "Message-ID": "<1506004213-22620-14-git-send-email-jjhiblot@ti.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1506004213-22620-1-git-send-email-jjhiblot@ti.com>",
        "References": "<1506004213-22620-1-git-send-email-jjhiblot@ti.com>",
        "MIME-Version": "1.0",
        "X-EXCLAIMER-MD-CONFIG": "e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180",
        "Cc": "u-boot@lists.denx.de",
        "Subject": "[U-Boot] [PATCH v2 13/26] mmc: Enable signal voltage to be selected\n\tfrom mmc core",
        "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": "From: Kishon Vijay Abraham I <kishon@ti.com>\n\nAdd a new function *mmc_set_signal_voltage* in mmc core\nwhich can be used during mmc initialization to select the\nsignal voltage. Platform driver should use the set_ios\ncallback function to select the signal voltage.\n\nSigned-off-by: Kishon Vijay Abraham I <kishon@ti.com>\nSigned-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>\n---\n drivers/mmc/mmc.c | 16 ++++++++++++++++\n include/mmc.h     |  8 ++++++++\n 2 files changed, 24 insertions(+)",
    "diff": "diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c\nindex 536cd7f..46ec5e1 100644\n--- a/drivers/mmc/mmc.c\n+++ b/drivers/mmc/mmc.c\n@@ -30,6 +30,8 @@ static const unsigned int sd_au_size[] = {\n \tSZ_16M / 512,\t(SZ_16M + SZ_8M) / 512,\tSZ_32M / 512,\tSZ_64M / 512,\n };\n \n+static int mmc_set_signal_voltage(struct mmc *mmc, uint signal_voltage);\n+\n #if CONFIG_IS_ENABLED(MMC_TINY)\n static struct mmc mmc_static;\n struct mmc *find_mmc_device(int dev_num)\n@@ -1257,6 +1259,12 @@ struct mode_width_tuning {\n \tuint widths;\n };\n \n+static int mmc_set_signal_voltage(struct mmc *mmc, uint signal_voltage)\n+{\n+\tmmc->signal_voltage = signal_voltage;\n+\treturn mmc_set_ios(mmc);\n+}\n+\n static const struct mode_width_tuning sd_modes_by_pref[] = {\n \t{\n \t\t.mode = SD_HS,\n@@ -1964,6 +1972,14 @@ int mmc_start_init(struct mmc *mmc)\n \t\treturn err;\n #endif\n \tmmc->ddr_mode = 0;\n+\n+\t/* First try to set 3.3V. If it fails set to 1.8V */\n+\terr = mmc_set_signal_voltage(mmc, MMC_SIGNAL_VOLTAGE_330);\n+\tif (err != 0)\n+\t\terr = mmc_set_signal_voltage(mmc, MMC_SIGNAL_VOLTAGE_180);\n+\tif (err != 0)\n+\t\tprintf(\"failed to set signal voltage\\n\");\n+\n \tmmc_set_bus_width(mmc, 1);\n \tmmc_set_clock(mmc, 1);\n \ndiff --git a/include/mmc.h b/include/mmc.h\nindex 3e57887..e524963 100644\n--- a/include/mmc.h\n+++ b/include/mmc.h\n@@ -272,6 +272,13 @@\n #define ENHNCD_SUPPORT\t\t(0x2)\n #define PART_ENH_ATTRIB\t\t(0x1f)\n \n+enum mmc_voltage {\n+\tMMC_SIGNAL_VOLTAGE_000 = 0,\n+\tMMC_SIGNAL_VOLTAGE_120,\n+\tMMC_SIGNAL_VOLTAGE_180,\n+\tMMC_SIGNAL_VOLTAGE_330\n+};\n+\n /* Maximum block size for MMC */\n #define MMC_MAX_BLOCK_LEN\t512\n \n@@ -457,6 +464,7 @@ struct mmc {\n \tint high_capacity;\n \tuint bus_width;\n \tuint clock;\n+\tenum mmc_voltage signal_voltage;\n \tuint card_caps;\n \tuint ocr;\n \tuint dsr;\n",
    "prefixes": [
        "U-Boot",
        "v2",
        "13/26"
    ]
}