get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 805785,
    "url": "http://patchwork.ozlabs.org/api/patches/805785/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openbmc/patch/20170825063503.31577-2-andrew@aj.id.au/",
    "project": {
        "id": 56,
        "url": "http://patchwork.ozlabs.org/api/projects/56/?format=api",
        "name": "OpenBMC development",
        "link_name": "openbmc",
        "list_id": "openbmc.lists.ozlabs.org",
        "list_email": "openbmc@lists.ozlabs.org",
        "web_url": "http://github.com/openbmc/",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170825063503.31577-2-andrew@aj.id.au>",
    "list_archive_url": null,
    "date": "2017-08-25T06:35:02",
    "name": "[1/2] dt-bindings: leds: gpio: Add optional retain-state-shutdown property",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "1798225d1607a2a0c0d8ab545aea3f39502446d9",
    "submitter": {
        "id": 68332,
        "url": "http://patchwork.ozlabs.org/api/people/68332/?format=api",
        "name": "Andrew Jeffery",
        "email": "andrew@aj.id.au"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openbmc/patch/20170825063503.31577-2-andrew@aj.id.au/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/805785/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/805785/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "openbmc@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "openbmc@lists.ozlabs.org"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xdrzT2VBzz9t24\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 25 Aug 2017 16:36:37 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xdrzT15q5zDqZ1\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 25 Aug 2017 16:36:37 +1000 (AEST)",
            "from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com\n\t[66.111.4.26])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xdryv0TnDzDqZ1\n\tfor <openbmc@lists.ozlabs.org>; Fri, 25 Aug 2017 16:36:06 +1000 (AEST)",
            "from compute4.internal (compute4.nyi.internal [10.202.2.44])\n\tby mailout.nyi.internal (Postfix) with ESMTP id 8504C21479;\n\tFri, 25 Aug 2017 02:36:04 -0400 (EDT)",
            "from frontend1 ([10.202.2.160])\n\tby compute4.internal (MEProxy); Fri, 25 Aug 2017 02:36:04 -0400",
            "from keelia.aj.id.au\n\t(ppp118-210-176-216.bras2.adl6.internode.on.net [118.210.176.216])\n\tby mail.messagingengine.com (Postfix) with ESMTPA id 9EBBE7E1B4;\n\tFri, 25 Aug 2017 02:36:00 -0400 (EDT)"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=aj.id.au header.i=@aj.id.au header.b=\"kqLC+EK8\";\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com header.b=\"QM464gPS\"; \n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=aj.id.au header.i=@aj.id.au header.b=\"kqLC+EK8\";\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com header.b=\"QM464gPS\"; \n\tdkim-atps=neutral",
            "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=aj.id.au header.i=@aj.id.au header.b=\"kqLC+EK8\";\n\tdkim=pass (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com\n\theader.b=\"QM464gPS\"; dkim-atps=neutral"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc\n\t:date:from:in-reply-to:message-id:references:subject:to\n\t:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=NcTUM4\n\tEhpW7ne/3uFo+obaqRQHcFXtOdywhZSzQTpRM=; b=kqLC+EK8SWqx9CgaEjsIZx\n\tcnqYOvU4+nGYCM9LyucVFPAtf7QmulTYF9nx06NolRdOlAcZ6X5zB/xgdn/Mo4py\n\tzZ8UKMQJHQ3WpxWXMrQuZ+JRBvMe1EpjkYVRGqW6UmezLPXWvchebBTH5Zrj5Dfu\n\t6BFNZmBqNcQry0IH1mLCw/zNowU/+4YTY4bWs/MyfZUroVcJJ1AyOH2vhUrz/w3d\n\tYnMqJFmevPCqqWvCEkXh4kWGBss7DArqUiWEYW038bc1w8lATXGkZqnZfQj5JFrk\n\tOYn62lc+uPRZlQXv5klLcS5lMJTcrxCk/5MtIj5R6sVX73ORZLqRsi4nEKCqvY7Q\n\t==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tmessagingengine.com; h=cc:date:from:in-reply-to:message-id\n\t:references:subject:to:x-me-sender:x-me-sender:x-sasl-enc\n\t:x-sasl-enc; s=fm1; bh=NcTUM4EhpW7ne/3uFo+obaqRQHcFXtOdywhZSzQTp\n\tRM=; b=QM464gPSgVo5/00yUz4RK5/AK+w4b9QhnJSH5APH9X/cQDnnqgo3tkpFG\n\tWsaZLJ4lDZsuk79NliwLgVtHUgXMvKj2HtTBqz62DriRKAV1LplKXopeYzH3pwZK\n\t+sp7mi2k32gZQBnQpV7fSai++xXeSGywGOyFQnmdpR+QOnc0K0myxf1dC7UkDwLz\n\t9dPDDzt17BsSoysK/8w4PelXBuebKxVsn3amgS+72BK7XITr9Wido2lI+k6RxB/k\n\tY6MR8SIt/jVVR1Dw1quagVaytVUWGnBSNDsbKCTyXuvEaga8Xz716zx5fdNxRiCF\n\tpFG12gf9P0DyrRmzjzPVv9Hf31yuA=="
        ],
        "X-ME-Sender": "<xms:VMWfWWCZ7yHYdH-pyREz1oJXxVHBZ1UDpNE3_aqwYMwuEcRtS8jGug>",
        "X-Sasl-enc": "JzDY7hYVZZSzW2hiCXhbgCZ2kQvemiy5xwYzOJzvPEGD 1503642963",
        "From": "Andrew Jeffery <andrew@aj.id.au>",
        "To": "linux-leds@vger.kernel.org",
        "Subject": "[PATCH 1/2] dt-bindings: leds: gpio: Add optional\n\tretain-state-shutdown property",
        "Date": "Fri, 25 Aug 2017 16:05:02 +0930",
        "Message-Id": "<20170825063503.31577-2-andrew@aj.id.au>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170825063503.31577-1-andrew@aj.id.au>",
        "References": "<20170825063503.31577-1-andrew@aj.id.au>",
        "X-BeenThere": "openbmc@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "Development list for OpenBMC <openbmc.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/openbmc>,\n\t<mailto:openbmc-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/openbmc/>",
        "List-Post": "<mailto:openbmc@lists.ozlabs.org>",
        "List-Help": "<mailto:openbmc-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/openbmc>,\n\t<mailto:openbmc-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "mark.rutland@arm.com, devicetree@vger.kernel.org,\n\tAndrew Jeffery <andrew@aj.id.au>, openbmc@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org, robh+dt@kernel.org, rpurdie@rpsys.net, \n\tjacek.anaszewski@gmail.com, pavel@ucw.cz",
        "Errors-To": "openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org",
        "Sender": "\"openbmc\"\n\t<openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>"
    },
    "content": "On BMC systems it's sometimes necessary for a LED to retain its state\nacross a BMC reset (which is independent of the host system state). Add\na devicetree property to describe this behaviour. The property would\ntypically be used in conjunction with 'default-state = \"keep\"'.\n\nSigned-off-by: Andrew Jeffery <andrew@aj.id.au>\n---\n Documentation/devicetree/bindings/leds/leds-gpio.txt | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/Documentation/devicetree/bindings/leds/leds-gpio.txt b/Documentation/devicetree/bindings/leds/leds-gpio.txt\nindex 76535ca37120..a48dda268f81 100644\n--- a/Documentation/devicetree/bindings/leds/leds-gpio.txt\n+++ b/Documentation/devicetree/bindings/leds/leds-gpio.txt\n@@ -18,6 +18,9 @@ LED sub-node properties:\n   see Documentation/devicetree/bindings/leds/common.txt\n - retain-state-suspended: (optional) The suspend state can be retained.Such\n   as charge-led gpio.\n+- retain-state-shutdown: (optional) Retain the state of the LED on shutdown.\n+  Useful in BMC systems, for example when the BMC is rebooted while the host\n+  remains up.\n - panic-indicator : (optional)\n   see Documentation/devicetree/bindings/leds/common.txt\n \n",
    "prefixes": [
        "1/2"
    ]
}