From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09362606A32F for ; Thu, 3 Dec 2026 11:36:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=VYMb4UYM; dkim=fail reason="signature verification failed" (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=RkeDnRsY 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:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=/+BCj4ojES2ppO7hyc20O5xgOyYLpnOF7UPf/nR6Pwc=; b=VYMb4UYMfz6HfvVws52023rvsg jWL3JT0tPJ3tZLGipQ5HczdlGZyQDd1j2aKjqCPFT9tI578n2uvDTCrzKKLqLOuycbgCDoXbKR6wp p5MxFd6l9dA+xVzhRE6MjT63rZh6QstD2lATXIYG6s0OZYboHDXr9guVWx0q2x/eO4FiNOEsAsRtV UeF/nxb2wbC2nK9rujUZyIit8cXrPbXLHhOG4F4rCpHubOgNwnVkjAkorGp+64o1iH6Ki3BIEpPxH ff9M8leew6j6cccY/4eH3dASiU/x1AykGoK8oWnSEIcHtIG5xFSpxLzLCvBwB4gigcl7DTs/WgEjj V/EdhtaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ574-0000000EOxk-40JK; Thu, 03 Dec 2026 11:36:34 +0000 Received: from smtpout-03.galae.net ([185.246.85.4]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ571-0000000EOwy-3984 for linux-mtd@lists.infradead.org; Thu, 03 Dec 2026 11:36:34 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 780B34E41840; Thu, 3 Dec 2026 11:36:27 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 435E8604ED; Thu, 3 Dec 2026 11:36:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 783FE11EA18F7; Thu, 03 Dec 2026 12:36:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796297782; h=from:subject:date:message-id:to:cc:mime-version:content-type: in-reply-to:references; bh=dYwIBCEncQrDfTTlUzWGoie4xOvXtVZbkg5ttPiKjNI=; b=RkeDnRsY8ztvGj5KzGFb2g5yfQD1QZtfRaB4AROxgX3Wg1wW/Akmv1WYNWwf7Aczvy9H78 R1LdNe11zFarQJppp/4UR2KhAnmLlUAMRfJO/TM8xYS7BJS/eWr2CiPN4hc4LdgDNeUJz3 kMfZ/Xv2qOMnCYx1pT6hnJ3tSm5UmVLP0EYGhFt5cMecyRIOUVizVkimxTXGxNigQgG6Wd eOjSGWDJo9To9AsWE74+gqMZEac/ByyiPXIf8v/fwIsS9cw/dpr0tDC+qf08Y5p3t0YIU+ oY72XC31NusYKDatSJA6OHsVurHe9hDTmqYtw515++jJ+XUbptGxbxXGc9IrkA== From: Miquel Raynal To: sashiko-bot@kernel.org Cc: "Pengji Li" , linux-mtd@lists.infradead.org, sashiko-reviews@lists.linux.dev, "Richard Weinberger" , "Vignesh Raghavendra" , "Daniel Palmer" Subject: Re: [RFC PATCH] mtd: spinand: support FS35ND01G-S1Y2 with external ECC In-Reply-To: (sashiko-bot@kernel.org's message of "Tue, 01 Dec 2026 02:44:35 +0000") References: User-Agent: mu4e 1.12.12; emacs 30.2 Date: Thu, 03 Dec 2026 12:36:17 +0100 Message-ID: <87ld66iojy.fsf@bootlin.com> X-Archived-By: MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_033631_927250_CDCE1394 X-CRM114-Status: GOOD ( 12.56 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" X-Spam-Status: No, score=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 01/12/2026 at 02:44:35 GMT, sashiko-bot@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 1 potential > issue to consider: > - [Low] mtd: spinand: foresee: duplicate write/update cache variants for > FS35ND01G > -- > > commit e64d1c9825a2af5d412fa5cb7462af483e0672e1 > Author: Pengji Li > > mtd: spinand: support FS35ND01G-S1Y2 with external ECC > > This commit adds a SPINAND_NO_ON_DIE_ECC flag to reject on-die ECC > initialization when unsupported and adds support for the FORESEE > FS35ND01G-S1Y2 SPI NAND flash using external ECC. > > Link: https://lore.kernel.org/linux-mtd/20210811084924.52293-1-daniel@0x0f.com/ > >> diff --git a/drivers/mtd/nand/spi/foresee.c b/drivers/mtd/nand/spi/foresee.c >> index 5ff18316092cd..90eddade6b47a 100644 >> --- a/drivers/mtd/nand/spi/foresee.c >> +++ b/drivers/mtd/nand/spi/foresee.c >> @@ -94,6 +94,21 @@ static int f35sqb002g_ecc_get_status(struct spinand_device *spinand, u8 status) >> return -EINVAL; >> } >> >> +static SPINAND_OP_VARIANTS(fs35nd01g_read_cache_variants, >> + SPINAND_PAGE_READ_FROM_CACHE_1S_4S_4S_OP(0, 2, NULL, 0, 0), >> + SPINAND_PAGE_READ_FROM_CACHE_1S_1S_4S_OP(0, 1, NULL, 0, 0), >> + SPINAND_PAGE_READ_FROM_CACHE_1S_2S_2S_OP(0, 1, NULL, 0, 0), >> + SPINAND_PAGE_READ_FROM_CACHE_1S_1S_2S_OP(0, 1, NULL, 0, 0), >> + SPINAND_PAGE_READ_FROM_CACHE_1S_1S_1S_OP(0, 1, NULL, 0, 0)); >> + >> +static SPINAND_OP_VARIANTS(fs35nd01g_write_cache_variants, >> + SPINAND_PROG_LOAD_1S_1S_4S_OP(true, 0, NULL, 0), >> + SPINAND_PROG_LOAD_1S_1S_1S_OP(true, 0, NULL, 0)); >> + >> +static SPINAND_OP_VARIANTS(fs35nd01g_update_cache_variants, >> + SPINAND_PROG_LOAD_1S_1S_4S_OP(false, 0, NULL, 0), >> + SPINAND_PROG_LOAD_1S_1S_1S_OP(false, 0, NULL, 0)); > > [Severity: Low] > This isn't a bug, but fs35nd01g_write_cache_variants and > fs35nd01g_update_cache_variants are identical to write_cache_variants and > update_cache_variants already defined at the top of this file. Could the > FS35ND01G-S1Y2 entry reuse write_cache_variants and update_cache_variants > directly? Yes, please. ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/