get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 435601,
    "url": "http://patchwork.ozlabs.org/api/patches/435601/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/1422899085-678-3-git-send-email-bparrot@ti.com/",
    "project": {
        "id": 42,
        "url": "http://patchwork.ozlabs.org/api/projects/42/?format=api",
        "name": "Linux GPIO development",
        "link_name": "linux-gpio",
        "list_id": "linux-gpio.vger.kernel.org",
        "list_email": "linux-gpio@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1422899085-678-3-git-send-email-bparrot@ti.com>",
    "list_archive_url": null,
    "date": "2015-02-02T17:44:45",
    "name": "[v6,2/2] gpio: Document GPIO hogging mechanism",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a611e3a835ad4a4b2c3e88d10cfba680dc33134a",
    "submitter": {
        "id": 64914,
        "url": "http://patchwork.ozlabs.org/api/people/64914/?format=api",
        "name": "Benoit Parrot",
        "email": "bparrot@ti.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/1422899085-678-3-git-send-email-bparrot@ti.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/435601/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/435601/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-gpio-owner@vger.kernel.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id C7416140272\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  3 Feb 2015 04:45:47 +1100 (AEDT)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1753321AbbBBRp0 (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tMon, 2 Feb 2015 12:45:26 -0500",
            "from comal.ext.ti.com ([198.47.26.152]:46041 \"EHLO\n\tcomal.ext.ti.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1752955AbbBBRpY (ORCPT <rfc822;linux-gpio@vger.kernel.org>);\n\tMon, 2 Feb 2015 12:45:24 -0500",
            "from dlelxv90.itg.ti.com ([172.17.2.17])\n\tby comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id t12HjIlT022196;\n\tMon, 2 Feb 2015 11:45:18 -0600",
            "from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110])\n\tby dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id t12HjHCd026359; \n\tMon, 2 Feb 2015 11:45:17 -0600",
            "from dlep32.itg.ti.com (157.170.170.100) by DFLE73.ent.ti.com\n\t(128.247.5.110) with Microsoft SMTP Server id 14.3.224.2;\n\tMon, 2 Feb 2015 11:45:17 -0600",
            "from tct7400.am.dhcp.ti.com (ileax41-snat.itg.ti.com\n\t[10.172.224.153])\tby dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id\n\tt12HisDC009148;\tMon, 2 Feb 2015 11:45:17 -0600"
        ],
        "From": "Benoit Parrot <bparrot@ti.com>",
        "To": "Linus Walleij <linus.walleij@linaro.org>",
        "CC": "<linux-gpio@vger.kernel.org>, <linux-kernel@vger.kernel.org>,\n\t<devicetree@vger.kernel.org>, Alexandre Courbot <gnurou@gmail.com>,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tJiri Prchal <jiri.prchal@aksignal.cz>,\n\tPantelis Antoniou <panto@antoniou-consulting.com>,\n\tBenoit Parrot <bparrot@ti.com>",
        "Subject": "[Patch v6 2/2] gpio: Document GPIO hogging mechanism",
        "Date": "Mon, 2 Feb 2015 11:44:45 -0600",
        "Message-ID": "<1422899085-678-3-git-send-email-bparrot@ti.com>",
        "X-Mailer": "git-send-email 1.8.5.1",
        "In-Reply-To": "<1422899085-678-1-git-send-email-bparrot@ti.com>",
        "References": "<1422899085-678-1-git-send-email-bparrot@ti.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "Sender": "linux-gpio-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<linux-gpio.vger.kernel.org>",
        "X-Mailing-List": "linux-gpio@vger.kernel.org"
    },
    "content": "Add GPIO hogging documentation to gpio.txt\n\nSigned-off-by: Benoit Parrot <bparrot@ti.com>\nReviewed-by: Alexandre Courbot <acourbot@nvidia.com>\n---\n Documentation/devicetree/bindings/gpio/gpio.txt | 30 +++++++++++++++++++++++++\n 1 file changed, 30 insertions(+)",
    "diff": "diff --git a/Documentation/devicetree/bindings/gpio/gpio.txt b/Documentation/devicetree/bindings/gpio/gpio.txt\nindex b9bd1d6..a0ce2bd 100644\n--- a/Documentation/devicetree/bindings/gpio/gpio.txt\n+++ b/Documentation/devicetree/bindings/gpio/gpio.txt\n@@ -115,6 +115,29 @@ Every GPIO controller node must contain both an empty \"gpio-controller\"\n property, and a #gpio-cells integer property, which indicates the number of\n cells in a gpio-specifier.\n \n+The GPIO chip may contain GPIO hog definitions. GPIO hogging is a mechanism\n+providing automatic GPIO request and configuration as part of the\n+gpio-controller's driver probe function.\n+\n+Each GPIO hog definition is represented as a child node of the GPIO controller.\n+Required properties:\n+- gpio-hog:   A property specifying that this child node represent a GPIO hog.\n+- gpios:      Store the GPIO information (id, flags, ...). Shall contain the\n+\t      number of cells specified in its parent node (GPIO controller\n+\t      node).\n+Only one of the following properties scanned in the order shown below.\n+This means that when multiple properties are present they will be searched\n+in the order presented below and the first match is taken as the intended\n+configuration.\n+- input:      A property specifying to set the GPIO direction as input.\n+- output-low  A property specifying to set the GPIO direction as output with\n+\t      the value low.\n+- output-high A property specifying to set the GPIO direction as output with\n+\t      the value high.\n+\n+Optional properties:\n+- line-name:  The GPIO label name. If not present the node name is used.\n+\n Example of two SOC GPIO banks defined as gpio-controller nodes:\n \n \tqe_pio_a: gpio-controller@1400 {\n@@ -122,6 +145,13 @@ Example of two SOC GPIO banks defined as gpio-controller nodes:\n \t\treg = <0x1400 0x18>;\n \t\tgpio-controller;\n \t\t#gpio-cells = <2>;\n+\n+\t\tline_b {\n+\t\t\tgpio-hog;\n+\t\t\tgpios = <6 0>;\n+\t\t\toutput-low;\n+\t\t\tline-name = \"foo-bar-gpio\";\n+\t\t};\n \t};\n \n \tqe_pio_e: gpio-controller@1460 {\n",
    "prefixes": [
        "v6",
        "2/2"
    ]
}