From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 171D9273D76 for ; Fri, 5 Jun 2026 00:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780621218; cv=none; b=utHZl2aMkfmYPQtTDhVAIk+iOsJ0xzvTBviGm78MCAFqd+SzrjbJvRlRIl+QeQDSGFuYddZgMx3ZHtu8zRK0+tefXUv1YpBCkm6fIf54VRTWV72X6p658p3loA5j5OmHUAeJ3cX0T0s7Ot7pkCGYVZK/yyBrFQDI6atdAfvRCB8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780621218; c=relaxed/simple; bh=u0/w00vlK6fi8yvn+h86TeNOxWHIji6kmAtn8Yr+LtY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jrjZ6WB3D1hbMh6j5Bm1u41JhJ0jxTlm6TMhzKwdARMCSYC3r/QXL9aCQsdUFaL6KcsRKIxjoIJ0/TUwqkxnR8dKJjR8jHBs6h9El9NN21jrxsjmj9U1D8ZPdmbrjdAMre/mtapuS9zzv638ga61/paX9V/2g7anTf/KlquKgOo= 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=gOI0GMNJ; arc=none smtp.client-ip=209.85.210.179 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="gOI0GMNJ" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-842338c18e0so979498b3a.1 for ; Thu, 04 Jun 2026 17:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780621198; x=1781225998; 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=Q2yNPrajpmUjXUxkDV8KTQdIiGB5qpjbVC2V+xxbVWk=; b=gOI0GMNJIveWfc4p5kpW6qQu87tDfxWijmyP1iIe3U6z+FvKifDOKWhTkcxsJL8cRR VV/r0iDy5qUBCCBiS44/0NgaKKEA05kDdJPEke8ZZXUIOj5VAKk0L73MRgLatvMoL03e mahDxre9j/fRw91JPo55JnlQxl1kZP+D0oizZonj1+FMp36bFEMcb27JJofg6g+lFMn0 GcMfQ30KYCORC/EriKIUm+NGeZtgwsZLcZVZ4SLC9nCx4ymF7rYoyI52gb2CDK476/Pi kTqTakXjglIRn+JxXozM57Q4eRoqrtB74LJp0bh78B9WEHTh0YddmHv5R16Tfgzdk26j YjYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780621198; x=1781225998; 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=Q2yNPrajpmUjXUxkDV8KTQdIiGB5qpjbVC2V+xxbVWk=; b=XcGuMK6bem6hy4r7kSgEmy8b8YPslQxWUg/iUyvFUthK2cbXhF2Ybnrvh3dfbxiyNa ksEO7pEGkJcbtcnUushNFDlSnRGDmP/hA/ODHBWxJ3xSkL2Xe4c5gsmix9maRHxRzQVR fznC1qONSmuG4TySAkTPm0KsIjrkFqJ9qCCj18A4ey/hzH6AvoI1s5VDS4o7D1pJm6hj ihUZuLz2Bih8ujMoxFHT2Kni5S4nLLq5P/NhUj9cLHWVV0vBQPQ0fxfKSFFZvcrbqdkf 2DILNE9Ik/lzFM9mvRyISsgaPkaymRztaQ9rrDc7U3KFXKtQE7dwi1GE8v7vO6ScOyge VSuQ== X-Forwarded-Encrypted: i=1; AFNElJ9Bv+RII27WEy8vFpETif9Mm2tXMHCWUWS2Awp1d6UkWtSrL2Q4AI2Q1owB1dcV/hs/K10mLoteh+N7Sn4=@vger.kernel.org X-Gm-Message-State: AOJu0YyBnuCBxQfOTKfmZ745oLHDi7YFdUgS/vSniKRJ07svWOF9wX5Z hYzzIF30FB4Yk6wo9wiBBbhr4xZVFJcVAcyDZT2dwCPM3lHFfZWsJCP8 X-Gm-Gg: Acq92OEHroewy9FwVTJVQLXkoFQvZPOATEnH2jqO3q8in5AcFGalsPBsRURA8OweH0U qbtGCAo6Sfh1Dm8GhMNw036OPvYsq6jTsbqjC4fEgSDtCv1d73UYAsuPhpH1O6l7EGe5nMVI9hJ W4angVlPdvedlmrQXRDJJ03pfYxVsO8pOWYi+6DCh1WZ/858y3plupwiTLoJi36dkag5tKZUsUU 5RhkLhtOz6zMTXST0fO/Mp5jebxGZ3/r9R9SpwuBAiZAgIbdy57zGvI4Lsq3aw1nC4588LTtUsC yLcU4EqwZp2foRUhqI/5ZsF6teYRRrK1o8qBmFPhAwO4xHjvBVgn0BdmdaHA8r0Wv7WRvfd7iIE kLHYZmGNrmTVcYg6YVNeS9Kfeb/dfW29pIt+Mot/7G0GHLJK5jsFFZZSv+cHcJktIpUOM9qlV/U wGDyyzo7/2cRQvN3IUtisTwgwjwvC/C/zQitiOn1HiKxVpeWib5PbNgWfH X-Received: by 2002:a05:6a00:908e:b0:842:459b:d61b with SMTP id d2e1a72fcca58-842b0f90d88mr1002312b3a.32.1780621198003; Thu, 04 Jun 2026 17:59:58 -0700 (PDT) Received: from twhmp6px (mxsmtp211.mxic.com.tw. [211.75.127.162]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8428235006dsm7730884b3a.13.2026.06.04.17.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2026 17:59:57 -0700 (PDT) Received: from hqs-appsw-a2o.mp600.macronix.com (unknown [172.17.236.67]) by twhmp6px (Postfix) with ESMTPS id 7F6284163B72; Fri, 5 Jun 2026 08:59:55 +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 v2 2/2] mtd: spi-nor: macronix: Restore fallback parameters for MX25L12805D Date: Fri, 5 Jun 2026 08:57:20 +0800 Message-Id: <20260605005720.1857413-3-linchengming884@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260605005720.1857413-1-linchengming884@gmail.com> References: <20260605005720.1857413-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 febcef6a1..4cb7c1e98 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