Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp201542lqp; Mon, 10 Jun 2024 00:49:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVR5zsQQVFX6YcczWpS+19+Zulc104JzZm98aXfFrhsHFk1VXDJhm/HBAjugMw7qUF3O0bdNrbyNAXrgHGNafuoZ3I1estOa/9v4bXaoQ== X-Google-Smtp-Source: AGHT+IH/ROJ7Yf7WZYiizdBG6c+suWS2vN0f+hQdSHcGU1eE1c2u0RSdb1SRFLWMxhTQ9DFtbJxL X-Received: by 2002:a05:620a:3728:b0:795:5540:6f9b with SMTP id af79cd13be357-7955540715fmr614225785a.18.1718005750224; Mon, 10 Jun 2024 00:49:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718005750; cv=pass; d=google.com; s=arc-20160816; b=Y/LUGt5kj2jF/C/XrZ0C/pXpijz2Rnpik/j7jfx+kO3zzRwphqFem4Cmz6lpkrCw87 m5iIhuD8XKFVu0fT7IJ9PU958t3KiAeGsE3mWZJty8NzuYMWjo4XLn8PFrjTnc+hnP4f 9qk0gZVUbT0Joq455huC3xU+h4oqK3otNi6vT5yhLPAo/Zg1J/7we3qKBWEsh9Bks758 9eyggUVA1S0Lm6YMd0UVRW7KB74zH2/cznyVOgNw+ezPPxBWtXvAIEXr/l93REp8/Ufv qzpb8nMqMJ1YI4oHsnTQq5hypttTyceaWqf+wb81hhF/6WNtDrg/wdbWr1z3pwrB1Ncz fLZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=O5ZgNCIoAfAM3KZdTCuemBAe/S2IwxW/j2HMUOkBmTM=; fh=cZ2uMejm8GMMEaGqTB1W+wOveO9gvUxLzlt01me50k4=; b=G9tEx/9DX7ONKlWYe52TVpWmxpesz45sTXDqmeYEF8/SP8vkfE9dl7wJnt45uBAlox XJf5v23kXiAwqLhM0+rkwYezLua3qgWbEcdyhh1SlQB5yLyIg24DVzGpS2xhmm1MWPxw ekxcXYB1xN7SGdUG6RNda90VQ6ACqJwJCkNB/m9FnckAyk1RIJ+8q02crf6qxE9z0yMK 0eH8UJHv8WO5EJJQcR3qm3fcm25WMex8tMP1uD52W1aPZYLRhawBybwOGVRQqDLmeREz WtDdu1LquH593W62epEASod4Y94yomr/jGwGRiARY/sb4AlYF7UuWgZ2xw+/3homMleZ vS8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mj89g7jA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-79540ceda63si784555385a.353.2024.06.10.00.49.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 00:49:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mj89g7jA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 560F21C21C70 for ; Mon, 10 Jun 2024 07:48:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EC4626286; Mon, 10 Jun 2024 07:48:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mj89g7jA" 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 2D0393F9FB for ; Mon, 10 Jun 2024 07:48:22 +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=1718005703; cv=none; b=Rf71tdTR0jTO1wxtPDeTmfU4mUYhMcNev/1gWTVGlX/uhynq2Xyz5jXd9LdaYzNgLFy+5XkJT3fHM4zoPY+qmqmc5Kbar27ry6dPdaJq35XeBRySX2WG4h13hXPV2UbdFJdGs7dW0+56JpSWxuvQMtsA85dhvKTMSmIY9nhBr2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718005703; c=relaxed/simple; bh=2qRE8JlGLZ2v3Gb/BpOQHXVYxdux+LqVifqY0jGju70=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=W/8CxYLpLKeIhaVJxRhVuXoz3bMoxcOtjMDVexUHRw50QqL1kZYGhQwfBQectCyExpdPYsWCAEoyEJVMAlGuay2HdL0lEqcXivj3BMoYpxJKYJf2LiSe8BParK75tIlc1f9aMT1TzC3al245QLJyeFRVXM7L+EFiW3cDMa0uCE8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mj89g7jA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 397D1C2BBFC; Mon, 10 Jun 2024 07:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718005702; bh=2qRE8JlGLZ2v3Gb/BpOQHXVYxdux+LqVifqY0jGju70=; h=From:To:Cc:Subject:Date:From; b=mj89g7jA6W9wPM/LUrs7z1lITBOBj9JdkJyn5HmVzF7a0YuXsYtYjSF3WsiyerHUw R7hkyoVeRAjW9EDb9x22cAXRab275h2U8ZXVgTzu5Mid8+ZOauy6NnHQedcCcMroiW uG+TofcmkVzClfUkFZorMnVk5Apig6fT4ZUxrYCUimC5dhQJYPomMgc3TJvZZDNFpN QV/hQpBDdSS2P4xRlfb6ydgRwi1NYOuFEc2wmhIbCp1EQRV3fggutfYAWA0JONyBpZ WNqg+jpckVETcv9IGdBlIbM73kWAqMG7DVXxuf8bc4pExIkfn53w7hjHTGV7R/TbU+ 7Ee8JLVxzvhQw== From: Michael Walle To: Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Linus Walleij Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, e9hack Subject: [PATCH] mtd: spi-nor: winbond: fix w25q128 regression Date: Mon, 10 Jun 2024 09:48:09 +0200 Message-Id: <20240610074809.2180535-1-mwalle@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Commit 83e824a4a595 ("mtd: spi-nor: Correct flags for Winbond w25q128") removed the flags for non-SFDP devices. It was assumed that it wasn't in use anymore. This turned out to be wrong. Add the no_sfdp_flags as well as the size again. Reported-by: e9hack Fixes: 83e824a4a595 ("mtd: spi-nor: Correct flags for Winbond w25q128") Signed-off-by: Michael Walle --- Hartmut, Linus, could you please test it on your boards? Also, do you have a real name we should put in the Reported-by tag? This will also need a manual backport to the stable kernels due to the new syntax. But that should be straight forward. --- drivers/mtd/spi-nor/winbond.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index ca67bf2c46c3..6b6dec6f8faf 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -105,7 +105,9 @@ static const struct flash_info winbond_nor_parts[] = { }, { .id = SNOR_ID(0xef, 0x40, 0x18), .name = "w25q128", + .size = SZ_16M, .flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB, + .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ, }, { .id = SNOR_ID(0xef, 0x40, 0x19), .name = "w25q256", -- 2.39.2