get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 806342,
    "url": "http://patchwork.ozlabs.org/api/patches/806342/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/1503885646-25401-1-git-send-email-andy.yan@rock-chips.com/",
    "project": {
        "id": 3,
        "url": "http://patchwork.ozlabs.org/api/projects/3/?format=api",
        "name": "Linux MTD development",
        "link_name": "linux-mtd",
        "list_id": "linux-mtd.lists.infradead.org",
        "list_email": "linux-mtd@lists.infradead.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1503885646-25401-1-git-send-email-andy.yan@rock-chips.com>",
    "list_archive_url": null,
    "date": "2017-08-28T02:00:46",
    "name": "[v7,2/2] mtd: spi-nor: add support for GD25Q256",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "3a542b78866b673aa01509ead6185fe6229d4fc9",
    "submitter": {
        "id": 65124,
        "url": "http://patchwork.ozlabs.org/api/people/65124/?format=api",
        "name": "Andy Yan",
        "email": "andy.yan@rock-chips.com"
    },
    "delegate": {
        "id": 63396,
        "url": "http://patchwork.ozlabs.org/api/users/63396/?format=api",
        "username": "cpitchen",
        "first_name": "Cyrille",
        "last_name": "Pitchen",
        "email": "cyrille.pitchen@atmel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/1503885646-25401-1-git-send-email-andy.yan@rock-chips.com/mbox/",
    "series": [
        {
            "id": 57,
            "url": "http://patchwork.ozlabs.org/api/series/57/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/list/?series=57",
            "date": "2017-08-28T01:58:29",
            "name": "[v7,1/2] mtd: spi-nor: add a quad_enable callback in struct flash_info",
            "version": 7,
            "mbox": "http://patchwork.ozlabs.org/series/57/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/806342/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806342/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-mtd-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=linux-mtd-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=\"b0gyg+p9\"; \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 3xgZlc51Pfz9s5L\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 12:02:20 +1000 (AEST)",
            "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 1dm9NW-0001OZ-S7; Mon, 28 Aug 2017 02:02:14 +0000",
            "from regular1.263xmail.com ([211.150.99.134])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dm9N8-0001Hj-2t\n\tfor linux-mtd@lists.infradead.org; Mon, 28 Aug 2017 02:01:52 +0000",
            "from andy.yan?rock-chips.com (unknown [192.168.167.234])\n\tby regular1.263xmail.com (Postfix) with ESMTP id 74E859191;\n\tMon, 28 Aug 2017 10:01:25 +0800 (CST)",
            "from localhost.localdomain (localhost [127.0.0.1])\n\tby smtp.263.net (Postfix) with ESMTPA id 92958383;\n\tMon, 28 Aug 2017 10:01:00 +0800 (CST)",
            "from localhost.localdomain (unknown [58.22.7.114])\n\tby smtp.263.net (Postfix) whith ESMTP id 14113M8MDYT;\n\tMon, 28 Aug 2017 10:01:24 +0800 (CST)"
        ],
        "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:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:\n\tSubject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:\n\tReferences:List-Owner; bh=h35w5e6PM8vB/hBWGTuZLUepR4rUGQAfQQIT8r6DYaY=;\n\tb=b0g\n\tyg+p93q0KWXS1XicbZooIcQkL2rajkTdnUroesIpZEvjRyUkO0m55mPS8tvEEejyhwlzWJFr/Hqaw\n\tl6xcWZz16g2+mOdJCLEIXpVj4w9sVsHMNn5fiG3dmKkNLR+mzqFna2KjPxvlkTamSva8A4/Vpk7Xv\n\t4v25U1ND4jipm3ZjOg98wLHFbaHm0OOLZNjM5aMw9qpOUaZsQpxejvtAgNJq4cK/xJV5s+2XF0lBI\n\tBEi2MG9NWTmTjFGnFXtf+kc/evOwJup76h4o3XANXAYcx8Covhfmo1VGxThalPmStOHuqESo++B2S\n\tL6L4J4FsOFDg5nj8l4c9XRDwaK+pUsQ==;",
        "X-263anti-spam": "KSV:0;",
        "X-MAIL-GRAY": "0",
        "X-MAIL-DELIVERY": "1",
        "X-KSVirus-check": "0",
        "X-ABS-CHECKED": "4",
        "X-RL-SENDER": "andy.yan@rock-chips.com",
        "X-FST-TO": "cyrille.pitchen@wedev4u.fr",
        "X-SENDER-IP": "58.22.7.114",
        "X-LOGIN-NAME": "andy.yan@rock-chips.com",
        "X-UNIQUE-TAG": "<5f852be9fe15a2b7c5df1cd8a80a0ffb>",
        "X-ATTACHMENT-NUM": "0",
        "X-SENDER": "yxj@rock-chips.com",
        "X-DNS-TYPE": "0",
        "From": "Andy Yan <andy.yan@rock-chips.com>",
        "To": "cyrille.pitchen@wedev4u.fr",
        "Subject": "[PATCH v7 2/2] mtd: spi-nor: add support for GD25Q256",
        "Date": "Mon, 28 Aug 2017 10:00:46 +0800",
        "Message-Id": "<1503885646-25401-1-git-send-email-andy.yan@rock-chips.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20170827_190150_416173_617A12C4 ",
        "X-CRM114-Status": "UNSURE (   7.33  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-1.4 (-)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-1.4 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-2.8 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)\n\t[211.150.99.134 listed in wl.mailspike.net]\n\t3.3 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS\n\t[58.22.7.114 listed in zen.spamhaus.org]\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [211.150.99.134 listed in list.dnswl.org]",
        "X-BeenThere": "linux-mtd@lists.infradead.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/linux-mtd/>",
        "List-Post": "<mailto:linux-mtd@lists.infradead.org>",
        "List-Help": "<mailto:linux-mtd-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>",
        "Cc": "boris.brezillon@free-electrons.com, richard@nod.at,\n\tlinux-kernel@vger.kernel.org, marek.vasut@gmail.com,\n\tlinux-mtd@lists.infradead.org, Andy Yan <andy.yan@rock-chips.com>,\n\tcomputersforpeace@gmail.com, dwmw2@infradead.org",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>",
        "Errors-To": "linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "Add support for GD25Q256, a 32MiB SPI Nor flash\nfrom GigaDevice.\n\nSigned-off-by: Andy Yan <andy.yan@rock-chips.com>\n---\n\nChanges in v7: None\nChanges in v6: None\nChanges in v5: None\nChanges in v4: None\nChanges in v3: None\nChanges in v2: None\n\n drivers/mtd/spi-nor/spi-nor.c | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c\nindex 3b94308..dc89ef2 100644\n--- a/drivers/mtd/spi-nor/spi-nor.c\n+++ b/drivers/mtd/spi-nor/spi-nor.c\n@@ -872,6 +872,8 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)\n \treturn ret;\n }\n \n+static int macronix_quad_enable(struct spi_nor *nor);\n+\n /* Used when the \"_ext_id\" is two bytes at most */\n #define INFO(_jedec_id, _ext_id, _sector_size, _n_sectors, _flags)\t\\\n \t\t.id = {\t\t\t\t\t\t\t\\\n@@ -999,6 +1001,12 @@ static const struct flash_info spi_nor_ids[] = {\n \t\t\tSECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |\n \t\t\tSPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)\n \t},\n+\t{\n+\t\t\"gd25q256\", INFO(0xc84019, 0, 64 * 1024, 512,\n+\t\t\tSECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |\n+\t\t\tSPI_NOR_4B_OPCODES | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)\n+\t\t\t.quad_enable = macronix_quad_enable,\n+\t},\n \n \t/* Intel/Numonyx -- xxxs33b */\n \t{ \"160s33b\",  INFO(0x898911, 0, 64 * 1024,  32, 0) },\n",
    "prefixes": [
        "v7",
        "2/2"
    ]
}