From patchwork Sat Nov 4 10:48:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1859260 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=gO6IfYj0; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=gm1 header.b=poBEMG8e; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SMvW52HC6z1yQ5 for ; Sat, 4 Nov 2023 21:49:21 +1100 (AEDT) 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:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=1MCQ8LkjkUNU9gkFUdPQ/31YHfEUJowDi4OPW41vjIA=; b=gO6IfYj0SXLyEt YZAEdjjpJ2YzhVOsg9ImV3qXIBNSANOUVqJ5eWx8ZDP8nYc/abu9EajYlSGySvK1X/PZlIcvj7u9I /RPXH490U/+txfDiTUb6k05pp1dtAVm5C16dff4epv2n+CIEHHzcjo1z6IHoKCQfjTu+jadERF9Yb dfTCcMSXYRdartpgHHgY6EmvF3hMyOMkrKCMRdM//tvjfz2GH/Xg02pTemU8wPvrUwJ2wqTS+Sg2h nINt/GDOROcCOGWFgHQDHjt0sQDAizLvGPuDvCKq4I+fzagKRk9Vof5LjpsiaHT1Qy7l5t9vAoB9f /HxikfqRUv+YMt5xSGdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qzECe-00DAwg-11; Sat, 04 Nov 2023 10:48:32 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qzECY-00DArD-1c for linux-mtd@lists.infradead.org; Sat, 04 Nov 2023 10:48:28 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 4E169E0008; Sat, 4 Nov 2023 10:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1699094900; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=h9uGhgzyQkVxdisRLm4Yz4Lmc0DMIB+X8qtHYdaJsh0=; b=poBEMG8e3YHfVyEh+zShtDhTLE65wHl+ihdbjWrZow+PG2jH60Kfvc4wWBPJ0t+n5DoOep pkPj6hoJDX4T0/rQsjeaDfFLOGYYQJ2FwvUQYXTr9TvFhj8QnWLMKFkQaKNQRIeDtiy7ut PCtxcp+JzHTG7j1WQ3uaSLIpOY599L9cyrSjOGg6r/ZFW7gM1RVFJxcUuiGK+MVsk7c9mf rZ+sjL+1f96BAWnOZpk2jWH9Xw6mXm/otH3sB99anzpCwOKFEVfaaxL5KLK1ww7URbTC/y dIcH/mAgapH2gbtTeqlpv6xf9rQMwfwXRnM2AASJpQh+YcJmyIG0Zq2J9CKQtg== Date: Sat, 4 Nov 2023 11:48:16 +0100 From: Miquel Raynal To: Richard Weinberger Cc: linux-mtd@lists.infradead.org, Tudor Ambarus , Vignesh Raghavendra , Frieder Schrempf , Michael Walle , Pratyush Yadav Subject: [GIT PULL] mtd: nand: Changes for v6.7 Message-ID: <20231104114816.5438b811@xps-13> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-GND-Sasl: miquel.raynal@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231104_034826_978425_293A3921 X-CRM114-Status: GOOD ( 12.68 ) X-Spam-Score: -0.9 (/) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22bombadil=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__Hello=2C_This_is_the_NAND_PR_for_v6=2E?= =?unknown-8bit?q?7=2E_Thanks=2C_Miqu=C3=A8l_?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=28-0=2E9_points=2C_5=2E0_re?= =?unknown-8bit?q?quired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_0=2E0_RCVD=5FIN=5FMSPIKE=5FH3______RBL=3A_Good_reputation_?= =?unknown-8bit?q?=28+3=29?= =?unknown-8bit?q?_=5B217=2E70=2E183=2E196_listed_in_wl=2Emailspike=2Enet=5D?= =?unknown-8bit?q?_-0=2E7_RCVD=5FIN=5FDNSWL=5FLOW______RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C?= =?unknown-8bit?q?_low_trust?= =?unknown-8bit?q?_=5B217=2E70=2E183=2E196_listed_in_list=2Ednswl=2Eorg=5D?= =?unknown-8bit?q?_-0=2E0_SPF=5FHELO=5FPASS__________SPF=3A_HELO_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_author=27s_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily?= =?unknown-8bit?q?_valid?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_envelope-from_domain?= =?unknown-8bit?q?_0=2E0_RCVD=5FIN=5FMSPIKE=5FWL______Mailspike_good_senders?= X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hello, This is the NAND PR for v6.7. Thanks, Miquèl The following changes since commit 0bb80ecc33a8fb5a682236443c1e740d5c917d1d: Linux 6.6-rc1 (2023-09-10 16:28:41 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git tags/nand/for-6.7 for you to fetch changes up to 5a985960a4dd041c21dbe9956958c1633d2da706: mtd: rawnand: meson: check return value of devm_kasprintf() (2023-10-27 19:43:20 +0200) ---------------------------------------------------------------- The raw NAND subsystem has, as usual, seen a bit of cleanup being done this cycle, typically return values of platform_get_irq() and devm_kasprintf(), plus structure annotations for sanitizers. There is also a better ECC check in the Arasan driver. This comes with smaller misc changes. In the SPI-NAND world there is now support for Foresee F35SQA002G, Winbond W25N and XTX XT26 chips. ---------------------------------------------------------------- Amit Kumar Mahapatra (1): mtd: rawnand: arasan: Include ECC syndrome along with in-band data while checking for ECC failure Andy Shevchenko (1): mtd: rawnand: Remove unused of_gpio.h inclusion Arseniy Krasnov (1): mtd: rawnand: remove 'nand_exit_status_op()' prototype Bruce Suen (1): mtd: spinand: Add support for XTX XT26xxxDxxxxx Christophe JAILLET (1): mtd: rawnand: rockchip: Use struct_size() Kees Cook (2): mtd: rawnand: Annotate struct mtk_nfc_nand_chip with __counted_by mtd: rawnand: cadence: Annotate struct cdns_nand_chip with __counted_by Martin Kurbanov (1): mtd: spinand: add support for FORESEE F35SQA002G Sridharan S N (1): mtd: spinand: winbond: add support for serial NAND flash Uwe Kleine-König (1): mtd: rawnand: sh_flctl: Convert to module_platform_driver() Yi Yang (4): mtd: rawnand: tegra: add missing check for platform_get_irq() mtd: rawnand: omap2: Fix check 0 for platform_get_irq() mtd: rawnand: intel: check return value of devm_kasprintf() mtd: rawnand: meson: check return value of devm_kasprintf() drivers/mtd/nand/raw/arasan-nand-controller.c | 2 +- drivers/mtd/nand/raw/cadence-nand-controller.c | 2 +- drivers/mtd/nand/raw/intel-nand-controller.c | 10 +++++++++ drivers/mtd/nand/raw/internals.h | 1 - drivers/mtd/nand/raw/meson_nand.c | 3 +++ drivers/mtd/nand/raw/mtk_nand.c | 2 +- drivers/mtd/nand/raw/nand_base.c | 1 - drivers/mtd/nand/raw/omap2.c | 8 ++++---- drivers/mtd/nand/raw/rockchip-nand-controller.c | 5 ++--- drivers/mtd/nand/raw/sh_flctl.c | 3 ++- drivers/mtd/nand/raw/tegra_nand.c | 4 ++++ drivers/mtd/nand/raw/xway_nand.c | 1 - drivers/mtd/nand/spi/Makefile | 2 +- drivers/mtd/nand/spi/core.c | 1 + drivers/mtd/nand/spi/foresee.c | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/mtd/nand/spi/winbond.c | 45 ++++++++++++++++++++++++++++++++++++++++ drivers/mtd/nand/spi/xtx.c | 134 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ include/linux/mtd/spinand.h | 1 + 18 files changed, 305 insertions(+), 15 deletions(-) create mode 100644 drivers/mtd/nand/spi/foresee.c