get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 831826,
    "url": "http://patchwork.ozlabs.org/api/patches/831826/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/lede/patch/20171029232426.4025-1-roman@advem.lv/",
    "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": "<20171029232426.4025-1-roman@advem.lv>",
    "list_archive_url": null,
    "date": "2017-10-29T23:24:26",
    "name": "[LEDE-DEV,v3] ipq806x: ipq4019: add ap-dk01.1-c1 board support",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "c46b6ac3daeb2c04af984f4a6d640a68a682c7c0",
    "submitter": {
        "id": 66339,
        "url": "http://patchwork.ozlabs.org/api/people/66339/?format=api",
        "name": "Roman Yeryomin",
        "email": "roman@advem.lv"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/lede/patch/20171029232426.4025-1-roman@advem.lv/mbox/",
    "series": [
        {
            "id": 10832,
            "url": "http://patchwork.ozlabs.org/api/series/10832/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/lede/list/?series=10832",
            "date": "2017-10-29T23:24:26",
            "name": "[LEDE-DEV,v3] ipq806x: ipq4019: add ap-dk01.1-c1 board support",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/10832/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/831826/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/831826/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",
        "Authentication-Results": [
            "ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"m7gciAYs\"; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3yQDH24vB6z9t4R\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 30 Oct 2017 10:25:02 +1100 (AEDT)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1e8wwu-0006W0-6S; Sun, 29 Oct 2017 23:25:00 +0000",
            "from [213.175.92.62] (helo=mail.pbx.lv)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1e8wwp-0006Ri-KK\n\tfor lede-dev@lists.infradead.org; Sun, 29 Oct 2017 23:24:58 +0000",
            "from brain.lan (balticom-200-108.balticom.lv [83.99.200.108])\n\tby mail.pbx.lv (MailSystem) with ESMTPSA id 5052D195C70\n\tfor <lede-dev@lists.infradead.org>;\n\tMon, 30 Oct 2017 01:24:32 +0200 (EET)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help:\n\tList-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id:Date:To:\n\tFrom:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=k55rNO+Dmo2lnSSKvMtdZepUyGJtKwfzLWw0ctgTXUo=;\n\tb=m7gciAYsUv6vx9\n\ttWLMD3caB/WJCrpMZbjc/1OJfSi/tfzJrA+G99HuPuVFWWlr9vRWkSg7mkW9wHcXSrWkA2aZn+6uL\n\tPspA+7cR975fVvdHbUys1mIcU3+e9Q3qCHE0t8Nt83WejPoZRot3nRfz0GUjTO/UUHNIStaK4dxEc\n\tJxqQvBTjN0G5YN0hvWRamzgj2+R4rTxQI4uWWJXHyXDxriybqTaYq7Xfy188OmMjfRFrmjeBA9aoI\n\tvd3RtJr6Um47IFXCTH84bh+QKkv5PITITGdzYqEghK3zLI7s32IqZYSIPMf4NEnipIckhh8+vHDBb\n\tpQO1vciEeFC8tA3HTfiQ==;",
        "From": "Roman Yeryomin <roman@advem.lv>",
        "To": "LEDE Development List <lede-dev@lists.infradead.org>",
        "Date": "Mon, 30 Oct 2017 01:24:26 +0200",
        "Message-Id": "<20171029232426.4025-1-roman@advem.lv>",
        "X-Mailer": "git-send-email 2.11.0",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20171029_162456_055907_F3DBF9CE ",
        "X-CRM114-Status": "GOOD (  10.21  )",
        "X-Spam-Score": "-1.1 (-)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.1 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.8 RDNS_NONE Delivered to internal network by a host with no rDNS",
        "Subject": "[LEDE-DEV] [PATCH v3] ipq806x: ipq4019: add ap-dk01.1-c1 board\n\tsupport",
        "X-BeenThere": "lede-dev@lists.infradead.org",
        "X-Mailman-Version": "2.1.21",
        "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>",
        "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": "AP-DK01.1-C1 is QCA dev board with:\n- ipq4018 quad core ARM @716.8MHz, 2x2 dual (11n+11ac) radio\n- 256MB RAM\n- 32MB SPI flash\n- QCA8075 multiport ethernet phy (WAN port, 4x LAN ports)\n\nFirst installation via u-boot:\nsf probe\nsf erase 0x180000 0x1a00000\ntftpboot 0x84000000 lede-ipq806x-AP-DK01.1-C1-squashfs-sysupgrade.bin\nsf write 0x84000000 0x180000 $filesize\n\nFurther upgrades via sysupgrade.\n\nChanges:\n- add partitions\n- set memory size to 256MB\n- add reserved memory mapping\n- add correct compatible string\n- add image generation\n- extract pre-cal data from ART partition\n\nCompile and run tested.\nWirespeed NAT can be achieved with spreading rx interrupts over different\ncores. Wifi speed is ~550Mbps @5GHz in open air.\n\nNote:\nAP-DK01.1-C1 is fully compatible with AP-DK01.2-C1, which has\nipq4028 instead of ipq4018 on board.\n\nChanges since v2:\n- based on dts(i) rework/cleanup submitted:\n  http://lists.infradead.org/pipermail/lede-dev/2017-October/009596.html\n- precise reserved memory mapping\n- more precise description\n- compatible string\n\nSigned-off-by: Roman Yeryomin <roman@advem.lv>\n---\n .../etc/hotplug.d/firmware/11-ath10k-caldata       |   6 ++\n target/linux/ipq806x/base-files/lib/ipq806x.sh     |   3 +\n target/linux/ipq806x/image/Makefile                |  18 +++-\n ...pq4019-ap-dk01.1-c1-add-spi-and-ram-nodes.patch | 115 +++++++++++++++++++++\n ...pq4019-ap-dk01.1-c1-add-compatible-string.patch |  10 ++\n 5 files changed, 151 insertions(+), 1 deletion(-)\n create mode 100644 target/linux/ipq806x/patches-4.9/864-07-dts-ipq4019-ap-dk01.1-c1-add-spi-and-ram-nodes.patch\n create mode 100644 target/linux/ipq806x/patches-4.9/864-08-dts-ipq4019-ap-dk01.1-c1-add-compatible-string.patch",
    "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\nindex 39757eb161..4c5b55bc53 100644\n--- a/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata\n+++ b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata\n@@ -47,6 +47,9 @@ board=$(board_name)\n case \"$FIRMWARE\" in\n \"ath10k/pre-cal-ahb-a000000.wifi.bin\")\n \tcase \"$board\" in\n+\tap-dk01.1-c1)\n+\t\tath10kcal_extract \"ART\" 4096 12064\n+\t\t;;\n \tfritz4040)\n \t\t/usr/bin/fritz_cal_extract -i 1 -s 0x400 -e 0x207 -l 12064 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev \"urlader_config\")\n \t\t;;\n@@ -54,6 +57,9 @@ case \"$FIRMWARE\" in\n \t;;\n \"ath10k/pre-cal-ahb-a800000.wifi.bin\")\n \tcase \"$board\" in\n+\tap-dk01.1-c1)\n+\t\tath10kcal_extract \"ART\" 20480 12064\n+\t\t;;\n \tfritz4040)\n \t\t/usr/bin/fritz_cal_extract -i 1 -s 0x400 -e 0x208 -l 12064 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev \"urlader_config\")\n \t\t;;\ndiff --git a/target/linux/ipq806x/base-files/lib/ipq806x.sh b/target/linux/ipq806x/base-files/lib/ipq806x.sh\nindex e8ff7ea3f8..940c7ef204 100644\n--- a/target/linux/ipq806x/base-files/lib/ipq806x.sh\n+++ b/target/linux/ipq806x/base-files/lib/ipq806x.sh\n@@ -14,6 +14,9 @@ ipq806x_board_detect() {\n \tmachine=$(cat /proc/device-tree/model)\n \n \tcase \"$machine\" in\n+\t*\"AP-DK01.1-C1\")\n+\t\tname=\"ap-dk01.1-c1\"\n+\t\t;;\n \t*\"AP148\")\n \t\tname=\"ap148\"\n \t\t;;\ndiff --git a/target/linux/ipq806x/image/Makefile b/target/linux/ipq806x/image/Makefile\nindex f6f7f421b8..c2e1290671 100644\n--- a/target/linux/ipq806x/image/Makefile\n+++ b/target/linux/ipq806x/image/Makefile\n@@ -251,6 +251,22 @@ define Device/VR2600v\n \tIMAGE/sysupgrade.bin := pad-extra 512 | append-kernel | pad-to $$$${KERNEL_SIZE} | append-rootfs | pad-rootfs | append-metadata\n endef\n \n+define Device/AP-DK01.1-C1\n+\tPROFILES += $$(DEVICE_NAME)\n+\tDEVICE_TITLE := QCA AP-DK01.1-C1\n+\tBOARD_NAME := ap-dk01.1-c1\n+\tDEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1\n+\tKERNEL_LOADADDR := 0x80208000\n+\tKERNEL_INSTALL := 1\n+\tKERNEL_SIZE := 4096k\n+\tIMAGE_SIZE := 26624k\n+\tFILESYSTEMS := squashfs\n+\t$(call Device/FitImage)\n+\tIMAGES := sysupgrade.bin\n+\tIMAGE/sysupgrade.bin := append-kernel | pad-to $$$${KERNEL_SIZE} | append-rootfs | pad-rootfs | append-metadata\n+\tDEVICE_PACKAGES := ath10k-firmware-qca4019\n+endef\n+\n define Device/AP-DK04.1-C1\n \t$(call Device/FitImage)\n \t$(call Device/UbiFit)\n@@ -265,6 +281,6 @@ define Device/AP-DK04.1-C1\n endef\n \n TARGET_DEVICES += AP148 AP148-legacy C2600 D7800 DB149 EA8500 FRITZ4040 R7500 \\\n-\t\t  R7500v2 R7800 NBG6817 VR2600v AP-DK04.1-C1\n+\t\t  R7500v2 R7800 NBG6817 VR2600v AP-DK01.1-C1 AP-DK04.1-C1\n \n $(eval $(call BuildImage))\ndiff --git a/target/linux/ipq806x/patches-4.9/864-07-dts-ipq4019-ap-dk01.1-c1-add-spi-and-ram-nodes.patch b/target/linux/ipq806x/patches-4.9/864-07-dts-ipq4019-ap-dk01.1-c1-add-spi-and-ram-nodes.patch\nnew file mode 100644\nindex 0000000000..e9d262069f\n--- /dev/null\n+++ b/target/linux/ipq806x/patches-4.9/864-07-dts-ipq4019-ap-dk01.1-c1-add-spi-and-ram-nodes.patch\n@@ -0,0 +1,115 @@\n+--- a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1-c1.dts\n++++ b/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1-c1.dts\n+@@ -19,4 +19,112 @@\n+ / {\n+ \tmodel = \"Qualcomm Technologies, Inc. IPQ40xx/AP-DK01.1-C1\";\n+ \n++\tmemory {\n++\t\tdevice_type = \"memory\";\n++\t\treg = <0x80000000 0x10000000>;\n++\t};\n++\n++\treserved-memory {\n++\t\t#address-cells = <0x1>;\n++\t\t#size-cells = <0x1>;\n++\t\tranges;\n++\n++\t\tapps_bl@87000000 {\n++\t\t\treg = <0x87000000 0x400000>;\n++\t\t\tno-map;\n++\t\t};\n++\n++\t\tsbl@87400000 {\n++\t\t\treg = <0x87400000 0x100000>;\n++\t\t\tno-map;\n++\t\t};\n++\n++\t\tcnss_debug@87500000 {\n++\t\t\treg = <0x87500000 0x600000>;\n++\t\t\tno-map;\n++\t\t};\n++\n++\t\tcpu_context_dump@87b00000 {\n++\t\t\treg = <0x87b00000 0x080000>;\n++\t\t\tno-map;\n++\t\t};\n++\n++\t\ttz_apps@87b80000 {\n++\t\t\treg = <0x87b80000 0x280000>;\n++\t\t\tno-map;\n++\t\t};\n++\n++\t\tsmem@87e00000 {\n++\t\t\treg = <0x87e00000 0x080000>;\n++\t\t\tno-map;\n++\t\t};\n++\n++\t\ttz@87e80000 {\n++\t\t\treg = <0x87e80000 0x180000>;\n++\t\t\tno-map;\n++\t\t};\n++\t};\n++};\n++\n++&spi_0 {\n++\tmx25l25635f@0 {\n++\t\tcompatible = \"mx25l25635f\", \"jedec,spi-nor\";\n++\t\t#address-cells = <1>;\n++\t\t#size-cells = <1>;\n++\t\treg = <0>;\n++\t\tspi-max-frequency = <24000000>;\n++\n++\t\tSBL1@0 {\n++\t\t\tlabel = \"SBL1\";\n++\t\t\treg = <0x0 0x40000>;\n++\t\t\tread-only;\n++\t\t};\n++\t\tMIBIB@40000 {\n++\t\t\tlabel = \"MIBIB\";\n++\t\t\treg = <0x40000 0x20000>;\n++\t\t\tread-only;\n++\t\t};\n++\t\tQSEE@60000 {\n++\t\t\tlabel = \"QSEE\";\n++\t\t\treg = <0x60000 0x60000>;\n++\t\t\tread-only;\n++\t\t};\n++\t\tCDT@c0000 {\n++\t\t\tlabel = \"CDT\";\n++\t\t\treg = <0xc0000 0x10000>;\n++\t\t\tread-only;\n++\t\t};\n++\t\tDDRPARAMS@d0000 {\n++\t\t\tlabel = \"DDRPARAMS\";\n++\t\t\treg = <0xd0000 0x10000>;\n++\t\t\tread-only;\n++\t\t};\n++\t\tAPPSBLENV@e0000 {\n++\t\t\tlabel = \"APPSBLENV\";\n++\t\t\treg = <0xe0000 0x10000>;\n++\t\t\tread-only;\n++\t\t};\n++\t\tAPPSBL@f0000 {\n++\t\t\tlabel = \"APPSBL\";\n++\t\t\treg = <0xf0000 0x80000>;\n++\t\t\tread-only;\n++\t\t};\n++\t\tART@170000 {\n++\t\t\tlabel = \"ART\";\n++\t\t\treg = <0x170000 0x10000>;\n++\t\t\tread-only;\n++\t\t};\n++\t\tkernel@180000 {\n++\t\t\tlabel = \"kernel\";\n++\t\t\treg = <0x180000 0x400000>;\n++\t\t};\n++\t\trootfs@580000 {\n++\t\t\tlabel = \"rootfs\";\n++\t\t\treg = <0x580000 0x1600000>;\n++\t\t};\n++\t\tfirmware@180000 {\n++\t\t\tlabel = \"firmware\";\n++\t\t\treg = <0x180000 0x1a00000>;\n++\t\t};\n++\t};\n+ };\ndiff --git a/target/linux/ipq806x/patches-4.9/864-08-dts-ipq4019-ap-dk01.1-c1-add-compatible-string.patch b/target/linux/ipq806x/patches-4.9/864-08-dts-ipq4019-ap-dk01.1-c1-add-compatible-string.patch\nnew file mode 100644\nindex 0000000000..2d4ff31046\n--- /dev/null\n+++ b/target/linux/ipq806x/patches-4.9/864-08-dts-ipq4019-ap-dk01.1-c1-add-compatible-string.patch\n@@ -0,0 +1,10 @@\n+--- a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1-c1.dts\n++++ b/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1-c1.dts\n+@@ -18,6 +18,7 @@\n+ \n+ / {\n+ \tmodel = \"Qualcomm Technologies, Inc. IPQ40xx/AP-DK01.1-C1\";\n++\tcompatible = \"qcom,ap-dk01.1-c1\", \"qcom,ap-dk01.2-c1\", \"qcom,ipq4019\";\n+ \n+ \tmemory {\n+ \t\tdevice_type = \"memory\";\n",
    "prefixes": [
        "LEDE-DEV",
        "v3"
    ]
}