get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2194285,
    "url": "http://patchwork.ozlabs.org/api/patches/2194285/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20260208061919.30498-3-farbere@amazon.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": "<20260208061919.30498-3-farbere@amazon.com>",
    "list_archive_url": null,
    "date": "2026-02-08T06:19:17",
    "name": "[2/4] mtd: spi-nor: winbond: Fix locking support for w25q256jw",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "47a931a105733dbda2751c70dfece37f6212924d",
    "submitter": {
        "id": 84667,
        "url": "http://patchwork.ozlabs.org/api/people/84667/?format=api",
        "name": "Eliav Farber",
        "email": "farbere@amazon.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20260208061919.30498-3-farbere@amazon.com/mbox/",
    "series": [
        {
            "id": 491410,
            "url": "http://patchwork.ozlabs.org/api/series/491410/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/list/?series=491410",
            "date": "2026-02-08T06:19:19",
            "name": "mtd: spi-nor: winbond: Fix protection handling and enable dual/quad reads",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/491410/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194285/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194285/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=ro721YYa;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=amazon.com header.i=@amazon.com header.a=rsa-sha256\n header.s=amazoncorp2 header.b=Itt/SDRY;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f7yNZ4nVzz1yBC\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 08 Feb 2026 17:19:54 +1100 (AEDT)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1voy8x-0000000D4Yj-2JpW;\n\tSun, 08 Feb 2026 06:19:39 +0000",
            "from pdx-out-003.esa.us-west-2.outbound.mail-perimeter.amazon.com\n ([44.246.68.102])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1voy8s-0000000D4X2-33Tj\n\tfor linux-mtd@lists.infradead.org;\n\tSun, 08 Feb 2026 06:19:36 +0000",
            "from ip-10-5-0-115.us-west-2.compute.internal (HELO\n smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.0.115])\n  by internal-pdx-out-003.esa.us-west-2.outbound.mail-perimeter.amazon.com\n with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2026 06:19:29 +0000",
            "from EX19MTAUWB002.ant.amazon.com [205.251.233.111:16392]\n by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.50.153:2525]\n with esmtp (Farcaster)\n id 1b6970f0-5227-40dd-bb4b-b1af4b6f95a1; Sun, 8 Feb 2026 06:19:29 +0000 (UTC)",
            "from EX19D001UWA001.ant.amazon.com (10.13.138.214) by\n EX19MTAUWB002.ant.amazon.com (10.250.64.231) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35;\n Sun, 8 Feb 2026 06:19:29 +0000",
            "from dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com\n (172.19.116.181) by EX19D001UWA001.ant.amazon.com (10.13.138.214) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35; Sun, 8 Feb 2026\n 06:19:27 +0000"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:\n\tMessage-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=Z8HOY+6xtqdh0DczFvyKZldqxPc9UUMS+4+X8cyFKxY=; b=ro721YYaX4VSvB\n\tC5xEMalLo3cHhY0sF/C/C5oJTkH1QSLOQ38iruE/s3CXOBks5NC/jrSVYVpECN+ijkueNCxqLv1Oy\n\tWlYTQ+kWkS/aZj0SttNAXBA/DSgzERms2v4iwWTfWKg9flWYOYs5sYohxKtCOrYNR6twc6TrwD4QD\n\tvCYFGvwexb72IpFZz2+BammOSF02W2rfl1tk3Z8DUnsdmSWU6OvPIeg7oMDGHgY0VaZsj2ql8IEMY\n\tIu1xxvmkTBCXu5CWVh+bihkty58pysJYCNO+1Q/NEneMTee92Fjkbv6WapJcCFVBsd9p0wzAZmlRv\n\tvDMPh+bbn3WG18iUxoQA==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n  d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2;\n  t=1770531574; x=1802067574;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=Kt+JYlmLC8S632f23NjynpBZGNVCDSSCZjdmoEG0rs4=;\n  b=Itt/SDRYn5pUNDnCLVFxybz2JVsK1fFRHN2Iigholeo2FBceiVXhgEZ8\n   ynHN0MRqHkLVOMU1N6ZlWEgDRKjxf2h3iBW7tITuRQ4r1P0rrBN0rGCHq\n   k8cQYVICqpgqX7aSHwKeikc+5JUtIveFaaEGwIRmr8nwpdhPig2AcHqHX\n   td/Jhfy3yqe/wnTkAhCjYEGBfgJ8tbrKfD3QpU6YtuS6AX2A1jtM6KxuI\n   ppZ/LIryJ6nD1x4AxWFlJEinZGrgQuLCiKoUecmb9hoUZhtUcUW9ecx8H\n   KmQ0W0bJEIelnuFM9bpDDYmb4nSlWI3stjYYJY/kTOjG60HpcxtZ9/dHT\n   g==;"
        ],
        "X-CSE-ConnectionGUID": "1IigKDfwSKax7H5DRDa94g==",
        "X-CSE-MsgGUID": "loBlZqD6T3qnE+WLyb+e+w==",
        "X-IronPort-AV": "E=Sophos;i=\"6.21,279,1763424000\";\n   d=\"scan'208\";a=\"12622004\"",
        "X-Farcaster-Flow-ID": "1b6970f0-5227-40dd-bb4b-b1af4b6f95a1",
        "From": "Eliav Farber <farbere@amazon.com>",
        "To": "<tudor.ambarus@linaro.org>, <pratyush@kernel.org>, <mwalle@kernel.org>,\n\t<miquel.raynal@bootlin.com>, <richard@nod.at>, <vigneshr@ti.com>,\n\t<linux-mtd@lists.infradead.org>, <linux-kernel@vger.kernel.org>",
        "CC": "<farbere@amazon.com>",
        "Subject": "[PATCH 2/4] mtd: spi-nor: winbond: Fix locking support for w25q256jw",
        "Date": "Sun, 8 Feb 2026 06:19:17 +0000",
        "Message-ID": "<20260208061919.30498-3-farbere@amazon.com>",
        "X-Mailer": "git-send-email 2.47.3",
        "In-Reply-To": "<20260208061919.30498-1-farbere@amazon.com>",
        "References": "<20260208061919.30498-1-farbere@amazon.com>",
        "MIME-Version": "1.0",
        "X-Originating-IP": "[172.19.116.181]",
        "X-ClientProxiedBy": "EX19D038UWC003.ant.amazon.com (10.13.139.209) To\n EX19D001UWA001.ant.amazon.com (10.13.138.214)",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260207_221934_825528_715D5C16 ",
        "X-CRM114-Status": "UNSURE (   9.63  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-9.6 (---------)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  The Winbond w25q256jw device: - Supports lock/unlock via\n SR.\n    - Has Top/Bottom (TB) protect bit. - Uses Status Register bit 6 as the\n Top/Bottom\n    (TB) protect bit. - Supports four Block Protect (BP) bits [...]\n Content analysis details:   (-9.6 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -7.5 USER_IN_DEF_SPF_WL     From: address is in the default SPF welcome-list\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The\n                             query to Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                          [44.246.68.102 listed in\n sa-trusted.bondedsender.org]\n  0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                             [44.246.68.102 listed in sa-accredit.habeas.com]\n  0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay\n lines\n -0.0 DKIMWL_WL_HIGH         DKIMwl.org - High trust sender\n  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                             [44.246.68.102 listed in\n bl.score.senderscore.com]",
        "X-BeenThere": "linux-mtd@lists.infradead.org",
        "X-Mailman-Version": "2.1.34",
        "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 <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 <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>",
        "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": "The Winbond w25q256jw device:\n - Supports lock/unlock via SR.\n - Has Top/Bottom (TB) protect bit.\n - Uses Status Register bit 6 as the Top/Bottom (TB) protect bit.\n - Supports four Block Protect (BP) bits.\n\nUpdate the flash parameters by enabling SPI_NOR_HAS_LOCK, SPI_NOR_HAS_TB,\nSPI_NOR_TB_SR_BIT6 and SPI_NOR_4BIT_BP. Without these flags, the locking\nconfiguration is incorrect.\n\nReference:\nhttps://www.winbond.com/hq/support/documentation/levelOne.jsp?__locale=en&DocNo=DA00-W25Q256JW.1\n\nSigned-off-by: Eliav Farber <farbere@amazon.com>\n---\n drivers/mtd/spi-nor/winbond.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c\nindex 55f1209936d5..6d325da121b4 100644\n--- a/drivers/mtd/spi-nor/winbond.c\n+++ b/drivers/mtd/spi-nor/winbond.c\n@@ -274,6 +274,7 @@ static const struct flash_info winbond_nor_parts[] = {\n \t\t.id = SNOR_ID(0xef, 0x60, 0x19),\n \t\t.name = \"w25q256jw\",\n \t\t.size = SZ_32M,\n+\t\t.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP,\n \t\t.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,\n \t}, {\n \t\t.id = SNOR_ID(0xef, 0x60, 0x20),\n",
    "prefixes": [
        "2/4"
    ]
}