From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 545AF2C027A for ; Tue, 10 Feb 2026 07:37:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770709025; cv=none; b=Yq3MvW5gQ0/xQA86r34QV7AXU8cH+5DHHw1GPQRysnD1EsHDY/f74NnACaTUSyX7YWlc9H6hJH5wB1vx/dH9XPHCC8jwxF7bldiFNM4O3LXo9hBm6xLhBYXUPuAvB+OSajfj5tHyrkCmhiparFYNVrEFYLkkGpTs+eQf2Ot2s6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770709025; c=relaxed/simple; bh=HmJ7OijHDPgsC5trPZ9j8lShrJlC7K9JlcZxWROVB4o=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:From:To: References:In-Reply-To; b=jBr0+0MFdpqID2+55250j4AJONNL2mV1eYCMhP973ryW/oA2PunOxod0Z+cMkARjL8kJjD87MSTtM+rGAT2UDNfFQC4qWqg68LisSH5eiZYSYOxovs+lXxV9YwTKKF5y3ICKYw7HtHz1VW1R15dwxPsTmLghvtpJvqKv/Bw0Yek= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uVq7lokh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uVq7lokh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64092C19424; Tue, 10 Feb 2026 07:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770709024; bh=HmJ7OijHDPgsC5trPZ9j8lShrJlC7K9JlcZxWROVB4o=; h=Date:Subject:From:To:References:In-Reply-To:From; b=uVq7lokh9jJqQCMvKaYLm9zbGtPRZQEtPY90Ir+a2La1SIgaHCIZOjyHl+Zgjgr6e TWaIMfMy3sR9AjvZ1trX8oQihHHEHc4VbxJsAUXRUACK3xHlxEEgY2Igt1+/gu2XgO mCHwBINDBrSJoP6+w+4ROm44jqzmpoqxq4VcHYp51LPb7A7ZX2ntmoLUb9qB/p6i4u MRuM2+QpUY7B6GvvohO3tT2bMvrZWW3dsITlSsZbbK6zmi2yoYi5a4PplIW7jOHrPJ Dj5oajiFbl9sfO1fbGrW1NiNhm3XL2lGEVDSYpDMBtdKG9M65dS+KQX6GcfLVuGJN6 5luQV2tHFZdwA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: multipart/signed; boundary=9085e451e96b7c81c2ccf1cb3c65a6a29e9f6a7092163991673c021d5645; micalg=pgp-sha384; protocol="application/pgp-signature" Date: Tue, 10 Feb 2026 08:37:00 +0100 Message-Id: Subject: Re: [PATCH 0/4] mtd: spi-nor: winbond: Fix protection handling and enable dual/quad reads From: "Michael Walle" To: "Eliav Farber" , , , , , , , X-Mailer: aerc 0.20.0 References: <20260208061919.30498-1-farbere@amazon.com> In-Reply-To: <20260208061919.30498-1-farbere@amazon.com> --9085e451e96b7c81c2ccf1cb3c65a6a29e9f6a7092163991673c021d5645 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Sun Feb 8, 2026 at 7:19 AM CET, Eliav Farber wrote: > This series fixes block protection handling for the following Winbond > SPI-NOR devices: > - w25q256jwm > - w25q256jw > - w25q64jvm > > The devices do not correctly describe their Status Register layout and > protection capabilities (locking flags, TB bit, BP bit configuration). > As a result, the spi-nor core rejects protection requests and locking > operations fail with -EINVAL, e.g.: > > flash_lock -l /dev/mtd29 > flash_lock: error!: could not lock device: /dev/mtd29 > error 22 (Invalid argument) > > Update the device flags to match the actual hardware behavior so that > locking and unlocking regions work correctly. > > Additionally, enable Dual and Quad read support for w25q64jvm when SFDP > is not used. Do you really have devices without SFDP tables? > > All changes were validated using flash_lock on the affected devices. Great thanks! Could you also please dump the SFDP tables from all these devices, see [1]. Thanks, -michael [1] https://docs.kernel.org/driver-api/mtd/spi-nor.html --9085e451e96b7c81c2ccf1cb3c65a6a29e9f6a7092163991673c021d5645 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iKgEABMJADAWIQTIVZIcOo5wfU/AngkSJzzuPgIf+AUCaYrgHRIcbXdhbGxlQGtl cm5lbC5vcmcACgkQEic87j4CH/juWQGAx2h6X0tbeOrOS1w3iFc0qNBUmMysW3Zq 9jlvQ8i1JpgouqCNlY9MnYKwXKBb+AEVAX0Wi/7nwzMz6Bwqx349XpE62HVZFlrY kNXaHtURBMdbWvsCWc6WwRku0f7euE6qywA= =rJ5H -----END PGP SIGNATURE----- --9085e451e96b7c81c2ccf1cb3c65a6a29e9f6a7092163991673c021d5645--