get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 813073,
    "url": "http://patchwork.ozlabs.org/api/patches/813073/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170912210208.12273-1-marek.vasut+renesas@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": "<20170912210208.12273-1-marek.vasut+renesas@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-12T21:02:08",
    "name": "[U-Boot] usb: xhci: Set number of event segments and entries to 1",
    "commit_ref": "7489d22a3c73b527c21c147f3547e8cc02484e47",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "cb6ee29e3a5241fd3a32bdc06a18e8f88189c84b",
    "submitter": {
        "id": 1124,
        "url": "http://patchwork.ozlabs.org/api/people/1124/?format=api",
        "name": "Marek Vasut",
        "email": "marek.vasut@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/20170912210208.12273-1-marek.vasut+renesas@gmail.com/mbox/",
    "series": [
        {
            "id": 2776,
            "url": "http://patchwork.ozlabs.org/api/series/2776/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=2776",
            "date": "2017-09-12T21:02:08",
            "name": "[U-Boot] usb: xhci: Set number of event segments and entries to 1",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/2776/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/813073/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/813073/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=\"mwsiYBLd\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xsHNM3NtKz9sRV\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 07:04:19 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 30494C22159; Tue, 12 Sep 2017 21:04:08 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 2C580C21C40;\n\tTue, 12 Sep 2017 21:02:41 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid A1941C2210B; Tue, 12 Sep 2017 21:02:39 +0000 (UTC)",
            "from mail-wr0-f196.google.com (mail-wr0-f196.google.com\n\t[209.85.128.196])\n\tby lists.denx.de (Postfix) with ESMTPS id 83313C22097\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 21:02:13 +0000 (UTC)",
            "by mail-wr0-f196.google.com with SMTP id p37so6779308wrb.5\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 14:02:13 -0700 (PDT)",
            "from kurokawa.lan (ip-86-49-107-50.net.upcbroadband.cz.\n\t[86.49.107.50]) by smtp.gmail.com with ESMTPSA id\n\ts196sm17851210wmb.6.2017.09.12.14.02.12\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 12 Sep 2017 14:02:12 -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;\n\tbh=FqVzxPZYBIi3kgCc6rW2bkWdtgm7wYTnw4UnCQ/stWQ=;\n\tb=mwsiYBLdDLDK4QPd+WZAAQUVlqj15Vjh122gKiHCM7Vh/k745IvllI1JE6xYAYah6g\n\tO30GE9bioAUXPYfw0zPANOzhZkmo/4T1gai2PatYNg/HbsduHVX+pubq0LDr5abOVsBL\n\tsWGKPKeInZcFz0kfvVQT5B1zAWldqei7aPKhBXYVaBw7bt7K+gtFZ6n87QRtGeZFLFOx\n\tdBa/JgvEmkJE//5njhCecPHyuEjuim92r8fXD8VqZBhpbOqzevjsoOWY8P+MKUxnmvd5\n\tIjRczL0eSjmjyipderfCpV9Y82nSN+bLWG9t+/FzAmVzns1jj9whhgQrsLDmtMmeVToc\n\tdg3w==",
        "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;\n\tbh=FqVzxPZYBIi3kgCc6rW2bkWdtgm7wYTnw4UnCQ/stWQ=;\n\tb=lMrjwR+fmrDfVzwcHhP1/l5kTr5alVc3mxZ/Pqn6om3XOM88X97sWu6crywJE7H5c0\n\taseSm+naEL+nE1DXsM2OQo22CJsRljcMr9wvnd1DYwV2N2s8iC0N4MCvgAOVldzeHVlV\n\txa3qsPqm3Hqti4vOJ/OdZeiX4SGwwn1u0yjfvN7xB7Pi+/mzEWpRaoSzpzmvrM9tSWYc\n\tgcr/g+6dHKwUw6yhXvXDu0/CnKd97TWHuHU8IbLEXrq+wA5mnrLz2dRzAHrI/aYHvMg3\n\txohbzskP38NyHccKYrUs9mAJPGg2rC/EbZlI4gAcXjPc1jZmZVR/KhT0OPFCyQ5fdW41\n\tWyLw==",
        "X-Gm-Message-State": "AHPjjUj6M/ua0elxoK+5fv0zov+RpZUeEtbonL6OiCGtNwsypfcUBAQ5\n\thq/jNdkmm0gv3ggF9Tk=",
        "X-Google-Smtp-Source": "ADKCNb6Y9CKEwvRyskOxA6rJ5E5/dqkFV+32PhEEAlCqb87O4BG3w0h5lgsrlzrKxsQy3c8Pg3G1nA==",
        "X-Received": "by 10.223.165.5 with SMTP id i5mr12984900wrb.87.1505250132878;\n\tTue, 12 Sep 2017 14:02:12 -0700 (PDT)",
        "From": "Marek Vasut <marek.vasut@gmail.com>",
        "X-Google-Original-From": "Marek Vasut <marek.vasut+renesas@gmail.com>",
        "To": "u-boot@lists.denx.de",
        "Date": "Tue, 12 Sep 2017 23:02:08 +0200",
        "Message-Id": "<20170912210208.12273-1-marek.vasut+renesas@gmail.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "Cc": "Marek Vasut <marek.vasut+renesas@gmail.com>",
        "Subject": "[U-Boot] [PATCH] usb: xhci: Set number of event segments and\n\tentries to 1",
        "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": "The Linux kernel driver sets the number of event segments and entries\nto 1 , while the initial import of the xhci code set that values to 3\nfor reasons unknown. While most controllers are fine with more event\nsegments with more entries, there are standard-conformant controllers\n(ie. Renesas RCar xHCI) which only support 1 event segment.\n\nSet the number of event segments and event entries back to 1 to allow\nsuch controllers to work with U-Boot xHCI stack. Note that the Renesas\ncontroller correctly indicates ERST Max = 1 in HCSPARAMS2[7:4] .\n\nSigned-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\nCc: Bin Meng <bmeng.cn@gmail.com>\n---\n drivers/usb/host/xhci.h | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h\nindex a497d9d830..3377450fca 100644\n--- a/drivers/usb/host/xhci.h\n+++ b/drivers/usb/host/xhci.h\n@@ -1045,9 +1045,9 @@ struct xhci_scratchpad {\n  * (1K bytes * 8bytes/bit) / (4*32 bits) = 64 segment entries in the table,\n  * meaning 64 ring segments.\n  * Initial allocated size of the ERST, in number of entries */\n-#define\tERST_NUM_SEGS\t3\n+#define\tERST_NUM_SEGS\t1\n /* Initial number of event segment rings allocated */\n-#define\tERST_ENTRIES\t3\n+#define\tERST_ENTRIES\t1\n /* Initial allocated size of the ERST, in number of entries */\n #define\tERST_SIZE\t64\n /* Poll every 60 seconds */\n",
    "prefixes": [
        "U-Boot"
    ]
}