get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 814927,
    "url": "http://patchwork.ozlabs.org/api/patches/814927/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1505742050-5697-6-git-send-email-bmeng.cn@gmail.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1505742050-5697-6-git-send-email-bmeng.cn@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-18T13:40:41",
    "name": "[U-Boot,05/14] usb: xhci: Add interrupt transfer support",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "1a66ddc59cce5c8d0170bac35e2639e64b8452ac",
    "submitter": {
        "id": 64981,
        "url": "http://patchwork.ozlabs.org/api/people/64981/?format=api",
        "name": "Bin Meng",
        "email": "bmeng.cn@gmail.com"
    },
    "delegate": {
        "id": 1699,
        "url": "http://patchwork.ozlabs.org/api/users/1699/?format=api",
        "username": "marex",
        "first_name": "Marek",
        "last_name": "Vasut",
        "email": "marek.vasut@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1505742050-5697-6-git-send-email-bmeng.cn@gmail.com/mbox/",
    "series": [
        {
            "id": 3647,
            "url": "http://patchwork.ozlabs.org/api/series/3647/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=3647",
            "date": "2017-09-18T13:40:36",
            "name": "usb: xhci: Add interrupt transfer support and full speed device support",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/3647/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/814927/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814927/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"CZRpLn+7\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xwnHB1CHsz9s4s\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 23:41:58 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 000FDC21F59; Mon, 18 Sep 2017 13:37:54 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id BA121C21F3E;\n\tMon, 18 Sep 2017 13:36:52 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 21024C21E73; Mon, 18 Sep 2017 13:36:39 +0000 (UTC)",
            "from mail-io0-f193.google.com (mail-io0-f193.google.com\n\t[209.85.223.193])\n\tby lists.denx.de (Postfix) with ESMTPS id C8434C21F33\n\tfor <u-boot@lists.denx.de>; Mon, 18 Sep 2017 13:36:35 +0000 (UTC)",
            "by mail-io0-f193.google.com with SMTP id d16so1093592ioj.2\n\tfor <u-boot@lists.denx.de>; Mon, 18 Sep 2017 06:36:35 -0700 (PDT)",
            "from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com.\n\t[147.11.156.139]) by smtp.gmail.com with ESMTPSA id\n\t193sm2528740ion.83.2017.09.18.06.36.33\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 18 Sep 2017 06:36:33 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=rUyvRKWod0IUo/1yCcfzWL/wkrGcutW8ew1GTh5ngR4=;\n\tb=CZRpLn+7rhEBXICr8rA6TB5J+imIjGrBUEsopTpjbjoWGWaymi3DdBg+WaQb+7U34i\n\t8H0QAe0DDESlXC0k04QH/5pBLMSCScsZEdiTsMofUEVSgmBNMHkXCnE308z/shBqi0tj\n\tGLYqLbcgW1KzO1spSQzzWiwyQfJs30suAu4I/mcgPG6nJ/JObSReIGazegIXKyD/0Cga\n\tIQNdsxPgRvm/wYoP/EZtO5m8uSWUMdzgGkfd9bKdV3s7h8vRMfR1i/9y5S1icAJ8MqZP\n\tXPbBrUpDS8Dp3WEemtB6wEQIT/Fiz8Coj8TzKTVPQuoXFJ4/Ln2ATqWqI/g90mkEll0x\n\toQmA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=rUyvRKWod0IUo/1yCcfzWL/wkrGcutW8ew1GTh5ngR4=;\n\tb=WL4Rhwe4xKr2unBZKQBKPn4nFfvfF4EyjyswrVzuvZggtzG/SPZi4AtWMpnTe6oUiZ\n\tSEO4kNHRu4m7MdJB8EgO1K92VOsS0spd1xLz71ZE0EGFk+3oDay3SYdneXT9GPjoQl6G\n\t/h4gJbiTXbxbp7mnHr52XGT8AYig5Cg+v0jt0W/yG7fGm5QN6ntcbKnnB5i3su84e5KI\n\tuKIxkuobQC/3nIpBvSBmRjAElBLQwjXTWgiOzHd8FD8SSwNk5fCjfFu2yIRw5jWxX/RP\n\tNN51NAS2f6J6XzFFeuLOy6vcg/vQGNnxX1cWozCW8vBDNMrtyf2zdEoGEqukva5m+15G\n\tWc4Q==",
        "X-Gm-Message-State": "AHPjjUizmI060mU35nfbuvi4WJM+kP0pLbZZKT3dVPeJjSyQMlaRBr+W\n\tzaYqcbHQbTLpFyBw",
        "X-Google-Smtp-Source": "AOwi7QCLsitX2pN9xvl0VzqUnHYqDPyXgYgQakc5HLEno668bK85GcGRz/V1Nt/GgY4GC1QVGEL3HA==",
        "X-Received": "by 10.107.139.215 with SMTP id\n\tn206mr20893235iod.155.1505741794787; \n\tMon, 18 Sep 2017 06:36:34 -0700 (PDT)",
        "From": "Bin Meng <bmeng.cn@gmail.com>",
        "To": "Marek Vasut <marex@denx.de>, U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Mon, 18 Sep 2017 06:40:41 -0700",
        "Message-Id": "<1505742050-5697-6-git-send-email-bmeng.cn@gmail.com>",
        "X-Mailer": "git-send-email 1.7.9.5",
        "In-Reply-To": "<1505742050-5697-1-git-send-email-bmeng.cn@gmail.com>",
        "References": "<1505742050-5697-1-git-send-email-bmeng.cn@gmail.com>",
        "Cc": "Stefan Roese <sr@denx.de>",
        "Subject": "[U-Boot] [PATCH 05/14] usb: xhci: Add interrupt transfer support",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "xHCI uses normal TRBs for both bulk and interrupt. This adds the\nmissing interrupt transfer support to xHCI so that devices like\nUSB keyboard that uses interrupt transfer can work.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\n---\n\n drivers/usb/host/xhci.c | 13 ++++++++++---\n 1 file changed, 10 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c\nindex 04eb1eb..4b3d58d 100644\n--- a/drivers/usb/host/xhci.c\n+++ b/drivers/usb/host/xhci.c\n@@ -890,11 +890,18 @@ unknown:\n static int _xhci_submit_int_msg(struct usb_device *udev, unsigned long pipe,\n \t\t\t\tvoid *buffer, int length, int interval)\n {\n+\tif (usb_pipetype(pipe) != PIPE_INTERRUPT) {\n+\t\tprintf(\"non-interrupt pipe (type=%lu)\", usb_pipetype(pipe));\n+\t\treturn -EINVAL;\n+\t}\n+\n \t/*\n-\t * TODO: Not addressing any interrupt type transfer requests\n-\t * Add support for it later.\n+\t * xHCI uses normal TRBs for both bulk and interrupt. When the\n+\t * interrupt endpoint is to be serviced, the xHC will consume\n+\t * (at most) one TD. A TD (comprised of sg list entries) can\n+\t * take several service intervals to transmit.\n \t */\n-\treturn -EINVAL;\n+\treturn xhci_bulk_tx(udev, pipe, length, buffer);\n }\n \n /**\n",
    "prefixes": [
        "U-Boot",
        "05/14"
    ]
}