From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pdx-out-006.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-006.esa.us-west-2.outbound.mail-perimeter.amazon.com [52.26.1.71]) (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 2CDD42110 for ; Sun, 8 Feb 2026 06:19:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=52.26.1.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770531569; cv=none; b=e2yvojLgZXFswoehWU1T9sheP+/0pBy3hXYbzair5IX8Phz/ZBHY0SHthWJFsudf8zXFtUpbNm1bUBdIAVAkHDWz1FeWQvtb1AWL725njbhFsPZBcu6+OZOlbzU6JvCQzZfSX8RmeA4LGJfJoVANlWElznX/7G1NoVe3expuVEI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770531569; c=relaxed/simple; bh=qFD4zzZe3Xp2J5vew4UexjggaBEtsJAU+z8kNPqiWJI=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=bJ1pPajSedRG/JgLDunMHrlfIVMkqHRSzYXKHVAjivM8eWM9vLNPcSes/gU7TXT/y2G/PMy/owa+KtKHOLPN4NPQX3OcUGOGjjXGPAuy+Y2d50JpfXaNnDm/LxW6sr+Z6hNmX3NnJ9LDZE/zvhCePYF6KV/oV8F0ENgy4atxaU8= 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=VLsvZQgl; arc=none smtp.client-ip=52.26.1.71 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="VLsvZQgl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1770531569; x=1802067569; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=WF+qi4ivY0NEP6GZqQRBPyCq0+EsbEsVfk5b6Ncuuzo=; b=VLsvZQglF6XynXgL3117xOrUcjPSWWyOeLPr4pNql7WJrvLgrrHnZ1As QpD1tcKn7fI9LSkcP80p1oM1nzT0HKzUTfCcD5qhmjy1Y4r2NKQC6Rk19 xgoORxS90q2kRK96twB8wd8YeUvdQdBa3SKZE6rjKhRkmesaHvbl6Xgbh JXomBL5Toa3Qh+41iCg+ByKhgRp3v7KIUXfJvdJMDa5IEyAEAmTpiIiUW Zy87IUyH3+yLk6c/8vTk5yEQKgi0xB73aPoH4/gMWkBjaqU8Gk3ca96Bu 6l8EoX92sWelZc1WKc/PJRafZam+GadUlv+rYSVHQ+/gNtev9k5qX1E1g Q==; X-CSE-ConnectionGUID: IBZdUWx4RdSUt8CSv/oQ3w== X-CSE-MsgGUID: Y8tKnTsyQ0uwqLC05bhLJg== X-IronPort-AV: E=Sophos;i="6.21,279,1763424000"; d="scan'208";a="12616449" Received: from ip-10-5-12-219.us-west-2.compute.internal (HELO smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.12.219]) by internal-pdx-out-006.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2026 06:19:26 +0000 Received: from EX19MTAUWA001.ant.amazon.com [205.251.233.236:20860] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.7.219:2525] with esmtp (Farcaster) id 6acaa630-3c74-4b85-b879-7e20e6a0d65c; Sun, 8 Feb 2026 06:19:26 +0000 (UTC) X-Farcaster-Flow-ID: 6acaa630-3c74-4b85-b879-7e20e6a0d65c Received: from EX19D001UWA001.ant.amazon.com (10.13.138.214) by EX19MTAUWA001.ant.amazon.com (10.250.64.217) 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 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:24 +0000 From: Eliav Farber To: , , , , , , , CC: Subject: [PATCH 0/4] mtd: spi-nor: winbond: Fix protection handling and enable dual/quad reads Date: Sun, 8 Feb 2026 06:19:15 +0000 Message-ID: <20260208061919.30498-1-farbere@amazon.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EX19D038UWC003.ant.amazon.com (10.13.139.209) To EX19D001UWA001.ant.amazon.com (10.13.138.214) 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. All changes were validated using flash_lock on the affected devices. Eliav Farber (4): mtd: spi-nor: winbond: Fix locking support for w25q256jwm mtd: spi-nor: winbond: Fix locking support for w25q256jw mtd: spi-nor: winbond: Fix locking support for w25q64jvm mtd: spi-nor: winbond: Enable Dual and Quad support for w25q64jvm drivers/mtd/spi-nor/winbond.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.47.3