get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808155,
    "url": "http://patchwork.ozlabs.org/api/patches/808155/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-imx/patch/20170831101849.9489-3-kishon@ti.com/",
    "project": {
        "id": 19,
        "url": "http://patchwork.ozlabs.org/api/projects/19/?format=api",
        "name": "Linux IMX development",
        "link_name": "linux-imx",
        "list_id": "linux-imx-kernel.lists.patchwork.ozlabs.org",
        "list_email": "linux-imx-kernel@lists.patchwork.ozlabs.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170831101849.9489-3-kishon@ti.com>",
    "list_archive_url": null,
    "date": "2017-08-31T10:18:45",
    "name": "[v2,2/6] regulator: pbias: Select voltage table based on max-voltage",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c6bb77244a7208d138bba4f0726712e7b44cf873",
    "submitter": {
        "id": 14965,
        "url": "http://patchwork.ozlabs.org/api/people/14965/?format=api",
        "name": "Kishon Vijay Abraham I",
        "email": "kishon@ti.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-imx/patch/20170831101849.9489-3-kishon@ti.com/mbox/",
    "series": [
        {
            "id": 786,
            "url": "http://patchwork.ozlabs.org/api/series/786/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-imx/list/?series=786",
            "date": "2017-08-31T10:18:45",
            "name": "mmc: Add OMAP SDHCI driver",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/786/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808155/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808155/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming-imx@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming-imx@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"HBG6wl/X\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ti.com header.i=@ti.com header.b=\"TjayTKN5\"; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjdlV32mGz9sPm\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 20:24:22 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnMe4-00058V-C7; Thu, 31 Aug 2017 10:24:20 +0000",
            "from lelnx194.ext.ti.com ([198.47.27.80])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dnMbX-0003OJ-Ol for linux-arm-kernel@lists.infradead.org;\n\tThu, 31 Aug 2017 10:21:46 +0000",
            "from dflxv15.itg.ti.com ([128.247.5.124])\n\tby lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v7VAJ7Ue008214; \n\tThu, 31 Aug 2017 05:19:07 -0500",
            "from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31])\n\tby dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7VAJ7RE008173;\n\tThu, 31 Aug 2017 05:19:07 -0500",
            "from DLEE100.ent.ti.com (157.170.170.30) by DLEE101.ent.ti.com\n\t(157.170.170.31) 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, 31 Aug 2017 05:19:06 -0500",
            "from dflp32.itg.ti.com (10.64.6.15) by DLEE100.ent.ti.com\n\t(157.170.170.30) 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, 31 Aug 2017 05:19:06 -0500",
            "from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com\n\t[10.172.224.153])\n\tby dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7VAIq8X003436;\n\tThu, 31 Aug 2017 05:19:02 -0500"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:\n\tMessage-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=+B1qgTw4MpOq8rjBf7tVw4Pl3mJ4KlW35ldUI1RGiks=;\n\tb=HBG6wl/XF7a5SF\n\tJzSpC1/zEjLio8fLigG33mV8Ao7HP2YmdorcrCrTCPcvNMEIoOpGO3gtZUNctbGwPO+IfjI45NIJq\n\tkJS1VQfH8SGsjFV2yuhBOz4R6nq1ELQ+sdE/qZ7vdusOMWE0AaGl7Aj55WtEjSu31B+8QXD5Rk8NH\n\tQcNUyO8+7xbkdQzu2x8uyPu/KL6YDKLc8Liva5WALlYX10OTbQoHZGRw2n7I0QbI1gXrI1J+Byck4\n\tYOucTyNDUKtv/giPpESW3Di+df1AhjKhWkrQGnyCBHamuypszH0Qp6N8n7rLanKcSRp6ZY9tiwQG/\n\t8G/o5nJNkQwuF9UL4JFQ==;",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com;\n\ts=ti-com-17Q1; t=1504174747;\n\tbh=P4sTJhW4G+B4FpyJL9wGXj737ZBY26thvw2bMiVLTVQ=;\n\th=From:To:CC:Subject:Date:In-Reply-To:References;\n\tb=TjayTKN5TpVcve31jsPmoVE8v7ti4gKkeeekFWL7g7UtdaNs/Lsbb2kt3GaHUZZvU\n\twoDRlNMIkuds3n/l8g3JcLksqQHizGF3t2JP+uhMF+PkMYtH1DRDq1sCXaS0avxZVW\n\tnJFLc6DQts2j/hFtdcboJGV85StHT/XOXpE+ocng="
        ],
        "From": "Kishon Vijay Abraham I <kishon@ti.com>",
        "To": "Ulf Hansson <ulf.hansson@linaro.org>, Adrian Hunter\n\t<adrian.hunter@intel.com>, Rob Herring <robh+dt@kernel.org>, Mark Rutland\n\t<mark.rutland@arm.com>, Tony Lindgren <tony@atomide.com>, Liam Girdwood\n\t<lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>",
        "Subject": "[PATCH v2 2/6] regulator: pbias: Select voltage table based on\n\tmax-voltage",
        "Date": "Thu, 31 Aug 2017 15:48:45 +0530",
        "Message-ID": "<20170831101849.9489-3-kishon@ti.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170831101849.9489-1-kishon@ti.com>",
        "References": "<20170831101849.9489-1-kishon@ti.com>",
        "MIME-Version": "1.0",
        "X-EXCLAIMER-MD-CONFIG": "e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20170831_032143_929238_BDA2AEB5 ",
        "X-CRM114-Status": "GOOD (  10.95  )",
        "X-Spam-Score": "-2.0 (--)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [198.47.27.80 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain",
        "X-BeenThere": "linux-arm-kernel@lists.infradead.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/linux-arm-kernel/>",
        "List-Post": "<mailto:linux-arm-kernel@lists.infradead.org>",
        "List-Help": "<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>",
        "Cc": "devicetree@vger.kernel.org, kishon@ti.com, Sekhar Nori <nsekhar@ti.com>, \n\tlinux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tRussell King <linux@armlinux.org.uk>, Ravikumar Kattekola <rk@ti.com>,\n\tlinux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Sender": "\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>",
        "Errors-To": "linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org",
        "List-Id": "linux-imx-kernel.lists.patchwork.ozlabs.org"
    },
    "content": "From: Ravikumar Kattekola <rk@ti.com>\n\nReference manuals of OMAP5x and DRA7x have been updated to reflect\nthe PBIAS regulator max-voltage as 3.3V instead of 3.0V, while OMAP3x\nand OMAP4x are still quoting 3.0V. So, as of now, the pbias driver\nneeds to support both 3.0V and 3.3V IO voltage based on the max-voltage\nsupported by the PBIAS regulator.\n\nDocument reference:\nSWPU249AF - OMAP543x Technical reference manual - August 2016\nSPRUI30C – DRA75x, DRA74x Technical reference manual November 2016\n\nTested on:\nDRA75x PG 2.0 REV H EVM\n\nSigned-off-by: Ravikumar Kattekola <rk@ti.com>\nSigned-off-by: Sekhar Nori <nsekhar@ti.com>\nSigned-off-by: Kishon Vijay Abraham I <kishon@ti.com>\n---\n drivers/regulator/pbias-regulator.c | 21 ++++++++++++++++++---\n 1 file changed, 18 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/regulator/pbias-regulator.c b/drivers/regulator/pbias-regulator.c\nindex 0cb76ba29e84..8f782d22fdbe 100644\n--- a/drivers/regulator/pbias-regulator.c\n+++ b/drivers/regulator/pbias-regulator.c\n@@ -34,6 +34,8 @@ struct pbias_reg_info {\n \tu32 vmode;\n \tunsigned int enable_time;\n \tchar *name;\n+\tconst unsigned int *pbias_volt_table;\n+\tint n_voltages;\n };\n \n struct pbias_regulator_data {\n@@ -49,11 +51,16 @@ struct pbias_of_data {\n \tunsigned int offset;\n };\n \n-static const unsigned int pbias_volt_table[] = {\n+static const unsigned int pbias_volt_table_3_0V[] = {\n \t1800000,\n \t3000000\n };\n \n+static const unsigned int pbias_volt_table_3_3V[] = {\n+\t1800000,\n+\t3300000\n+};\n+\n static const struct regulator_ops pbias_regulator_voltage_ops = {\n \t.list_voltage = regulator_list_voltage_table,\n \t.get_voltage_sel = regulator_get_voltage_sel_regmap,\n@@ -69,6 +76,8 @@ static const struct pbias_reg_info pbias_mmc_omap2430 = {\n \t.vmode = BIT(0),\n \t.disable_val = 0,\n \t.enable_time = 100,\n+\t.pbias_volt_table = pbias_volt_table_3_0V,\n+\t.n_voltages = 2,\n \t.name = \"pbias_mmc_omap2430\"\n };\n \n@@ -77,6 +86,8 @@ static const struct pbias_reg_info pbias_sim_omap3 = {\n \t.enable_mask = BIT(9),\n \t.vmode = BIT(8),\n \t.enable_time = 100,\n+\t.pbias_volt_table = pbias_volt_table_3_0V,\n+\t.n_voltages = 2,\n \t.name = \"pbias_sim_omap3\"\n };\n \n@@ -86,6 +97,8 @@ static const struct pbias_reg_info pbias_mmc_omap4 = {\n \t.disable_val = BIT(25),\n \t.vmode = BIT(21),\n \t.enable_time = 100,\n+\t.pbias_volt_table = pbias_volt_table_3_0V,\n+\t.n_voltages = 2,\n \t.name = \"pbias_mmc_omap4\"\n };\n \n@@ -95,6 +108,8 @@ static const struct pbias_reg_info pbias_mmc_omap5 = {\n \t.disable_val = BIT(25),\n \t.vmode = BIT(21),\n \t.enable_time = 100,\n+\t.pbias_volt_table = pbias_volt_table_3_3V,\n+\t.n_voltages = 2,\n \t.name = \"pbias_mmc_omap5\"\n };\n \n@@ -199,8 +214,8 @@ static int pbias_regulator_probe(struct platform_device *pdev)\n \t\tdrvdata[data_idx].desc.owner = THIS_MODULE;\n \t\tdrvdata[data_idx].desc.type = REGULATOR_VOLTAGE;\n \t\tdrvdata[data_idx].desc.ops = &pbias_regulator_voltage_ops;\n-\t\tdrvdata[data_idx].desc.volt_table = pbias_volt_table;\n-\t\tdrvdata[data_idx].desc.n_voltages = 2;\n+\t\tdrvdata[data_idx].desc.volt_table = info->pbias_volt_table;\n+\t\tdrvdata[data_idx].desc.n_voltages = info->n_voltages;\n \t\tdrvdata[data_idx].desc.enable_time = info->enable_time;\n \t\tdrvdata[data_idx].desc.vsel_reg = offset;\n \t\tdrvdata[data_idx].desc.vsel_mask = info->vmode;\n",
    "prefixes": [
        "v2",
        "2/6"
    ]
}