From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 4327323AB88 for ; Tue, 9 Dec 2025 08:56:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765270589; cv=none; b=MUj+5oPKJ9QiILB8y2Jxf7gjAlV4c4j8RA5mKiqIfxkThFvYS3ptKilk8K950vihOHz6wKFj8MNBRqeUl40t5sX3s1mS24pEg7Q3cngYUENkzVG73w0ELkXdxeez3ORv8ZrP6tsd+TyAbKPNQI3kd/JZh3vmDD/RkZo5znqFEKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765270589; c=relaxed/simple; bh=opxFEtVFrA+eI14ldKWhyQnRk3eqPP6UuI4RlN1iQyg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=hkbcgdlsdYxepn5I5sBRAzkQ/yj9bXOScA3sNYg99lIFXFzbbTeQhqADX32KeaEWcnJUxWGMp0lu3ymc2rEBrQAyRrak/wlfI5e2wIA6WgcSDqu0LD0V3Csu3E+P01uq2a6ds0v+L12WfVChPWT/+v2LqU5la3Ae1rKSCs0f7eM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=aLgBTntc; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="aLgBTntc" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 518901A205F; Tue, 9 Dec 2025 08:56:17 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 1FC43606E2; Tue, 9 Dec 2025 08:56:17 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 140EB11930273; Tue, 9 Dec 2025 09:56:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1765270576; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=7XAYIy5m4XDHHW42ASw9l4KsGWeIaRiPQXxJHdadqck=; b=aLgBTntcpF+oi1ylbi3o8ina5pzhuWz4nZ7Y+xYF8Ia2Dc8c8g5/oVE3FIC0ePRGB/V8kz 6V6uD5NFsNF48VIQQo39zVK0Va3+CO6irXwg3QWFkaNxZWd0uLsVFXbGu2xa2eX6IwlSYo DqNF643cXw095SK7bthJrmOgW5ebekLcuZfy8yW8yLqhi8ORrv8blPIzkgMCbVcu0epkf2 Gvqbr6rf2KozUO1tU+sjhbLvHPy5gYN0X+W0Y3OaMzWmCjvon2dQLafMJQKmEzYuS71/G0 zvlLjAqjOIuSeiZzMzD/xiKj5rYBV5EFe9RnbWXYrF2e7MXBFhi1pcAYFGKK4w== From: Miquel Raynal To: Ahmed Naseef Cc: Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH v2] mtd: spinand: add support for Dosilicon DS35Q1GA/DS35M1GA In-Reply-To: <20251209071604.36482-1-naseefkm@gmail.com> (Ahmed Naseef's message of "Tue, 9 Dec 2025 11:16:02 +0400") References: <20251209071604.36482-1-naseefkm@gmail.com> User-Agent: mu4e 1.12.7; emacs 30.2 Date: Tue, 09 Dec 2025 09:56:14 +0100 Message-ID: <87o6o8yqxd.fsf@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Hello Ahmed, On 09/12/2025 at 11:16:02 +04, Ahmed Naseef wrote: > Add support for Dosilicon DS35Q1GA (3.3V) and DS35M1GA (1.8V) SPI NAND. > > These are 1Gbit (128MB) devices with: > - 2048 byte pages + 64 byte OOB > - 64 pages per block, 1024 blocks > - On-die 4-bit ECC per 512 byte sector > > The 64-byte OOB area is divided into 4 segments of 16 bytes, with each > segment containing 8 bytes of user data (M2+M1) and 8 bytes of ECC > parity (R1). This provides 30 bytes of usable OOB space after reserving > 2 bytes for the bad block marker. > > Tested on Genexis Platinum 4410 (EcoNet EN751221) by writing known > patterns to OOB and verifying ECC parity placement in R1 regions. > > Datasheet: > https://www.dosilicon.com/resources/SPI%20NAND/DS35X1GAXXX_rev08.pdf > > Signed-off-by: Ahmed Naseef > --- > Changes in v2: > - Rebased on rc1 (updated SPINAND_OP_VARIANTS macros) Thanks for this v2. It overall looks good to me but we are in the middle of the merge window, so when I was saying "at -rc1" I meant "the next one" which will be tagged next Sunday. It is probably fine as-is though, so I'll try to apply the patch and will tell you if there are any conflicts. Thanks, Miqu=C3=A8l