get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 208836,
    "url": "http://patchwork.ozlabs.org/api/patches/208836/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1356952428-19824-8-git-send-email-jagannadh.teki@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": "<1356952428-19824-8-git-send-email-jagannadh.teki@gmail.com>",
    "list_archive_url": null,
    "date": "2012-12-31T11:13:46",
    "name": "[U-Boot,07/12] cmd_sf: Add ASR(Array Slow Read) read instruction support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "abd70dbdeaebdb945629d2862c697ab091a53c2f",
    "submitter": {
        "id": 20045,
        "url": "http://patchwork.ozlabs.org/api/people/20045/?format=api",
        "name": "Jagan Teki",
        "email": "jagannadh.teki@gmail.com"
    },
    "delegate": {
        "id": 17739,
        "url": "http://patchwork.ozlabs.org/api/users/17739/?format=api",
        "username": "jagan",
        "first_name": "Jagannadha Sutradharudu",
        "last_name": "Teki",
        "email": "jagannadh.teki@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1356952428-19824-8-git-send-email-jagannadh.teki@gmail.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/208836/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/208836/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",
        "Received": [
            "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 32A932C008C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 31 Dec 2012 22:16:56 +1100 (EST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 1B33C4A16B;\n\tMon, 31 Dec 2012 12:16:51 +0100 (CET)",
            "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 0nYuA2a1qdd5; Mon, 31 Dec 2012 12:16:50 +0100 (CET)",
            "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id E01624A175;\n\tMon, 31 Dec 2012 12:15:44 +0100 (CET)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id E40B84A01E\n\tfor <u-boot@lists.denx.de>; Mon, 31 Dec 2012 12:15:10 +0100 (CET)",
            "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id gAG3HGPGFF3H for <u-boot@lists.denx.de>;\n\tMon, 31 Dec 2012 12:15:06 +0100 (CET)",
            "from mail-pb0-f47.google.com (mail-pb0-f47.google.com\n\t[209.85.160.47]) by theia.denx.de (Postfix) with ESMTPS id BA4624A02A\n\tfor <u-boot@lists.denx.de>; Mon, 31 Dec 2012 12:14:25 +0100 (CET)",
            "by mail-pb0-f47.google.com with SMTP id un1so6972137pbc.6\n\tfor <u-boot@lists.denx.de>; Mon, 31 Dec 2012 03:14:24 -0800 (PST)",
            "from localhost.localdomain ([49.204.11.250])\n\tby mx.google.com with ESMTPS id\n\tnw9sm24715215pbb.42.2012.12.31.03.14.22\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tMon, 31 Dec 2012 03:14:23 -0800 (PST)"
        ],
        "X-Virus-Scanned": [
            "Debian amavisd-new at theia.denx.de",
            "Debian amavisd-new at theia.denx.de"
        ],
        "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to\n\t:references; bh=UbgdHIm/DHKbeyHwQL5NDAFtHeShcD6Qf0nk8pl0HTg=;\n\tb=AyL/9asQhRpNceQlbe3/rXhRDONZNUEm8N2R6MOuf06ybqQDMNIE0jpjziqUzQU0ls\n\t74Q+5YKKkwmvWK1DzRpmSp+6zq9fXkgpo7HSz0Buv4NVOMm9UubNxR9xxJW1rWS9mgE5\n\tHyArQPmsPCLWOtrxRYRw03osFAJ6ayji2nmQ/VCiYOa5V4Vjf+rWpVWfhFLub5xXSUJ1\n\tDvjqHvNKAwNUjx1mzt4Xf+8X/+qjgbNSaBu2FGRAefrRUWBLMu6dnEKhnEfzLwBNfX0y\n\tSuDw0p8ArxNLUd3YYHZrz9PszlXXBLg8yyeKubHYjnwEZ8VI7HoWc3wjd/avtLqV5ld+\n\tNI8A==",
        "X-Received": "by 10.66.85.74 with SMTP id f10mr119859887paz.38.1356952464063; \n\tMon, 31 Dec 2012 03:14:24 -0800 (PST)",
        "From": "Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>",
        "To": "u-boot@lists.denx.de",
        "Date": "Mon, 31 Dec 2012 16:43:46 +0530",
        "Message-Id": "<1356952428-19824-8-git-send-email-jagannadh.teki@gmail.com>",
        "X-Mailer": "git-send-email 1.7.0.4",
        "In-Reply-To": "<1356952428-19824-1-git-send-email-jagannadh.teki@gmail.com>",
        "References": "<1356952428-19824-1-git-send-email-jagannadh.teki@gmail.com>",
        "Subject": "[U-Boot] [PATCH 07/12] cmd_sf: Add ASR(Array Slow Read) read\n\tinstruction support",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.11",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<http://lists.denx.de/mailman/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": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "u-boot-bounces@lists.denx.de",
        "Errors-To": "u-boot-bounces@lists.denx.de"
    },
    "content": "This patch provides a support to read a flash using 'asr'\nread instruction(rd_inst) for 'sf read' and 'sf update' commands.\n\n'asr' is similar to afr(Array Fast Read) except that it's\noperated under slow speeds.\n\nExample:\nread 0x2000 length bytes starting at offset 0x0 to memory at 0x10000\nusing asr read instruction.\nu-boot> sf read asr 0x10000 0x0 0x2000\n\nerase and write 0x2000 length bytes from memory at 0x10000 address to\nflash offset at 0x0 using pp write instruction and asr read instruction.\nu-boot> sf update pp asr 0x10000 0x0 0x2000\n\nSigned-off-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>\n---\n common/cmd_sf.c          |   10 +++++++---\n include/spi_flash_inst.h |    1 +\n 2 files changed, 8 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/common/cmd_sf.c b/common/cmd_sf.c\nindex b1f19ef..3d9c93e 100644\n--- a/common/cmd_sf.c\n+++ b/common/cmd_sf.c\n@@ -279,6 +279,8 @@ static int sf_parse_rd_inst_arg(char *arg, u8 *rd_inst)\n {\n \tif (strcmp(arg, \"afr\") == 0)\n \t\t*rd_inst = CMD_READ_ARRAY_FAST;\n+\telse if (strcmp(arg, \"asr\") == 0)\n+\t\t*rd_inst = CMD_READ_ARRAY_SLOW;\n \telse\n \t\treturn 1;\n \n@@ -628,8 +630,9 @@ U_BOOT_CMD(\n \t\"sf read rd_inst addr offset len\\n\"\n \t\"\t\t\t\t- read `len' bytes starting at\\n\"\n \t\"\t\t\t\t  `offset' to memory at `addr' using\\n\"\n-\t\"\t\t\t\t  afr `rd_inst' read instruction\\n\"\n+\t\"\t\t\t\t  afr | asr `rd_inst' read instructions\\n\"\n \t\"\t\t\t\t  afr (Array Fast Read, 0bh)\\n\"\n+\t\"\t\t\t\t  asr (Array Slow Read, 02b)\\n\"\n \t\"sf write wr_inst addr offset len\\n\"\n \t\"\t\t\t\t- write `len' bytes from memory\\n\"\n \t\"\t\t\t\t  at `addr' to flash at `offset' using\\n\"\n@@ -644,7 +647,8 @@ U_BOOT_CMD(\n \t\"\t\t\t\t  pp | qpp `wr_inst' write instructions and\\n\"\n \t\"\t\t\t\t  pp (Page Program, 02h)\\n\"\n \t\"\t\t\t\t  qpp (Quad Page Program, 32h)\\n\"\n-\t\"\t\t\t\t  afr `rd_inst' read instruction\\n\"\n-\t\"\t\t\t\t  afr (Array Fast Read, 0bh)\"\n+\t\"\t\t\t\t  afr | asr `rd_inst' read instructions\\n\"\n+\t\"\t\t\t\t  afr (Array Fast Read, 0bh)\\n\"\n+\t\"\t\t\t\t  asr (Array Slow Read, 02b)\"\n \tSF_TEST_HELP\n );\ndiff --git a/include/spi_flash_inst.h b/include/spi_flash_inst.h\nindex a530842..85c8e70 100644\n--- a/include/spi_flash_inst.h\n+++ b/include/spi_flash_inst.h\n@@ -30,5 +30,6 @@\n \n /* Read commands */\n #define CMD_READ_ARRAY_FAST\t\t0x0b\n+#define CMD_READ_ARRAY_SLOW\t\t0x03\n \n #endif /* _SPI_FLASH_INST_H_ */\n",
    "prefixes": [
        "U-Boot",
        "07/12"
    ]
}