get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 627227,
    "url": "http://patchwork.ozlabs.org/api/patches/627227/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/lede/patch/1464359207-2744-7-git-send-email-ash.benz@bk.ru/",
    "project": {
        "id": 54,
        "url": "http://patchwork.ozlabs.org/api/projects/54/?format=api",
        "name": "LEDE development",
        "link_name": "lede",
        "list_id": "lede-dev.lists.infradead.org",
        "list_email": "lede-dev@lists.infradead.org",
        "web_url": "http://lede-project.org/",
        "scm_url": "",
        "webscm_url": "http://git.lede-project.org/",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1464359207-2744-7-git-send-email-ash.benz@bk.ru>",
    "list_archive_url": null,
    "date": "2016-05-27T14:26:43",
    "name": "[LEDE-DEV,v3,06/10] ipq806x/base-files: extract ath10k caldata",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "5a1434d1ce5253b06321112e1ffd44ce67bde117",
    "submitter": {
        "id": 68948,
        "url": "http://patchwork.ozlabs.org/api/people/68948/?format=api",
        "name": "Ash Benz",
        "email": "ash.benz@bk.ru"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/lede/patch/1464359207-2744-7-git-send-email-ash.benz@bk.ru/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/627227/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/627227/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n\t[IPv6:2001:1868:205::9])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3rGSzQ5Vkwz9t3x\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 28 May 2016 00:28:02 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux))\n\tid 1b6IjY-0005gt-Bd; Fri, 27 May 2016 14:27:28 +0000",
            "from smtp49.i.mail.ru ([94.100.177.109])\n\tby bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat\n\tLinux)) id 1b6IjR-0005UT-Hy\n\tfor lede-dev@lists.infradead.org; Fri, 27 May 2016 14:27:23 +0000",
            "from [115.132.97.57] (port=49566 helo=builder.lan)\n\tby smtp49.i.mail.ru with esmtpa (envelope-from <ash.benz@bk.ru>)\n\tid 1b6Ij8-00052k-Ef; Fri, 27 May 2016 17:27:03 +0300"
        ],
        "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=bk.ru header.i=@bk.ru header.b=I5LoMLbX;\n\tdkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bk.ru;\n\ts=mail; \n\th=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From;\n\tbh=nvqVE4bevkuxww6ghvUtZ57KL0pvfkKKoqtOIzGeZmM=; \n\tb=I5LoMLbXwAs2r0arqp/cv9sY7ATrzFrsGZZYmOddQK2YBXwIjlTkujvAA9dbHE/Diqlvugj99+KFnKZxZgXW/kXmf/Yn0TpYxuFnmbfvYWNs5OzGdKCcGyeQ8pxX/YkFhFB777t7TF1C6Sj+KsKiPfwSK7SzDh9vsGdLGBPKcYs=;",
        "From": "Ash Benz <ash.benz@bk.ru>",
        "To": "lede-dev@lists.infradead.org",
        "Date": "Fri, 27 May 2016 22:26:43 +0800",
        "Message-Id": "<1464359207-2744-7-git-send-email-ash.benz@bk.ru>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<1464359207-2744-1-git-send-email-ash.benz@bk.ru>",
        "References": "<1464359207-2744-1-git-send-email-ash.benz@bk.ru>",
        "X-Mras": "OK",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20160527_072722_067816_3220FC34 ",
        "X-CRM114-Status": "UNSURE (   7.39  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-2.7 (--)",
        "X-Spam-Report": "SpamAssassin version 3.4.0 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.7 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow trust [94.100.177.109 listed in list.dnswl.org]\n\t-0.0 SPF_HELO_PASS          SPF: HELO matches SPF record\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid",
        "Subject": "[LEDE-DEV] [PATCH v3 06/10] ipq806x/base-files: extract ath10k\n\tcaldata",
        "X-BeenThere": "lede-dev@lists.infradead.org",
        "X-Mailman-Version": "2.1.20",
        "Precedence": "list",
        "List-Id": "<lede-dev.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/lede-dev/>",
        "List-Post": "<mailto:lede-dev@lists.infradead.org>",
        "List-Help": "<mailto:lede-dev-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=subscribe>",
        "Cc": "Ash Benz <ash.benz@bk.ru>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"Lede-dev\" <lede-dev-bounces@lists.infradead.org>",
        "Errors-To": "lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "Signed-off-by: Ash Benz <ash.benz@bk.ru>\n---\n .../etc/hotplug.d/firmware/11-ath10k-caldata       | 68 ++++++++++++++++++++++\n 1 file changed, 68 insertions(+)\n create mode 100644 target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata",
    "diff": "diff --git a/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata\nnew file mode 100644\nindex 0000000..5f604e1\n--- /dev/null\n+++ b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata\n@@ -0,0 +1,68 @@\n+#!/bin/sh\n+\n+ath10kcal_die() {\n+\techo \"ath10cal: \" \"$*\"\n+\texit 1\n+}\n+\n+ath10kcal_from_file() {\n+\tlocal source=$1\n+\tlocal offset=$2\n+\tlocal count=$3\n+\n+\tdd if=$source of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \\\n+\t\tath10kcal_die \"failed to extract calibration data from $source\"\n+}\n+\n+ath10kcal_extract() {\n+\tlocal part=$1\n+\tlocal offset=$2\n+\tlocal count=$3\n+\tlocal mtd\n+\n+\tmtd=$(find_mtd_chardev $part)\n+\t[ -n \"$mtd\" ] || \\\n+\t\tath10kcal_die \"no mtd device found for partition $part\"\n+\n+\tdd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \\\n+\t\tath10kcal_die \"failed to extract calibration data from $mtd\"\n+}\n+\n+ath10kcal_patch_mac() {\n+\tlocal mac=$1\n+\n+\t[ -z \"$mac\" ] && return\n+\n+\tmacaddr_2bin $mac | dd of=/lib/firmware/$FIRMWARE conv=notrunc bs=1 seek=6 count=6\n+}\n+\n+[ -e /lib/firmware/$FIRMWARE ] && exit 0\n+\n+. /lib/ipq806x.sh\n+. /lib/functions.sh\n+. /lib/functions/system.sh\n+\n+board=$(ipq806x_board_name)\n+\n+\n+case \"$FIRMWARE\" in\n+\"ath10k/cal-pci-0000:01:00.0.bin\")\n+\tcase $board in\n+\tc2600)\n+\t\tath10kcal_extract \"radio\" 4096 12064\n+# \t\tath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 8) -1)\n+\t\t;;\n+\tesac\n+\t;;\n+\"ath10k/cal-pci-0001:01:00.0.bin\")\n+\tcase $board in\n+\tc2600)\n+\t\tath10kcal_extract \"radio\" 20480 12064\n+# \t\tath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 8) -2)\n+\t\t;;\n+\tesac\n+\t;;\n+*)\n+\texit 1\n+\t;;\n+esac\n",
    "prefixes": [
        "LEDE-DEV",
        "v3",
        "06/10"
    ]
}