From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 F15365478D for ; Tue, 3 Feb 2026 02:15:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770084916; cv=none; b=qP4ePaLO8QUbkpIJt1S27/xIXS0fBr96oKcAmynFuDM5/HN5rVYFhjPDbsUMgSgff9jVhsEoqr8OhpE/TIljZcN0vOwVop/x+YB6WHTrlznrvg+xYc3SqO0aaaOddslgnYnM8jSRcuURjdfPCviiXrN82F1jz68ws5iT+Sw83WM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770084916; c=relaxed/simple; bh=Yk6VcJncN0lasfOCiv8n8PbwdV5FUNhf0hGmundQ9OQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eamMGo5GiL1SduS+Y++tHJ0/SDDFFvC084PrGFi0ZIS+piS9/hLmqEWP4A6ap3AN6Pq8r0w5HKoYO+MLyCzzhj8Vb8+Hz154cK4YoHocNvPkEoG/TYukieQIU5LwqNKC6XgQ9B2G34RbqLOYfQADDNJ6fzH+BFuv9FyrMO5smEs= 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=W/wnjq6h; arc=none smtp.client-ip=209.85.214.173 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="W/wnjq6h" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2a91215c158so12656175ad.0 for ; Mon, 02 Feb 2026 18:15:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770084914; x=1770689714; 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=M49pLF03j47dYGZC1fpEi4V6Ci2ukrF0IVYHzJNJOlA=; b=W/wnjq6h5jQjYDj134e7cQCw1M3rkmHL/W/Q/CBWjR9he7CTZ/EPos5J/c1s/FllDb 74GRZz0GT7O0IR1eeRQflG+sVXbh0brCFJj3XUMG1MpW/pQe8wAcm4BkIjPCLSErbiiR C3GDrQ4EC+b1ZZTmUjjV5wr/jMWyiKBSbmsH8l+EifkVRY9a6lExRBCavx9XEOpm6JQi VOn2kDo6lTm/bGuqavDAT0CzNMGCas6zDXBFUXGnbuJfLcoyxaeNHmWJ+PnPPT3TUG+4 5o4USrjPVKISz+iPIe6u1xXRTUlVicr02Lg7lke5Tvk2vdHoY0s1bLibHf8R/yEH23o+ xfbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770084914; x=1770689714; 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=M49pLF03j47dYGZC1fpEi4V6Ci2ukrF0IVYHzJNJOlA=; b=bOm3Zz63OhGe3zNehB6opOywpSDLUxjTEIdwzAAfSHqEZGOUKlUSIk+7Bdwwn1SoTD TONXnR3A2jwIWwxwt+4nxZE5/IQY+L3qBjiXL9GGzcpkPTEqrtHuuVPgi63E2hxBH4tb r07YBFBuGiLQFjbstJLqJ76T9+vknO8Uf3Njf3AoxBA+xFQOP+c43DLVfAy5OiUI5bvR ek1wLIe9IsMyIaOEiAN7cw/18+FpzdSW2KHbc0gcu14SwsXqGAzX/3B5PlhAZub/KJZK 3EHtjV5gYQL4Zi5wq4HZy/pyC98mDhyF78Pc3Lybj+5sXrX6IwrTNC3MTTuzhlDhtGSz uiZg== X-Forwarded-Encrypted: i=1; AJvYcCXtExIII7HURoc8JiSkfCAd8WFuAhjgS//DIBGS8OZKOZW7xYvOXg6SAhpGNLOnRU9NRYiNGM+MZRX52yo=@vger.kernel.org X-Gm-Message-State: AOJu0YxtAdXhLDVGiuGU36IvoN+5jK+NMGXnJESiQK6XYXbhpU32gY7N RgTyrScncvOVqUnVH173zh9paOo6gJoYaDDhbNDGbwIL5RMMDQmOu7ps X-Gm-Gg: AZuq6aIeJaRqz+98ZzaYi4HbjllJ+KS3bbkl/Wimr6HwO55TAQT3S1NIxfxuREWEfGe 3V7xf4Bs2jLqYZvSha5iQ1+P3XeznLtXRqEEmbJkWMjYOh53WK4ATOXgvgwIOTanFfaexpkSQ+W BJdqDaQ4t+dIrkNco4z4SW66tHdehlPoSKP/DqEPkCE6hQvQMwm1595B1mP/ifry1cXcXmdlL9T VDs1HaB9VrxbDXCPLaxiKwweYHB2Tduqg12243vwn94mvm9ReqezWp2FBbEZzt+pD6aM92vZJU6 zvlP9+N9FxO9KsrbfhvLbOM76Y8cKaNtRN5I24FIKPs2PXQxQWoPztsR6CchLM4NCtiz6R63vfa i9THOAUE17Kzvs6nXkwzYg7QyBjKsl6wF/HFsOu6A+Lf3jL4skm58Z0QBw7r1SeY0V6xfUG18ak WihupN7gR5fJVnZr9j8pYBr05Y1TavqwoFgAF7nYDkDX3W X-Received: by 2002:a17:902:db09:b0:2a3:bf5f:926b with SMTP id d9443c01a7336-2a8d818b2bemr157393575ad.47.1770084914165; Mon, 02 Feb 2026 18:15:14 -0800 (PST) Received: from twhmp6px (mxsmtp211.mxic.com.tw. [211.75.127.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a88b7f6c7csm163933135ad.98.2026.02.02.18.15.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 18:15:13 -0800 (PST) Received: from hqs-appsw-a2o.mp600.macronix.com (unknown [172.17.236.67]) by twhmp6px (Postfix) with ESMTPS id 2B3B54136071; Tue, 3 Feb 2026 10:15:12 +0800 (CST) From: Cheng Ming Lin To: Miquel Raynal , Vignesh Raghavendra Cc: Richard Weinberger , Tudor Ambarus , Martin Kurbanov , Mikhail Kshevetskiy , Pratyush Yadav , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, alvinzhou@mxic.com.tw, Cheng Ming Lin Subject: [PATCH v4 0/2] mtd: spi-nand: Add support for randomizer feature Date: Tue, 3 Feb 2026 10:13:56 +0800 Message-Id: <20260203021358.693291-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 This patch series introduces randomizer support for SPI NAND devices. Patch 1 adds the hook and initialization logic to the core framework. Patch 2 implements the randomizer setting specifically for Macronix chips (MX35LF/UF series) and allows control via device tree. v4: * Fix a build error in spinand_randomizer_init() where a value was returned from a void function. (Reported by kernel test robot) * Update the return type to int. v3: * Revert the device tree property to the vendor-specific "mxic,randomizer-enable" to strictly follow vendor-specific bindings. * Update the 'set_randomizer' callback signature to accept a boolean 'enable' argument, allowing the feature to be explicitly enabled or disabled. * Switch the implementation to use the standard SET_FEATURE command to modify the Configuration Register (0x10), replacing the previous special program command method. v2: * Create a global NAND DT property Cheng Ming Lin (2): mtd: spi-nand: Add support for randomizer mtd: spi-nand: macronix: Enable randomizer support drivers/mtd/nand/spi/core.c | 23 ++++++++++++++++ drivers/mtd/nand/spi/macronix.c | 47 ++++++++++++++++++++++++++------- include/linux/mtd/spinand.h | 9 +++++++ 3 files changed, 69 insertions(+), 10 deletions(-) -- 2.25.1