get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 208838,
    "url": "http://patchwork.ozlabs.org/api/patches/208838/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1356952428-19824-9-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-9-git-send-email-jagannadh.teki@gmail.com>",
    "list_archive_url": null,
    "date": "2012-12-31T11:13:47",
    "name": "[U-Boot,08/12] cmd_sf: Add DOFR(Dual Output Fast Read) read instruction support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "21d829ad9349d28e4bf341f87c4ff8404ab02a08",
    "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-9-git-send-email-jagannadh.teki@gmail.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/208838/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/208838/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 164452C009A\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 31 Dec 2012 22:17:16 +1100 (EST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id B17E84A17F;\n\tMon, 31 Dec 2012 12:17:11 +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 mfbTAhgbFQvN; Mon, 31 Dec 2012 12:17:11 +0100 (CET)",
            "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 999104A17E;\n\tMon, 31 Dec 2012 12:15:51 +0100 (CET)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 6A0A84A01E\n\tfor <u-boot@lists.denx.de>; Mon, 31 Dec 2012 12:15:15 +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 u-2ObhBs8wat for <u-boot@lists.denx.de>;\n\tMon, 31 Dec 2012 12:15:11 +0100 (CET)",
            "from mail-pb0-f45.google.com (mail-pb0-f45.google.com\n\t[209.85.160.45]) by theia.denx.de (Postfix) with ESMTPS id 47BC14A02D\n\tfor <u-boot@lists.denx.de>; Mon, 31 Dec 2012 12:14:27 +0100 (CET)",
            "by mail-pb0-f45.google.com with SMTP id mc8so6952100pbc.4\n\tfor <u-boot@lists.denx.de>; Mon, 31 Dec 2012 03:14:26 -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.24\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tMon, 31 Dec 2012 03:14:25 -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=xLnxc3fZs4uHJFbNT63tTtcE4sFiaenRODR+oXJvNAc=;\n\tb=OjGXvORYtIxe9FnZTddoeKi/bE0zrPWHDe4CDXpulyk90aM60cc1fFgWKaRPaXDCCz\n\tYo43C/nUF0Jy8GdZzdlGpa1CbPBiPQbrQyGE0abbvyefD5C89kGRWF4uKORSJDI+LBCC\n\tqyYLcJo1liexpGzFJqfRK5GkKUAo5y7xGhyfGI/k5Ow1oH3jYDKVdwPYJqHJ9de67idD\n\tBryN5Iwdl0Wc7vcgGg1nueU/qjv5WRF8bGKCHlNqfvXCnVoxWEZl/a/vjkx0pReSCN4l\n\t2oAgLyX94VyeSM55HO0pednLbslfzhjHtvWS2Rv/cIkGs8I5RjyG6qBjjRJIgR1Wx+V9\n\tUTiQ==",
        "X-Received": "by 10.66.83.196 with SMTP id s4mr119709608pay.74.1356952466100; \n\tMon, 31 Dec 2012 03:14:26 -0800 (PST)",
        "From": "Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>",
        "To": "u-boot@lists.denx.de",
        "Date": "Mon, 31 Dec 2012 16:43:47 +0530",
        "Message-Id": "<1356952428-19824-9-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 08/12] cmd_sf: Add DOFR(Dual Output Fast 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 'dofr'\nread instruction(rd_inst) for 'sf read' and 'sf update' commands.\n\n'dofr' will effectively increases the data transfer rate\nby up to two times, as compared to the afr(Array Fast Read).\n\nExample:\nread 0x2000 length bytes starting at offset 0x0 to memory at 0x10000\nusing dofr read instruction.\nu-boot> sf read dofr 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 dofr read instruction.\nu-boot> sf update pp dofr 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 3d9c93e..b971d2a 100644\n--- a/common/cmd_sf.c\n+++ b/common/cmd_sf.c\n@@ -281,6 +281,8 @@ static int sf_parse_rd_inst_arg(char *arg, u8 *rd_inst)\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 if (strcmp(arg, \"dofr\") == 0)\n+\t\t*rd_inst = CMD_READ_DUAL_OUTPUT_FAST;\n \telse\n \t\treturn 1;\n \n@@ -630,9 +632,10 @@ 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 | asr `rd_inst' read instructions\\n\"\n+\t\"\t\t\t\t  afr | asr | dofr `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\"\t\t\t\t  dofr (Dual Output Fast Read, 3bh)\\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@@ -647,8 +650,9 @@ 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 | asr `rd_inst' read instructions\\n\"\n+\t\"\t\t\t\t  afr | asr | dofr `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+\t\"\t\t\t\t  asr (Array Slow Read, 02b)\\n\"\n+\t\"\t\t\t\t  dofr (Dual Output Fast Read, 3bh)\"\n \tSF_TEST_HELP\n );\ndiff --git a/include/spi_flash_inst.h b/include/spi_flash_inst.h\nindex 85c8e70..f8fcf5e 100644\n--- a/include/spi_flash_inst.h\n+++ b/include/spi_flash_inst.h\n@@ -31,5 +31,6 @@\n /* Read commands */\n #define CMD_READ_ARRAY_FAST\t\t0x0b\n #define CMD_READ_ARRAY_SLOW\t\t0x03\n+#define CMD_READ_DUAL_OUTPUT_FAST\t0x3b\n \n #endif /* _SPI_FLASH_INST_H_ */\n",
    "prefixes": [
        "U-Boot",
        "08/12"
    ]
}