get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 814936,
    "url": "http://patchwork.ozlabs.org/api/patches/814936/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1505742050-5697-14-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-14-git-send-email-bmeng.cn@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-18T13:40:49",
    "name": "[U-Boot,13/14] usb: xhci: Set 'Error Count' to 0 for isoch endpoints",
    "commit_ref": "ab2b727dc03113fe35d6a9c937911055be3d3990",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "6ed8c1ad0183551911edcbd7a4f000b46187e189",
    "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-14-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/814936/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814936/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=\"gjrRlIkn\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xwnLN3Wqtz9s4s\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 23:44:44 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 43FACC21F31; Mon, 18 Sep 2017 13:39:48 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 09343C21F64;\n\tMon, 18 Sep 2017 13:37:34 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 0D218C21F6C; Mon, 18 Sep 2017 13:36:52 +0000 (UTC)",
            "from mail-io0-f196.google.com (mail-io0-f196.google.com\n\t[209.85.223.196])\n\tby lists.denx.de (Postfix) with ESMTPS id 3E587C21E61\n\tfor <u-boot@lists.denx.de>; Mon, 18 Sep 2017 13:36:48 +0000 (UTC)",
            "by mail-io0-f196.google.com with SMTP id 93so1090005iol.4\n\tfor <u-boot@lists.denx.de>; Mon, 18 Sep 2017 06:36:48 -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.45\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 18 Sep 2017 06:36:46 -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=shXv9k2jOABxnRjlJHwb+KONJt8Eu45IYieFr5bRcEg=;\n\tb=gjrRlIknpazVrWc3eGcJo84LWBQialODJwbXWkhAOh+1kMVyvHdZdBiJa78j9kaz09\n\twSKrbcXud6sNuEw7BT5Dd7VurzTXhQVc7tflQ+DIQ6voFL4lQMf7zhKJJWcaEA0U0AUj\n\tuu2IlC1gX5+3B2n2XfOgDvaN19iAcfQUHjm6m45SJgB6HrryZVu+qmnAcuMbjSoV4eyX\n\tyzdAFIMUy9acxBhQta/G8LtTvTco7eiO3vDhTtKjpvNqrzfFAjdmxmmKdIP2Ue1prZgw\n\tAWMpSXItlP555ie9vXs5qymBA0dWO2p/a50Wh7LTK6WyrM54MjciOX5a+G9CD1f5vXx7\n\tMsrw==",
        "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=shXv9k2jOABxnRjlJHwb+KONJt8Eu45IYieFr5bRcEg=;\n\tb=EDOrNEcol1EFWpeAPJFJnacaM59b0OjW7FcukT18Ke90eiv7kYdAWcD8rX+bbIPD8P\n\tkpyicPxiOkLkHIAKiDzLebYprgJ4qpUnCaYF4DE9qxOrJdpbP7A6izOXygLfRODEFG8o\n\tAeer67I4YuPVuXea4s7T+Avd0ieXxEt5jIwPUlla/dluq7s4JNKV76nsrWO3dq1A0/HG\n\tuUh/lf43T5LRBt6DntKHJYpWZd/CNfBnk/Gbp7vMMvsyOre0WT5+Tw9If7Y8os8y/A2C\n\tGU4Lg/mymbySjCRzABx3HT44d5KT+TssKZM3CEjrFOJtK3NozSz/g+9KsxZPORrCFoZ4\n\taQ0g==",
        "X-Gm-Message-State": "AHPjjUhHpIOkMGcjzWJBClKJSMZnXfrPn+380zBB3sDdFe6rMpnarHM4\n\taIKzoObRY8CGeA==",
        "X-Google-Smtp-Source": "AOwi7QC4y7XvvD7fJogwNtSlmNUr6Qin5P5AxeVFw3JCJLW2wYtf5aN2En/f8VgJTxHzukBUYB4TjQ==",
        "X-Received": "by 10.107.1.16 with SMTP id 16mr22614138iob.211.1505741807240;\n\tMon, 18 Sep 2017 06:36:47 -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:49 -0700",
        "Message-Id": "<1505742050-5697-14-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 13/14] usb: xhci: Set 'Error Count' to 0 for isoch\n\tendpoints",
        "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": "Per xHCI spec, 'Error Count' should be set to 0 for isoch endpoints.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\n---\n\n drivers/usb/host/xhci.c | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c\nindex dfb188d..93737b0 100644\n--- a/drivers/usb/host/xhci.c\n+++ b/drivers/usb/host/xhci.c\n@@ -511,6 +511,7 @@ static int xhci_set_configuration(struct usb_device *udev)\n \tunsigned int mult;\n \tunsigned int max_burst;\n \tunsigned int avg_trb_len;\n+\tunsigned int err_count = 0;\n \n \tout_ctx = virt_dev->out_ctx;\n \tin_ctx = virt_dev->in_ctx;\n@@ -588,9 +589,12 @@ static int xhci_set_configuration(struct usb_device *udev)\n \t\t\tcpu_to_le32(MAX_PACKET\n \t\t\t(get_unaligned(&endpt_desc->wMaxPacketSize)));\n \n+\t\t/* Allow 3 retries for everything but isoc, set CErr = 3 */\n+\t\tif (!usb_endpoint_xfer_isoc(endpt_desc))\n+\t\t\terr_count = 3;\n \t\tep_ctx[ep_index]->ep_info2 |=\n \t\t\tcpu_to_le32(MAX_BURST(max_burst) |\n-\t\t\t((3 & ERROR_COUNT_MASK) << ERROR_COUNT_SHIFT));\n+\t\t\tERROR_COUNT(err_count));\n \n \t\ttrb_64 = (uintptr_t)\n \t\t\t\tvirt_dev->eps[ep_index].ring->enqueue;\n",
    "prefixes": [
        "U-Boot",
        "13/14"
    ]
}