From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (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 96B5E277C9D for ; Fri, 5 Jun 2026 00:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780621220; cv=none; b=DTPP6HnqIbLs43C0M1MXNfNQNoDfbUz/ood3qtOsJOsKyJS7LBhj2NcajzJTUQKhjcNlJ/Caol4dFmi48AXN3y+OV2KTHTw9J+hhJxBZ9d45aTaFWX0plt2lyLYv62nvURT0caa0Sh4H1gVT9kRaHjkOk5RTaN3b3KlBwrN3cZA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780621220; c=relaxed/simple; bh=S41ulu67GvrhTHfhnOcB5QvQVCq99NU8Dg16Y3BXr1o=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ds1J7v7pDsQf7LbJ6T7BonfYsgWvbGHfqTMzELdFXg3JCO0QyOS2xenRUnqwkxvLl8vd5qYB8eHRvSWJq1gFohEioiAdBxlCM61hS2gPnOWbLxZmjwO+YzN82cm7k6DGcsmZUXvlrhS5P/PCZ+sE6o66LTGJ1fVjcnLnxKDRmec= 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=I9Owe0Jw; arc=none smtp.client-ip=209.85.216.48 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="I9Owe0Jw" Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-36d6bb38b44so943006a91.0 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:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=J4U7TcvNY33wUvtf1lmh5Y9MjwLa2CwirOOtWB0dKVg=; b=I9Owe0JwzDlp1Gu6dBts3/mgtck3EMbMRPhDJ3I/OdZ7xUY3CsFaHdNVoCP/2QpcA8 YxNHl/h30wQueOGDwzAHVl9vGHNo2Sm9lVMpo8dX9T0aLWf5nGNx34WAXTz5O/guCXPV h8/deYllzPb4wB/509Qg3JgXVyEngPxg4WdmcgdQP1jzQEw9DIAglRU+7tW/SUU2koEI w2mZJ4FUyH2GzMauaEYiY5hHFrKWPSKRqdBHPlceZbP9ArI+eOZw0ASTg7PRmReIQz/R OvWYlMGMAuJeG9mH5RrrU5Ya7tl1WwSMZATqFrvaALtCykyxQI93mJrol89kGo/BWw5h W9FA== 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:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=J4U7TcvNY33wUvtf1lmh5Y9MjwLa2CwirOOtWB0dKVg=; b=a2vz1BvZ3EBEMTC9CddJ6q6WlMI8E+Nq3BtmST1NXBFSTxhdearwNzsNIgaYeNTgSe n73ohWQLJQY/yBPxEmrjeN7wEa0nkWA9HoyRN+n++akpTAxxU43h53CAWJ/2C0jhpp/j pwCexhAP6/c1vYOTEkmMntZfWf/X8EPP//FD5JuIYgKB6/tyfAfkPy6wmj8rfEmZmF20 pFX+O4lDy9szIThzjSXNP5XiA9G2Uj1KmBRBGikCEfe358cR4E0BUxngjwusEIXtiw+6 sHy2GD3tGiqkwPK3jmvEvlHQtFJ6OZmvu9mAbJNwrTo5N91T4nwhMYRFXAEKslGbtw7M MHHw== X-Forwarded-Encrypted: i=1; AFNElJ8uXyRXlbxcoIWaGKyZdmj3B1D+sLTAaPIvrdHqy9uyFV8c244De+4UUXpzrY1G+pkszDqb4SnCMym38Tk=@vger.kernel.org X-Gm-Message-State: AOJu0Ywrym8eHcjmu+wMcG2O1nKZxHoQzo7uGdZbVfejv6Zekuut2mRg tDBqbxuOUztdt/OFhMAcQAKQCTciZzXOtFw6ySKeWuee8PVwCZFyDapc X-Gm-Gg: Acq92OGx4kEldTMZQMNTObbPGD0ZLIB08KMIw7IZNp29TiD9FFifl6omKB7Fkw4yT0H HTWFhY/Z9PvKPRzCoNRhB5uKWrCOmp8IuEC81wBr2Fz6MMAkDvsk/bkiZ7RIzN6rJgCb7w2neDL 2ZKLPDF2Dks6J6t3vJI9oUHruQ85UJUyu81JWzozydOSAmTC1pjR41RKHZFynGFuwl2B0e2oUaZ QL3cALUWkQyeZ5eNkyJqIg68E0cOvpEmWQiB67D0U/plrvpSoCX58WsXmZJFaRoet893GGFvpTY nrAT0RRdkyNPW1xaM6D85FAqEAC9DYaJMbpkBHjsvNYzqInqTdlvbV1KPZi+XfaOZVDLPRfNPuZ R6ZaGsRQngtqt4VXMvHdBY4qh7VyHg7711CM7/zop9HAi+KOItI88miqw6C5ct1FJq77DA0Z+KT zAA/fRI3rmwZwFfLWr6yRUquHzKiZ+HJ2A0R+GlrjRqtI3plyex1deW7Fp X-Received: by 2002:a17:903:90f:b0:2c1:1a22:7c43 with SMTP id d9443c01a7336-2c1e8495360mr9818635ad.24.1780621197526; Thu, 04 Jun 2026 17:59:57 -0700 (PDT) Received: from twhmp6px (mxsmtp211.mxic.com.tw. [211.75.127.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c164fa3a5fsm77310145ad.36.2026.06.04.17.59.56 (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 7100B4163B6F; 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 Subject: [PATCH v2 0/2] mtd: spi-nor: macronix: Add support for MX25L12833F and MX25L12845G Date: Fri, 5 Jun 2026 08:57:18 +0800 Message-Id: <20260605005720.1857413-1-linchengming884@gmail.com> X-Mailer: git-send-email 2.25.1 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 Add support for Macronix MX25L12833F and MX25L12845G SPI NOR flashes. These parts share the same JEDEC ID (0xc2, 0x20, 0x18) as the legacy MX25L12805D. Changes in v2: - Patch 1: Changed the fixup hook from late_init to post_bfpt. Since the legacy MX25L12805D lacks SFDP, it will not execute post_bfpt. This safely isolates the newer MX25L12833F/45G (which support SFDP) and enables 4PP for them without breaking the legacy part. - Patch 1: Added detailed comments inside the fixup function explaining the ID collision and the rationale behind the hook choice, as suggested by reviewers. - Patch 2 (New): Added a separate patch to restore the missing .size and .no_sfdp_flags fallback parameters for the legacy MX25L12805D. This fixes a probe failure caused by a previous commit and includes the appropriate Fixes and Cc: stable tags. Cheng Ming Lin (2): mtd: spi-nor: Add support for MX25L12833F and MX25L12845G mtd: spi-nor: macronix: Restore fallback parameters for MX25L12805D drivers/mtd/spi-nor/macronix.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) -- 2.25.1