From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2CC06CD6E7C for ; Fri, 5 Jun 2026 08:50:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vwMV98uZGGE/fm/4uPpVzXXsB3vIscxzqAJbFx3MHcI=; b=dQpRmCDNedpMOm 3OJp1VlZyoLUpBUAxLInWaw/COo32OQNOBO2tBrkxL8CSn6IsiehT8ILoGy8CsFQsn0jBQCib040L A1CnNy36eWZawl1PYAQQQRzO6aqVPVMwoMZxm0cTA6dum1BaoftdGGyoMc7wm7CgnO148lBVwMYQ1 jHzNQzql+p/PL3oBLdAasJ7b/ACtmDjwy+UqbWBcj2UTalMZvpvez4Uk1w7NwnlhG73QPvbS8l9ht l334tHjqP8ELey6tpAM4AvIxh1s8YuwG9zFvTrxme1CMyFKjroZx6+d+P2fhVa8RKRlQfWTlvgKdX gucAyu045SLKMGWXdnLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wVQGW-00000000LIo-3l0O; Fri, 05 Jun 2026 08:50:56 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wVQGT-00000000LHH-21cS for linux-mtd@lists.infradead.org; Fri, 05 Jun 2026 08:50:55 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-2c0c1e0d00bso16430885ad.0 for ; Fri, 05 Jun 2026 01:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780649453; x=1781254253; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=k3OkoXbhs5kLS7ezOvy8weCw2fewKlEBiuSMFva/mlQ=; b=ZTQLcQW/vqoA+56gJVrqGlN+OCda6sJrMJJU6JStbozmmk/zzdLQzG6sdZ8AXWWNEv AMzMj1Ngpd+Kln6F475nx4H1SUYy8VdoqGwYkL0zQoYsO9o3csmCTsVBU9FJon+nCDRk 97PciS3VU6AW3zr52zjAbpVDMqUJ8pS4f/uZniUj2h/sMkIFtY/cpYUnxYT7DIsNKoOu M4AeIK1H57HQT7bt7CiTeGW1W/fDvLTJW7riAYZFFU+A16qSAgoItcmIl+6l9O5W0hvq W2PFsTFACd5GhkG1UAsJI77QyMBeiBD4M3SMu4+zX1d3Ck6WMyZ4M7SOqpOijjJmx1QL 6Opg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780649453; x=1781254253; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=k3OkoXbhs5kLS7ezOvy8weCw2fewKlEBiuSMFva/mlQ=; b=li8Quq4mtO7/rNx45Ut2KHuP/ZcaeBBbwX6Zf87f04m+9jVBlCBGltsK5u5sOo5cR/ QDTLIQJ+DAU7oj0ZpBWj+Z8OmkSO6hvjxIqg/NBpzo1jGWJUsQB/W5C42xuoWbgCcSzF 85fxjR6j7jsGVzIYxEkFIN2phbKxpYCPBz94HVH9bcWpkX3R/kdMs2czmEwVRQH19/7T Jhp1kcDJcVvU2voaiXKTh3zjt72zPhfHzWpwREcVJsxJnX4BvQHwQuUgv64k91oINMaP Azxx+EWHseje4RsTT0Ln9MR3TrHhyRcLMHOX26aFk12KfoIxgLdPkK4KChS02+R4EKeC X+/w== X-Gm-Message-State: AOJu0YzXzxPJ5/b49aZzLiESAX+U98aRHWGJ4qPnQka/gJStep13ZSBZ 22jlhpJ8+8kjlZjapYLr0LKx593e6hyyq2J8BA8a7in1ciVsUDIj2Egk X-Gm-Gg: Acq92OHc8hJrHqAsqH9mGixDk+QsU6UK/BpGYo+QAOpeawaeA3osX+1gohltRB6XJXk kTpcb6XHDT8ck05sdsY9TrPwhVtdA/I6Cnwdh1vo3rcP8aTYr/BaOo+rPiHPkIcHgd/qLpRkelV 3OiEFsDKdheOYbUdOAxnNqooFUibCm4oLUwADlsP8syXY30NTr9/pvCBmHY2CFTk4knNqtc/Q+R quu1Vyyc5wRdt9s2O6A6NYqN0t/q+jIGZ13X7RquD9ZrQTyY+wtMNMONnqICOD43JtpBYMZqcCr joAsYfE2Z6h43sKR4osKy6I48ExV6+tf4Wtcm+shCK71RQ31dIXxurp/OJfyZ3sWG0n+7K+5TNt 6NcQvMc5941YXgGbEjBzL6B6MzCY70vyPd2XrIdYAktOcTfT8CXl+v1Kk9VS2UYRB+CF2b7K0sH 1N1/DUNfRgLYXIXmnZGa3fPLE3wic1YK66cbRRj0wj5hflWYWRwvQuC9XxQMzxAPdrvx4= X-Received: by 2002:a17:903:41c7:b0:2c1:77cd:fb0b with SMTP id d9443c01a7336-2c1e85e04bbmr27080835ad.37.1780649452732; Fri, 05 Jun 2026 01:50:52 -0700 (PDT) Received: from twhmp6px (mxsmtp211.mxic.com.tw. [211.75.127.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c16649fcdfsm108703915ad.78.2026.06.05.01.50.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2026 01:50:51 -0700 (PDT) Received: from hqs-appsw-a2o.mp600.macronix.com (unknown [172.17.236.67]) by twhmp6px (Postfix) with ESMTPS id B99234163B74; Fri, 5 Jun 2026 16:50:49 +0800 (CST) From: Cheng Ming Lin To: Pratyush Yadav , Michael Walle , Takahiro Kuwano , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, alvinzhou@mxic.com.tw, Cheng Ming Lin , stable@vger.kernel.org Subject: [PATCH v3 2/2] mtd: spi-nor: macronix: Restore fallback parameters for MX25L12805D Date: Fri, 5 Jun 2026 16:48:37 +0800 Message-Id: <20260605084837.1875896-3-linchengming884@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260605084837.1875896-1-linchengming884@gmail.com> References: <20260605084837.1875896-1-linchengming884@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260605_015053_525389_B75A9D42 X-CRM114-Status: GOOD ( 12.07 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org From: Cheng Ming Lin In a previous effort to drop flash_info fields and rely on SFDP, the static size and no_sfdp_flags were removed from the MX25L12805D entry (JEDEC ID 0xc22018). At that time, the legacy MX25L12805D was already EOL and unavailable for physical testing. Verification was inadvertently performed using the newer MX25L12833F, which shares the same JEDEC ID but supports SFDP. As a result, the probe succeeded during testing, leading to the mistaken removal of the fallback parameters. Since the actual MX25L12805D lacks SFDP support entirely, it strictly requires these static parameters. Restore .size = SZ_16M and .no_sfdp_flags = SECT_4K to this entry to fix the probe failure for the legacy part. Fixes: 947c86e481a0 ("mtd: spi-nor: macronix: Drop the redundant flash info fields") Cc: stable@vger.kernel.org Signed-off-by: Cheng Ming Lin --- drivers/mtd/spi-nor/macronix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 1adb79832..d13ea93b0 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -155,7 +155,9 @@ static const struct flash_info macronix_nor_parts[] = { }, { /* MX25L12805D, MX25L12833F, MX25L12845G */ .id = SNOR_ID(0xc2, 0x20, 0x18), + .size = SZ_16M, .flags = SPI_NOR_HAS_LOCK | SPI_NOR_4BIT_BP, + .no_sfdp_flags = SECT_4K, .fixups = &mx25l12805d_4pp3b_fixups, }, { /* MX25L25635E, MX25L25645G */ -- 2.25.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92A0D37F74A for ; Fri, 5 Jun 2026 08:50:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780649455; cv=none; b=fxPTL3HmlLaT93gOUg9OuOINfHk+ktNI/DtzztGqoZPTCd0/2vYLOx9fDXxbP4qlxKQ9+E1srsp8lcBy7vrtDnxZW44PZ1VeG0RcVuOaIeXSu1T399M/rt4kztOcXaXFli0Xy0axLow4T2NIyECWi2GZtpv1M8h/YSLPOCTAtz8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780649455; c=relaxed/simple; bh=rwpz8oRKT2EHd6rvYnp/8VrSAUtSAqZ55UfOX89Ibts=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Gg4rSHEQv4JrGS1yJ6+tPowGPps30py6tEscRYBf9EkH+GqA+2iinkPdO3EdfDAqZavxCO0RZnHNd6/PdGN1M9k7o6W892yFSilUTk4+A7b1eJ1yviJbGGtSSINWwHjZkbYkozrTZZra2ox8NR2AAmwssUjkryDdPCY2rDUz6YE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=I7bmhe+5; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="I7bmhe+5" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2c0bd02d97eso19405665ad.2 for ; Fri, 05 Jun 2026 01:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780649453; x=1781254253; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=k3OkoXbhs5kLS7ezOvy8weCw2fewKlEBiuSMFva/mlQ=; b=I7bmhe+5tjMagUOc7mwfY1+9qFbJArFILkpZ5O5SCH+dUB6jwxxokJxnAbZAZS5Q8l lPWp52p7200jDaaVfLStjWRaxhPfWDvYPuaTLUfzq20rTPUYKpnAOIbcWR4bd3tQ/Ewb SKHUe/yPdirO7zx1C+O0qIw2qwmE8GphknLXMgrHAVmTtdPF0e813aIEyZplt6Tj2Zo2 VHCxp4y/7nx8Y3whF8W0ZJSkKSQ7/pCsao7ORU4FQqMxXzVBhH9fT1ih84pt50zCZD9N bHfi7N8n9G+A9OuSP7GdTEe49+qxWtYIXv6JX/3JE71Wb5I3/5pFkXmofGAvljg7CsS8 hs/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780649453; x=1781254253; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=k3OkoXbhs5kLS7ezOvy8weCw2fewKlEBiuSMFva/mlQ=; b=MFAvEqz7SechsaJUTs9giOgPOcYKWsl7zPU/pkZUzcK6NRjp5a6sMC+vN9585o8Fv8 YHe/Bplf+AXdR9mDMLWPWPlzTptbOqMXL+X2jnRIYxESQYl/yGEwDKEWpNFmhqIOFRgc ROTY5eA8vUwhNZWycGu/87y3nSNk8vzWAYZchvFw6htYaSrLAXsaBn1JdCClyyikxeXc kMHai9Zb2VtfcvUfY4icHACv3PWp67n9YddHbme6eJ7IZ9hLi0q+ZhVhYmSs290cxckQ XfXFaxNwb2haybKZ6BOM5WYKvQLSMWos1k0C2JbUcVILH9DTwpQjs9E2yIpt8uI1vrHb LuYg== X-Forwarded-Encrypted: i=1; AFNElJ//7Rd1c8fsRAPGo8YdRjCREF1n0aY9CXBKZOkXxp+QlsOQAssf6abeIg7g8y8qF85IYOzR5Xcc0zZeE/A=@vger.kernel.org X-Gm-Message-State: AOJu0YwRqukvxo6FdB7h1n4dUJ7K5pp7JLDunZ8y8TJ4Y1/nOp7sK0hn 83YUGdsv5Ec0Rbnq2V3JcESqv8gVt/yznnmte93R5FkPCaYUAkkYeROI X-Gm-Gg: Acq92OFnQXD0tLZHxQIsHYLukwbofjny3C7hurokixogJp7l/iQsFE4rM5KLMuWp8j8 RK9B3SkGwCategKQBCkrZpTVF/2MHfeTo7X8W0wO9j3HDJ/Q5Uy+GSZSayYp80Be/BtKUpALZRP YFuG8ky2+efKX0WCx19zi3EJR68QkMWaTVY8ViQV4TeFrsTJntgt+Ve6DzaNdJNWq7WPGuaO7bg v+vbIUg5Eqimz3WOS1gajXeJYMmXHaNj0tATt7629TCyKivgblwiIhEfXFMZm9Yn7l3fFSorG03 7Bs9smrWUtKL7JsWz2RicWwpA/M8S2f/aQKJnE4Wo1Sc250h0pyl9QyXoRFpvZeyFJeiFPam4f0 hZXG/hkQ9CVTWBT3l0sNxNCYsLI3UV00iui7xuX83EGhq3h0CdmwmwoPdUl36QnvVCWqKSTMZww bQ4pi7Liq4TM0tUDxygapKRS+lJw1au0ZDIrAl9nXLfEi4qfh16CVS3jUE0h+wBi5WRv8= X-Received: by 2002:a17:903:41c7:b0:2c1:77cd:fb0b with SMTP id d9443c01a7336-2c1e85e04bbmr27080835ad.37.1780649452732; Fri, 05 Jun 2026 01:50:52 -0700 (PDT) Received: from twhmp6px (mxsmtp211.mxic.com.tw. [211.75.127.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c16649fcdfsm108703915ad.78.2026.06.05.01.50.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2026 01:50:51 -0700 (PDT) Received: from hqs-appsw-a2o.mp600.macronix.com (unknown [172.17.236.67]) by twhmp6px (Postfix) with ESMTPS id B99234163B74; Fri, 5 Jun 2026 16:50:49 +0800 (CST) From: Cheng Ming Lin To: Pratyush Yadav , Michael Walle , Takahiro Kuwano , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, alvinzhou@mxic.com.tw, Cheng Ming Lin , stable@vger.kernel.org Subject: [PATCH v3 2/2] mtd: spi-nor: macronix: Restore fallback parameters for MX25L12805D Date: Fri, 5 Jun 2026 16:48:37 +0800 Message-Id: <20260605084837.1875896-3-linchengming884@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260605084837.1875896-1-linchengming884@gmail.com> References: <20260605084837.1875896-1-linchengming884@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Cheng Ming Lin In a previous effort to drop flash_info fields and rely on SFDP, the static size and no_sfdp_flags were removed from the MX25L12805D entry (JEDEC ID 0xc22018). At that time, the legacy MX25L12805D was already EOL and unavailable for physical testing. Verification was inadvertently performed using the newer MX25L12833F, which shares the same JEDEC ID but supports SFDP. As a result, the probe succeeded during testing, leading to the mistaken removal of the fallback parameters. Since the actual MX25L12805D lacks SFDP support entirely, it strictly requires these static parameters. Restore .size = SZ_16M and .no_sfdp_flags = SECT_4K to this entry to fix the probe failure for the legacy part. Fixes: 947c86e481a0 ("mtd: spi-nor: macronix: Drop the redundant flash info fields") Cc: stable@vger.kernel.org Signed-off-by: Cheng Ming Lin --- drivers/mtd/spi-nor/macronix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 1adb79832..d13ea93b0 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -155,7 +155,9 @@ static const struct flash_info macronix_nor_parts[] = { }, { /* MX25L12805D, MX25L12833F, MX25L12845G */ .id = SNOR_ID(0xc2, 0x20, 0x18), + .size = SZ_16M, .flags = SPI_NOR_HAS_LOCK | SPI_NOR_4BIT_BP, + .no_sfdp_flags = SECT_4K, .fixups = &mx25l12805d_4pp3b_fixups, }, { /* MX25L25635E, MX25L25645G */ -- 2.25.1