get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808084,
    "url": "http://patchwork.ozlabs.org/api/patches/808084/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504163646.4681.7.camel@hbabu-laptop/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<1504163646.4681.7.camel@hbabu-laptop>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1504163646.4681.7.camel@hbabu-laptop/",
    "date": "2017-08-31T07:14:06",
    "name": "[V4,4/7] crypto/nx: Add nx842_add_coprocs_list function",
    "commit_ref": "cd38a8a8a2ab95e43a031410db6a32f2d84e3fc0",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "dcbc752bfbdb5bcc91f8b458fa815d9978437b8c",
    "submitter": {
        "id": 12875,
        "url": "http://patchwork.ozlabs.org/api/people/12875/?format=api",
        "name": "Haren Myneni",
        "email": "haren@linux.vnet.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504163646.4681.7.camel@hbabu-laptop/mbox/",
    "series": [
        {
            "id": 757,
            "url": "http://patchwork.ozlabs.org/api/series/757/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=757",
            "date": "2017-08-31T07:10:13",
            "name": "Enable NX 842 compression engine on Power9",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/757/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808084/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808084/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@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 3xjYcx3fqyz9s7c\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 17:18:25 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xjYcx2m7KzDqkh\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 17:18:25 +1000 (AEST)",
            "from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com\n\t[148.163.156.1])\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 3xjYXH5cH7zDqqP\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 31 Aug 2017 17:14:23 +1000 (AEST)",
            "from pps.filterd (m0098409.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7V7A3KN010000\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 31 Aug 2017 03:14:21 -0400",
            "from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2cp9ds0xtc-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 31 Aug 2017 03:14:21 -0400",
            "from localhost\n\tby e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@lists.ozlabs.org> from <haren@linux.vnet.ibm.com>; \n\tThu, 31 Aug 2017 03:14:20 -0400",
            "from b01cxnp22036.gho.pok.ibm.com (9.57.198.26)\n\tby e18.ny.us.ibm.com (146.89.104.205) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tThu, 31 Aug 2017 03:14:18 -0400",
            "from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com\n\t[9.57.199.109])\n\tby b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v7V7EHoh31522872; Thu, 31 Aug 2017 07:14:17 GMT",
            "from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 5971A112047;\n\tThu, 31 Aug 2017 03:14:03 -0400 (EDT)",
            "from [9.70.82.25] (unknown [9.70.82.25])\n\tby b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP id 5F35A112040;\n\tThu, 31 Aug 2017 03:14:02 -0400 (EDT)"
        ],
        "Subject": "[PATCH V4 4/7] crypto/nx: Add nx842_add_coprocs_list function",
        "From": "Haren Myneni <haren@linux.vnet.ibm.com>",
        "To": "mpe@ellerman.id.au, herbert@gondor.apana.org.au",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Date": "Thu, 31 Aug 2017 00:14:06 -0700",
        "Mime-Version": "1.0",
        "X-Mailer": "Evolution 2.28.3 ",
        "Content-Transfer-Encoding": "7bit",
        "X-TM-AS-GCONF": "00",
        "x-cbid": "17083107-0044-0000-0000-00000385D3AA",
        "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.00910094; UDB=6.00456509;\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:14:20",
        "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused",
        "x-cbparentid": "17083107-0045-0000-0000-000007B3ECB6",
        "Message-Id": "<1504163646.4681.7.camel@hbabu-laptop>",
        "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=0\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",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "mikey@neuling.org, linuxram@us.ibm.com, npiggin@gmail.com,\n\tsuka@us.ibm.com, \n\tlinux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,\n\tddstreet@ieee.org",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"
    },
    "content": "Updating coprocessor list is moved to nx842_add_coprocs_list().\nThis function will be used for both icswx and VAS functions.\n\nSigned-off-by: Haren Myneni <haren@us.ibm.com>\n---\n drivers/crypto/nx/nx-842-powernv.c | 12 +++++++++---\n 1 file changed, 9 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/crypto/nx/nx-842-powernv.c b/drivers/crypto/nx/nx-842-powernv.c\nindex 67dc06f9b557..829b5cad0043 100644\n--- a/drivers/crypto/nx/nx-842-powernv.c\n+++ b/drivers/crypto/nx/nx-842-powernv.c\n@@ -550,6 +550,14 @@ static int nx842_powernv_decompress(const unsigned char *in, unsigned int inlen,\n \t\t\t\t      wmem, CCW_FC_842_DECOMP_CRC);\n }\n \n+static inline void nx842_add_coprocs_list(struct nx842_coproc *coproc,\n+\t\t\t\t\tint chipid)\n+{\n+\tcoproc->chip_id = chipid;\n+\tINIT_LIST_HEAD(&coproc->list);\n+\tlist_add(&coproc->list, &nx842_coprocs);\n+}\n+\n static int __init nx842_powernv_probe(struct device_node *dn)\n {\n \tstruct nx842_coproc *coproc;\n@@ -576,11 +584,9 @@ static int __init nx842_powernv_probe(struct device_node *dn)\n \tif (!coproc)\n \t\treturn -ENOMEM;\n \n-\tcoproc->chip_id = chip_id;\n \tcoproc->ct = ct;\n \tcoproc->ci = ci;\n-\tINIT_LIST_HEAD(&coproc->list);\n-\tlist_add(&coproc->list, &nx842_coprocs);\n+\tnx842_add_coprocs_list(coproc, chip_id);\n \n \tpr_info(\"coprocessor found on chip %d, CT %d CI %d\\n\", chip_id, ct, ci);\n \n",
    "prefixes": [
        "V4",
        "4/7"
    ]
}