From nobody Mon Feb 9 01:45:13 2026 Received: from pdx-out-013.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-013.esa.us-west-2.outbound.mail-perimeter.amazon.com [34.218.115.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B2CB3451CF for ; Sun, 8 Feb 2026 06:19:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=34.218.115.239 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770531570; cv=none; b=Zq36r2dJud6Slm5YtEHnCIaK7fZrxT1Pmpe0N7kRaIgq3+KcOr0CfTWTnJVZ5KP29aeolCz0yzsjj3ydGBSSw6CoyZ29jR0w/0VjQEckGG4nvJSszqGi9bozL/y3ZxcZTWtz2eyydcjjPh41VeBVT6A2zEC0laiRRa+C9kyt/aY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770531570; c=relaxed/simple; bh=/8z2YFl+wR79JSmGdjpmTxNUQ31SxKFJkiSG/9UyJ+0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oeaEeTOATgxrYydwxenBZcvhuSmgCnaR/4jxS8n91Vc979RKJIOTFcJRxYcq1RzDupVXLql1+1p6vT8v0mgt/A/6+2uesZFpVZs1OlIjI8RRg9LcWcAgVd/WXI0V4Fx2iww9NSBcxwOfKpG/PCE5aMyj8YkZ1ZC51pejJNy/IfY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com; spf=pass smtp.mailfrom=amazon.com; dkim=pass (2048-bit key) header.d=amazon.com header.i=@amazon.com header.b=VyRFv7XN; arc=none smtp.client-ip=34.218.115.239 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=amazon.com header.i=@amazon.com header.b="VyRFv7XN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1770531570; x=1802067570; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IjrLJuqV+zku7oq1cTk6kfWf787uYZ5ciCmtra/6d8U=; b=VyRFv7XNt0XpFulmEhsnr9HgB5BZLyc5Hg9CZLhlKoPGF5V5Rqqc+UU0 lDwlsl5VCLZxUoK2YAVUg4HUUUeL0DWtY9KSMA0Zu7yMm4N9gTdIuS2NS f4yBcsYKF7+Vh3/CLWrm1kto8oI6JS8NfED+bqbjy7ykckoN4S3Veg1kv doCWoXtlWmaZfil2NIbWeQ62sTQ6gnHukhWPauzBgvQ8Y+kumN5XigyGC yf1ULG93aTSuGxUV+GeBzBEJbDa539YruCuy/UfPHb7NncFp/Apo9H/Lc 42qalo0HxsSB14ALKaCI1Hj2HqEpojU61VxeQf8UVFz+eZgOdL//SLsm3 A==; X-CSE-ConnectionGUID: mpHZE5MEQZib1VT7OAEVhw== X-CSE-MsgGUID: ilC1SuyESxm9fahTneCU9A== X-IronPort-AV: E=Sophos;i="6.21,279,1763424000"; d="scan'208";a="12424747" Received: from ip-10-5-0-115.us-west-2.compute.internal (HELO smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.0.115]) by internal-pdx-out-013.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2026 06:19:28 +0000 Received: from EX19MTAUWC001.ant.amazon.com [205.251.233.105:21878] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.50.153:2525] with esmtp (Farcaster) id bc7b5c27-95df-41a4-9407-bbf7cb528505; Sun, 8 Feb 2026 06:19:27 +0000 (UTC) X-Farcaster-Flow-ID: bc7b5c27-95df-41a4-9407-bbf7cb528505 Received: from EX19D001UWA001.ant.amazon.com (10.13.138.214) by EX19MTAUWC001.ant.amazon.com (10.250.64.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35; Sun, 8 Feb 2026 06:19:27 +0000 Received: from dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (172.19.116.181) by EX19D001UWA001.ant.amazon.com (10.13.138.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35; Sun, 8 Feb 2026 06:19:25 +0000 From: Eliav Farber To: , , , , , , , CC: Subject: [PATCH 1/4] mtd: spi-nor: winbond: Fix locking support for w25q256jwm Date: Sun, 8 Feb 2026 06:19:16 +0000 Message-ID: <20260208061919.30498-2-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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: EX19D038UWC003.ant.amazon.com (10.13.139.209) To EX19D001UWA001.ant.amazon.com (10.13.138.214) Content-Type: text/plain; charset="utf-8" The Winbond w25q256jwm device supports four Block Protect (BP) bits and uses Status Register bit 6 as the Top/Bottom (TB) protect bit. Update the flash parameters by enabling SPI_NOR_4BIT_BP and SPI_NOR_TB_SR_BIT6. Without these flags, the locking configuration is incorrect. Reference: https://www.winbond.com/hq/support/documentation/levelOne.jsp?__locale=3Den= &DocNo=3DDA00-W25Q256JW.1 Signed-off-by: Eliav Farber --- drivers/mtd/spi-nor/winbond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index fb855fe44733..55f1209936d5 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -337,7 +337,7 @@ static const struct flash_info winbond_nor_parts[] =3D { .id =3D SNOR_ID(0xef, 0x80, 0x19), .name =3D "w25q256jwm", .size =3D SZ_32M, - .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, + .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 | SPI_= NOR_4BIT_BP, .no_sfdp_flags =3D SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, }, { .id =3D SNOR_ID(0xef, 0x80, 0x20), --=20 2.47.3