From nobody Mon Feb 9 17:21:32 2026 Received: from pdx-out-002.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-002.esa.us-west-2.outbound.mail-perimeter.amazon.com [44.246.1.125]) (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 51DE8345750 for ; Sun, 8 Feb 2026 06:19:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=44.246.1.125 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770531574; cv=none; b=XSoLptUDm7Na/1n1OGnV/ZkYXwfshyFCTTPeWbKrqX69j1YMLXBLD2RrnoZ1JxmPBMjOIpJpj9WALDfPE95nyN9bD46r+4RqYnP6OKuiKpuG5iWMIoiloxkpqjaeaiTPbmjHMsrd9CM0Qo/STOwwnLffEYKVvdTWvpUyY9OAlow= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770531574; c=relaxed/simple; bh=Z+IhAUidZqugyIiiijnn1qmIc/RhpsJsGS8M1z7tgi0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TKjtDRGcW09uURskWQTgNl5dtftp7l6CPy/GDYVe/4xBBCAC/FYL0ZbeEREqibxqrytkbkmVRne69mx/keX5/hggKAWcn7CONxZvolD4pOoX4jZoa4famzTz2i66EKUdLB428IVI5fQhb3kv70G5aTk3fKUEfTpA00uThQApcF8= 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=DLlN38rU; arc=none smtp.client-ip=44.246.1.125 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="DLlN38rU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1770531574; x=1802067574; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2ltZuCxBdZ12qFQz0mmsudjFR/rgDd0q3Z1aKzrOqJs=; b=DLlN38rU5cwFyYKiigJyTIAv+SkJCXGBiYYHeK8xrFKiys/6d2Af17UE 7+K3sdRC/5iES932uwcPNbCamSd2LoLSSRv/TpdpjbyefVXX8K100u7x/ 1X3sRkwjKKzawf+HBhcgNk0xnN3Tpw1zVkF386cHhGNb8ckOeQkPClEDs E8Mk4YSuZ+E+evDekONeVCC0+APd6qXgdyuIVIHNgjtUL3hpQKVEMdQXh PDYIUN8cDtYuW2tVA1hnFa8MIH+hBD4ZiF6Eg/x+Sum2+sSh8tINvoNz/ 0j2WSUleAkpw90G39UKWPJZ8EXNO/gAOQe1JcVNPImEGSFdXS8Wtdio4S g==; X-CSE-ConnectionGUID: nRhDc9OeQmaElTcUDn64JA== X-CSE-MsgGUID: fri+sQXxSYygnKYFaIXl5A== X-IronPort-AV: E=Sophos;i="6.21,279,1763424000"; d="scan'208";a="12615211" 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-002.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2026 06:19:31 +0000 Received: from EX19MTAUWA002.ant.amazon.com [205.251.233.234:8786] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.19.186:2525] with esmtp (Farcaster) id 26e52be1-f38c-4d5e-91f1-ddc4caa557d7; Sun, 8 Feb 2026 06:19:31 +0000 (UTC) X-Farcaster-Flow-ID: 26e52be1-f38c-4d5e-91f1-ddc4caa557d7 Received: from EX19D001UWA001.ant.amazon.com (10.13.138.214) by EX19MTAUWA002.ant.amazon.com (10.250.64.202) 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:30 +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:29 +0000 From: Eliav Farber To: , , , , , , , CC: Subject: [PATCH 3/4] mtd: spi-nor: winbond: Fix locking support for w25q64jvm Date: Sun, 8 Feb 2026 06:19:18 +0000 Message-ID: <20260208061919.30498-4-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 w25q64jvm supports block protection through the Status Register (SR) and provides a Top/Bottom (TB) protection bit. Enable SPI_NOR_HAS_LOCK and SPI_NOR_HAS_TB for this device to properly describe its locking capabilities. The device uses Status Register bit 5 as the TB bit and supports only three Block Protect (BP) bits. Therefore, do not set SPI_NOR_TB_SR_BIT6 or SPI_NOR_4BIT_BP. Reference: https://www.winbond.com/hq/support/documentation/levelOne.jsp?__locale=3Den= &DocNo=3DDA00-W25Q64JV.1 Signed-off-by: Eliav Farber --- drivers/mtd/spi-nor/winbond.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index 6d325da121b4..eaa547d36aad 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -296,6 +296,7 @@ static const struct flash_info winbond_nor_parts[] =3D { .id =3D SNOR_ID(0xef, 0x70, 0x17), .name =3D "w25q64jvm", .size =3D SZ_8M, + .flags =3D SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, .no_sfdp_flags =3D SECT_4K, }, { .id =3D SNOR_ID(0xef, 0x70, 0x18), --=20 2.47.3