get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808081,
    "url": "http://patchwork.ozlabs.org/api/patches/808081/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/skiboot/patch/1504163557-14432-6-git-send-email-cclaudio@linux.vnet.ibm.com/",
    "project": {
        "id": 44,
        "url": "http://patchwork.ozlabs.org/api/projects/44/?format=api",
        "name": "skiboot firmware development",
        "link_name": "skiboot",
        "list_id": "skiboot.lists.ozlabs.org",
        "list_email": "skiboot@lists.ozlabs.org",
        "web_url": "http://github.com/open-power/skiboot",
        "scm_url": "http://github.com/open-power/skiboot",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1504163557-14432-6-git-send-email-cclaudio@linux.vnet.ibm.com>",
    "list_archive_url": null,
    "date": "2017-08-31T07:12:37",
    "name": "[v2,5/5] hdata/i2c: add support to the i2c array version 2",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": false,
    "hash": "aab5d344043f208deb4866384c5fd6c9a31af71d",
    "submitter": {
        "id": 69305,
        "url": "http://patchwork.ozlabs.org/api/people/69305/?format=api",
        "name": "Claudio Carvalho",
        "email": "cclaudio@linux.vnet.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/skiboot/patch/1504163557-14432-6-git-send-email-cclaudio@linux.vnet.ibm.com/mbox/",
    "series": [
        {
            "id": 758,
            "url": "http://patchwork.ozlabs.org/api/series/758/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/skiboot/list/?series=758",
            "date": "2017-08-31T07:12:32",
            "name": "hdata/i2c: add support to i2c array version 2 in P9",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/758/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808081/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808081/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "skiboot@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "skiboot@lists.ozlabs.org"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\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 3xjYZ76j2Bz9s7c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 17:15:59 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xjYZ75v2WzDqZ9\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 17:15:59 +1000 (AEST)",
            "from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n\t[148.163.158.5])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xjYVg3PW0zDqXl\n\tfor <skiboot@lists.ozlabs.org>; Thu, 31 Aug 2017 17:12:59 +1000 (AEST)",
            "from pps.filterd (m0098413.ppops.net [127.0.0.1])\n\tby mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7V79cVA104574\n\tfor <skiboot@lists.ozlabs.org>; Thu, 31 Aug 2017 03:12:56 -0400",
            "from e19.ny.us.ibm.com (e19.ny.us.ibm.com [129.33.205.209])\n\tby mx0b-001b2d01.pphosted.com with ESMTP id 2cpbh896kg-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <skiboot@lists.ozlabs.org>; Thu, 31 Aug 2017 03:12:55 -0400",
            "from localhost\n\tby e19.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <skiboot@lists.ozlabs.org> from <cclaudio@linux.vnet.ibm.com>;\n\tThu, 31 Aug 2017 03:12:55 -0400",
            "from b01cxnp23034.gho.pok.ibm.com (9.57.198.29)\n\tby e19.ny.us.ibm.com (146.89.104.206) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tThu, 31 Aug 2017 03:12:54 -0400",
            "from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com\n\t[9.57.199.110])\n\tby b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v7V7CsCN25231522; Thu, 31 Aug 2017 07:12:54 GMT",
            "from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 6EE06AE043;\n\tThu, 31 Aug 2017 03:13:18 -0400 (EDT)",
            "from legolas.ibm.com (unknown [9.85.193.48])\n\tby b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP id C3305AE034;\n\tThu, 31 Aug 2017 03:13:17 -0400 (EDT)"
        ],
        "From": "Claudio Carvalho <cclaudio@linux.vnet.ibm.com>",
        "To": "skiboot@lists.ozlabs.org",
        "Date": "Thu, 31 Aug 2017 04:12:37 -0300",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1504163557-14432-1-git-send-email-cclaudio@linux.vnet.ibm.com>",
        "References": "<1504163557-14432-1-git-send-email-cclaudio@linux.vnet.ibm.com>",
        "X-TM-AS-GCONF": "00",
        "x-cbid": "17083107-0056-0000-0000-000003BF3F35",
        "X-IBM-SpamModules-Scores": "",
        "X-IBM-SpamModules-Versions": "BY=3.00007640; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000226; SDB=6.00910093; UDB=6.00456508;\n\tIPR=6.00690374; \n\tBA=6.00005562; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009;\n\tZB=6.00000000; \n\tZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016938;\n\tXFM=3.00000015; UTC=2017-08-31 07:12:55",
        "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused",
        "x-cbparentid": "17083107-0057-0000-0000-000007F5706D",
        "Message-Id": "<1504163557-14432-6-git-send-email-cclaudio@linux.vnet.ibm.com>",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-31_02:, , signatures=0",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=1\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000\n\tdefinitions=main-1708310109",
        "Subject": "[Skiboot] [PATCH v2 5/5] hdata/i2c: add support to the i2c array\n\tversion 2",
        "X-BeenThere": "skiboot@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "Mailing list for skiboot development <skiboot.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/skiboot>,\n\t<mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/skiboot/>",
        "List-Post": "<mailto:skiboot@lists.ozlabs.org>",
        "List-Help": "<mailto:skiboot-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/skiboot>,\n\t<mailto:skiboot-request@lists.ozlabs.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Skiboot\"\n\t<skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>"
    },
    "content": "This adds the description field to the i2c array, as specified in the i2c\narray version 2.\n\nWhen the description field is populated, we should be able to get the\ndescription (name, compat and label) of new i2c devices from it, instead\nof having to input these information manually in the list of known i2c\ndevices.\n\nSigned-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com>\n---\n hdata/i2c.c | 8 +++-----\n 1 file changed, 3 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/hdata/i2c.c b/hdata/i2c.c\nindex 8a2e392..c365a92 100644\n--- a/hdata/i2c.c\n+++ b/hdata/i2c.c\n@@ -22,6 +22,7 @@ struct i2c_dev {\n \t__be32 purpose;\n \t__be32 i2c_link;\n \t__be16 slca_index;\n+\tchar desc[64];\n };\n \n #define P9_I2CM_XSCOM_SIZE 0x1000\n@@ -202,11 +203,8 @@ int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index,\n \t\tversion = be32_to_cpu(ahdr->version);\n \t}\n \n-\tif (version == 2) {\n-\t\tprerror(\"I2C: v%d found, but not supported. Parsing as v1\\n\",\n-\t\t\tversion);\n-\t} else if (version > 2) {\n-\t\tprerror(\"I2C: v%d found, but not supported! THIS IS A BUG\\n\",\n+\tif (version != 1 && version != 2) {\n+\t\tprerror(\"I2C: HDAT version %d not supported! THIS IS A BUG\\n\",\n \t\t\tversion);\n \t\treturn -1;\n \t}\n",
    "prefixes": [
        "v2",
        "5/5"
    ]
}