get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 807550,
    "url": "http://patchwork.ozlabs.org/api/patches/807550/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20170830094814.17758-6-hdegoede@redhat.com/",
    "project": {
        "id": 35,
        "url": "http://patchwork.ozlabs.org/api/projects/35/?format=api",
        "name": "Linux I2C development",
        "link_name": "linux-i2c",
        "list_id": "linux-i2c.vger.kernel.org",
        "list_email": "linux-i2c@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170830094814.17758-6-hdegoede@redhat.com>",
    "list_archive_url": null,
    "date": "2017-08-30T09:48:08",
    "name": "[v3,05/11] staging: typec: fusb302: Use client->irq as irq if set",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "77739d073fbaee5508e4d72ab87e7aa5d056ee45",
    "submitter": {
        "id": 1893,
        "url": "http://patchwork.ozlabs.org/api/people/1893/?format=api",
        "name": "Hans de Goede",
        "email": "hdegoede@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20170830094814.17758-6-hdegoede@redhat.com/mbox/",
    "series": [
        {
            "id": 564,
            "url": "http://patchwork.ozlabs.org/api/series/564/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/list/?series=564",
            "date": "2017-08-30T09:48:14",
            "name": "Hookup typec power-negotation to the PMIC and charger",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/564/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/807550/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/807550/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-i2c-owner@vger.kernel.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-i2c-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
            "ext-mx06.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com",
            "ext-mx06.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=hdegoede@redhat.com"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xj13q2xjNz9sNn\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 19:51:19 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751743AbdH3Jsi (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tWed, 30 Aug 2017 05:48:38 -0400",
            "from mx1.redhat.com ([209.132.183.28]:35422 \"EHLO mx1.redhat.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1751685AbdH3Jsg (ORCPT <rfc822;linux-i2c@vger.kernel.org>);\n\tWed, 30 Aug 2017 05:48:36 -0400",
            "from smtp.corp.redhat.com\n\t(int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id BF8AD356F3;\n\tWed, 30 Aug 2017 09:48:35 +0000 (UTC)",
            "from shalem.localdomain.com (ovpn-116-238.ams2.redhat.com\n\t[10.36.116.238])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 75FDF87C87;\n\tWed, 30 Aug 2017 09:48:32 +0000 (UTC)"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com BF8AD356F3",
        "From": "Hans de Goede <hdegoede@redhat.com>",
        "To": "Darren Hart <dvhart@infradead.org>, Andy Shevchenko <andy@infradead.org>,\n\tWolfram Sang <wsa@the-dreams.de>, Sebastian Reichel <sre@kernel.org>,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>,\n\tGuenter Roeck <linux@roeck-us.net>,\n\tHeikki Krogerus <heikki.krogerus@linux.intel.com>",
        "Cc": "Hans de Goede <hdegoede@redhat.com>,\n\tplatform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tlinux-i2c@vger.kernel.org, Liam Breck <liam@networkimprov.net>,\n\tTony Lindgren <tony@atomide.com>, linux-pm@vger.kernel.org,\n\tdevel@driverdev.osuosl.org, \"Yueyao (Nathan) Zhu\" <yueyao@google.com>",
        "Subject": "[PATCH v3 05/11] staging: typec: fusb302: Use client->irq as irq if\n\tset",
        "Date": "Wed, 30 Aug 2017 11:48:08 +0200",
        "Message-Id": "<20170830094814.17758-6-hdegoede@redhat.com>",
        "In-Reply-To": "<20170830094814.17758-1-hdegoede@redhat.com>",
        "References": "<20170830094814.17758-1-hdegoede@redhat.com>",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.15",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.30]);\n\tWed, 30 Aug 2017 09:48:36 +0000 (UTC)",
        "Sender": "linux-i2c-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<linux-i2c.vger.kernel.org>",
        "X-Mailing-List": "linux-i2c@vger.kernel.org"
    },
    "content": "The fusb302 is also used on x86 systems where the platform code sets\nthe irq in client->irq and there is no gpio named fcs,int_n.\n\nCc: \"Yueyao (Nathan) Zhu\" <yueyao@google.com>\nSigned-off-by: Hans de Goede <hdegoede@redhat.com>\n---\n drivers/staging/typec/fusb302/fusb302.c | 10 +++++++---\n 1 file changed, 7 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/staging/typec/fusb302/fusb302.c b/drivers/staging/typec/fusb302/fusb302.c\nindex 1c1751c994db..675161cf4f3a 100644\n--- a/drivers/staging/typec/fusb302/fusb302.c\n+++ b/drivers/staging/typec/fusb302/fusb302.c\n@@ -1735,9 +1735,13 @@ static int fusb302_probe(struct i2c_client *client,\n \t\tgoto destroy_workqueue;\n \t}\n \n-\tret = init_gpio(chip);\n-\tif (ret < 0)\n-\t\tgoto destroy_workqueue;\n+\tif (client->irq) {\n+\t\tchip->gpio_int_n_irq = client->irq;\n+\t} else {\n+\t\tret = init_gpio(chip);\n+\t\tif (ret < 0)\n+\t\t\tgoto destroy_workqueue;\n+\t}\n \n \tchip->tcpm_port = tcpm_register_port(&client->dev, &chip->tcpc_dev);\n \tif (IS_ERR(chip->tcpm_port)) {\n",
    "prefixes": [
        "v3",
        "05/11"
    ]
}