get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2197796,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2197796/?format=api",
    "project": {
        "id": 3,
        "url": "http://patchwork.ozlabs.org/api/1.0/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
    },
    "msgid": "<20260218143523.17467-3-farbere@amazon.com>",
    "date": "2026-02-18T14:35:22",
    "name": "[v2,2/3] mtd: spi-nor: winbond: Fix locking support for w25q256jw",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": false,
    "hash": "47a931a105733dbda2751c70dfece37f6212924d",
    "submitter": {
        "id": 84667,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/84667/?format=api",
        "name": "Farber, Eliav",
        "email": "farbere@amazon.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20260218143523.17467-3-farbere@amazon.com/mbox/",
    "series": [
        {
            "id": 492562,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/492562/?format=api",
            "date": "2026-02-18T14:35:20",
            "name": "mtd: spi-nor: winbond: Fix protection handling",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/492562/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2197796/checks/",
    "tags": {},
    "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=m8rTiRuX;\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=Rs2973FC;\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 4fGJwG139nz1xyj\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 19 Feb 2026 01:35: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 1vsieT-00000009xSm-0hnq;\n\tWed, 18 Feb 2026 14:35:41 +0000",
            "from pdx-out-004.esa.us-west-2.outbound.mail-perimeter.amazon.com\n ([44.246.77.92])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vsieP-00000009xRb-3VSe\n\tfor linux-mtd@lists.infradead.org;\n\tWed, 18 Feb 2026 14:35:39 +0000",
            "from ip-10-5-6-203.us-west-2.compute.internal (HELO\n smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.6.203])\n  by internal-pdx-out-004.esa.us-west-2.outbound.mail-perimeter.amazon.com\n with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Feb 2026 14:35:33 +0000",
            "from EX19MTAUWA001.ant.amazon.com [205.251.233.182:3798]\n by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.23.250:2525]\n with esmtp (Farcaster)\n id f5ccaf72-88de-47e8-967e-206a7fc27c21;\n Wed, 18 Feb 2026 14:35:32 +0000 (UTC)",
            "from EX19D001UWA001.ant.amazon.com (10.13.138.214) by\n EX19MTAUWA001.ant.amazon.com (10.250.64.217) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35;\n Wed, 18 Feb 2026 14:35:32 +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; Wed, 18 Feb 2026\n 14:35:30 +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=m8rTiRuXQJW8SD\n\tQaau01yB+W0wpDzuXRSyqo2jr5EhnMGolA3h/JUbgbbq9dxVNiOEEyewR9PfxdwF9RRYnonNmofiM\n\tDKUiPTe/Qgv8qbponWW5HQ0Y79m2mMrI19ktdHh1a+F1AXg30mprOTRt6b/2Vqxs+0Cn4hj/0PNfl\n\tHH9RQTvQY5p5Ilfi6oeJI6MsyZimGlmktg5m18k0/KsD5NXLIYyUn4lyktwh3X1g+TICd6BxiGnQK\n\t6v+QjypQZIRco3H6XjUG80STqomuN6+EjSXlqkxYgnRznfsQ5qmjvil2i/I9wsTPiyxQ2knO80PsH\n\t//ZZsQRRpPPlXUW1/SCw==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n  d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2;\n  t=1771425337; x=1802961337;\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=Rs2973FCaxwVzn9+luVWKHAdVX5g3HxH0FtXlhPRXBmDzTkNCr1GUHST\n   8LUM3chRqQkMAw5fmAmKsA24aiBPewZQwphQ842b3vDGv0fATuMLSZcn2\n   T9LX1LI+iZnB2KBWA161P2V6DN4botL+U0vNwEGr9lTO7dz+JB9vHWx9K\n   e6SyTuN6zvHUx/rl04FTgjUmcSxp4pBtaDWc3HXL0EpYnx0PxYNtYdii9\n   CRo38pYR5dtnzyoHAn8t7N7980NeoLReHWdmHy3FNddV3NNnbP42iPQpm\n   tdA8YOW3pH8Q7eneCxlZsxWXFWLqRDe27i+qm3AHLMPN35ziWx5YfErLA\n   Q==;"
        ],
        "X-CSE-ConnectionGUID": "MNB7gRjmTY6/r5P8NjuqSw==",
        "X-CSE-MsgGUID": "P77f/YS+TVCaU2NxxIPwRw==",
        "X-IronPort-AV": "E=Sophos;i=\"6.21,298,1763424000\";\n   d=\"scan'208\";a=\"13284428\"",
        "X-Farcaster-Flow-ID": "f5ccaf72-88de-47e8-967e-206a7fc27c21",
        "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 v2 2/3] mtd: spi-nor: winbond: Fix locking support for\n w25q256jw",
        "Date": "Wed, 18 Feb 2026 14:35:22 +0000",
        "Message-ID": "<20260218143523.17467-3-farbere@amazon.com>",
        "X-Mailer": "git-send-email 2.47.3",
        "In-Reply-To": "<20260218143523.17467-1-farbere@amazon.com>",
        "References": "<20260218143523.17467-1-farbere@amazon.com>",
        "MIME-Version": "1.0",
        "X-Originating-IP": "[172.19.116.181]",
        "X-ClientProxiedBy": "EX19D042UWA002.ant.amazon.com (10.13.139.17) 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-20260218_063537_923091_22F5BF04 ",
        "X-CRM114-Status": "UNSURE (   9.69  )",
        "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 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/, no\n                             trust\n                             [44.246.77.92 listed in list.dnswl.org]\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.0 SPF_HELO_NONE          SPF: HELO does not publish an 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.77.92 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.77.92 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.77.92 listed in 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": [
        "v2",
        "2/3"
    ]
}