get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808145,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/808145/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20170831094932.11121-2-joerg.krause@embedded.rocks/",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/27/?format=api",
        "name": "Buildroot development",
        "link_name": "buildroot",
        "list_id": "buildroot.buildroot.org",
        "list_email": "buildroot@buildroot.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170831094932.11121-2-joerg.krause@embedded.rocks>",
    "list_archive_url": null,
    "date": "2017-08-31T09:49:32",
    "name": "[2/2] bluez5_utils: add upstream patch to fix timeout issue with fw download",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "8bdf67dddd055228f02218655eb9646c14df393d",
    "submitter": {
        "id": 65665,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/65665/?format=api",
        "name": "Jörg Krause",
        "email": "joerg.krause@embedded.rocks"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20170831094932.11121-2-joerg.krause@embedded.rocks/mbox/",
    "series": [
        {
            "id": 778,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/778/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=778",
            "date": "2017-08-31T09:49:32",
            "name": "[1/2] bluez5_utils: define FIRMWARE_DIR for hciattach_bcm43xx",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/778/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808145/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808145/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<buildroot-bounces@busybox.net>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "buildroot@lists.busybox.net"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "buildroot@osuosl.org"
        ],
        "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=busybox.net\n\t(client-ip=140.211.166.136; helo=silver.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjczc4H1cz9s7G\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 19:49:47 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id DBA8C3095D;\n\tThu, 31 Aug 2017 09:49:44 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 0fZXI-By+Eax; Thu, 31 Aug 2017 09:49:43 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 9E03230956;\n\tThu, 31 Aug 2017 09:49:43 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 320D91C0D4C\n\tfor <buildroot@lists.busybox.net>;\n\tThu, 31 Aug 2017 09:49:41 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 1B48889C6A\n\tfor <buildroot@lists.busybox.net>;\n\tThu, 31 Aug 2017 09:49:41 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 7WNEIwuXDEN6 for <buildroot@lists.busybox.net>;\n\tThu, 31 Aug 2017 09:49:40 +0000 (UTC)",
            "from mout02.posteo.de (mout02.posteo.de [185.67.36.142])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id AC77E89C62\n\tfor <buildroot@buildroot.org>; Thu, 31 Aug 2017 09:49:39 +0000 (UTC)",
            "from customer (localhost [127.0.0.1])\n\tby submission (posteo.de) with ESMTPSA id 3xjczP0XG7z10Hm\n\tfor <buildroot@buildroot.org>; Thu, 31 Aug 2017 11:49:37 +0200 (CEST)",
            "from mail.embedded.rocks ([127.0.0.1])\n\tby localhost (mail.embedded.rocks [127.0.0.1]) (amavisd-new,\n\tport 10025)\n\twith ESMTP id LTYeddI6EfCS; Thu, 31 Aug 2017 11:49:35 +0200 (CEST)",
            "from nzxt.fritz.box (port-92-195-126-231.dynamic.qsc.de\n\t[92.195.126.231]) (Authenticated sender: joerg.krause@embedded.rocks)\n\tby mail.embedded.rocks (Postfix) with ESMTPSA;\n\tThu, 31 Aug 2017 11:49:35 +0200 (CEST)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "from auto-whitelisted by SQLgrey-1.7.6",
        "From": "=?utf-8?q?J=C3=B6rg_Krause?= <joerg.krause@embedded.rocks>",
        "To": "buildroot@buildroot.org",
        "Date": "Thu, 31 Aug 2017 11:49:32 +0200",
        "Message-Id": "<20170831094932.11121-2-joerg.krause@embedded.rocks>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20170831094932.11121-1-joerg.krause@embedded.rocks>",
        "References": "<20170831094932.11121-1-joerg.krause@embedded.rocks>",
        "MIME-Version": "1.0",
        "Subject": "[Buildroot] [PATCH 2/2] bluez5_utils: add upstream patch to fix\n\ttimeout issue with fw download",
        "X-BeenThere": "buildroot@busybox.net",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Discussion and development of buildroot <buildroot.busybox.net>",
        "List-Unsubscribe": "<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>",
        "List-Archive": "<http://lists.busybox.net/pipermail/buildroot/>",
        "List-Post": "<mailto:buildroot@busybox.net>",
        "List-Help": "<mailto:buildroot-request@busybox.net?subject=help>",
        "List-Subscribe": "<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "buildroot-bounces@busybox.net",
        "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>"
    },
    "content": "Add upstream patch [1] for the hciattach tool to fix timeout issue when\ndownloading firmware to Broadcom bluetooth chips.\n\n[1] https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=76255f732d68aef2b90d36d9c7be51a9e1739ce7\n\nSigned-off-by: Jörg Krause <joerg.krause@embedded.rocks>\n---\n ...cm43xx-fix-the-delay-timer-for-firmware-d.patch | 38 ++++++++++++++++++++++\n 1 file changed, 38 insertions(+)\n create mode 100644 package/bluez5_utils/0002-hciattach-bcm43xx-fix-the-delay-timer-for-firmware-d.patch",
    "diff": "diff --git a/package/bluez5_utils/0002-hciattach-bcm43xx-fix-the-delay-timer-for-firmware-d.patch b/package/bluez5_utils/0002-hciattach-bcm43xx-fix-the-delay-timer-for-firmware-d.patch\nnew file mode 100644\nindex 0000000000..2802510b98\n--- /dev/null\n+++ b/package/bluez5_utils/0002-hciattach-bcm43xx-fix-the-delay-timer-for-firmware-d.patch\n@@ -0,0 +1,38 @@\n+From 3b341fb421ef61db7782bf1314ec693828467de9 Mon Sep 17 00:00:00 2001\n+From: Andy Duan <fugang.duan@nxp.com>\n+Date: Wed, 23 Nov 2016 17:12:12 +0800\n+Subject: [PATCH] hciattach: bcm43xx: fix the delay timer for firmware download\n+\n+From the log in .bcm43xx_load_firmware():\n+        /* Wait 50ms to let the firmware placed in download mode */\n+        nanosleep(&tm_mode, NULL);\n+\n+But timespec tm_mode is real is 50us. Correct the delayed timer count.\n+\n+Backported from:\n+https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=76255f732d68aef2b90d36d9c7be51a9e1739ce7\n+\n+Signed-off-by: Fugang Duan <fugang.duan@nxp.com>\n+Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>\n+---\n+ tools/hciattach_bcm43xx.c | 4 ++--\n+ 1 file changed, 2 insertions(+), 2 deletions(-)\n+\n+diff --git a/tools/hciattach_bcm43xx.c b/tools/hciattach_bcm43xx.c\n+index 81f38cb..ac1b3c1 100644\n+--- a/tools/hciattach_bcm43xx.c\n++++ b/tools/hciattach_bcm43xx.c\n+@@ -228,8 +228,8 @@ static int bcm43xx_set_speed(int fd, struct termios *ti, uint32_t speed)\n+ static int bcm43xx_load_firmware(int fd, const char *fw)\n+ {\n+ \tunsigned char cmd[] = { HCI_COMMAND_PKT, 0x2e, 0xfc, 0x00 };\n+-\tstruct timespec tm_mode = { 0, 50000 };\n+-\tstruct timespec tm_ready = { 0, 2000000 };\n++\tstruct timespec tm_mode = { 0, 50000000 };\n++\tstruct timespec tm_ready = { 0, 200000000 };\n+ \tunsigned char resp[CC_MIN_SIZE];\n+ \tunsigned char tx_buf[1024];\n+ \tint len, fd_fw, n;\n+-- \n+1.9.1\n+\n",
    "prefixes": [
        "2/2"
    ]
}