From patchwork Sun Sep 15 10:53:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1985855 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=kDP5ybRV; 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=B1pnSQvQ; 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 4X64fj53rYz1y1g for ; Sun, 15 Sep 2024 20:54:05 +1000 (AEST) 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=I1r1ZbxKTeRNoPAwh2cYmXZxoJLEJf8GamqsxT/mesQ=; b=kDP5ybRVdE7XMy YfxkbQirxVAaDu3S3lH83Zzc49cLw8GuJcit2QaBHJsasc9iWVoYofFTSzRzbF1VAosVlsPu07tAj bWyve+JjVFMZaBaDn8nQg83wD0RnIBoD8Aewr2nXYW/juL3vD+vkxl5SXhyOeHl8jDT/gAgM3KtA/ 1/KMgs+NOR6ZF6IjihqDo+sSlZOykCJv7ylCUoa9oQXoFJPHRRPNvFryBZUMvb69s73AjO47lROjY oSNBRpHsM/LjgQS3tY1Pghef5KARexg69AmsJpMU61PffCNrTSHrVuWtewEEJ9F9pPPq1oJvzCLWl KpezeDFPpsWA+ZXh++Rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1spmt8-00000001zf3-49rj; Sun, 15 Sep 2024 10:53:54 +0000 Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1spmt5-00000001zeG-00hg for linux-mtd@lists.infradead.org; Sun, 15 Sep 2024 10:53:53 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 5E641C0002; Sun, 15 Sep 2024 10:53:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1726397628; 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=9Kqw1C0q7Av2ujK9VWUkigU4yK9rhKQmLHREq3gViJY=; b=B1pnSQvQrQLQQCtND4+Jcx92VNUWWrfVCf3sUMgKV039WpKs7ajeWsfulJ7FBA7o1/uvxm vP/3U0lnGJrzUyCw1BRD8+/8VHOgZAn5VsI8LXLsAPaeNqACZw6S2FTyb+QC03brUbDL5L RNkeHxiNZpKVz5X4OIUJ7ArlgV7GNwoZKo5faalpA3OwZGa6T9OO3MBlIvgyEvlg6CG3gc ZRWBC7NWmkQhDpRmr2/vDrdARdGj5qXAzpSZf/mDBYAvsHTgE9d5kD6urbH76TbgJrufOB 5wEn7lgoJS1XZnYQtEIKEn6xDWlxWquyskYF9jA9gn4Wv3vWCfM9fxH2NR2O5g== Date: Sun, 15 Sep 2024 12:53:44 +0200 From: Miquel Raynal To: Linus Torvalds Cc: linux-mtd@lists.infradead.org, Richard Weinberger , Tudor Ambarus , Vignesh Raghavendra , Frieder Schrempf , Michael Walle , Pratyush Yadav , linux-kernel@vger.kernel.org Subject: [GIT PULL] mtd: Changes for 6.12-rc1 Message-ID: <20240915125344.5a449216@xps-13> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; 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-20240915_035351_354970_6F32E708 X-CRM114-Status: GOOD ( 18.18 ) X-Spam-Score: -2.8 (--) 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_Linus=2C_This_is_the_MTD_PR_for_?= =?unknown-8bit?q?v6=2E12-rc1=2E_Thanks=2C_Miqu=C3=A8l?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=28-2=2E8_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=2E7_RCVD=5FIN=5FDNSWL=5FLOW______RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C_low?= =?unknown-8bit?q?_trust?= =?unknown-8bit?b?IFsyMDAxOjRiOTg6ZGM0Ojg6MDowOjA6MjI2IGxpc3RlZCBpbl0=?= =?unknown-8bit?b?IFtsaXN0LmRuc3dsLm9yZ10=?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E0_SPF=5FHELO=5FPASS__________SPF=3A_HELO_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily_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=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from_author=27s?= =?unknown-8bit?q?_domain?= =?unknown-8bit?q?_-1=2E9_BAYES=5F00_______________BODY=3A_Bayes_spam_probabi?= =?unknown-8bit?q?lity_is_0_to_1=25?= =?unknown-8bit?q?_=5Bscore=3A_0=2E0000=5D?= 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 Linus, This is the MTD PR for v6.12-rc1. Thanks, Miquèl The following changes since commit 8400291e289ee6b2bf9779ff1c83a291501f017b: Linux 6.11-rc1 (2024-07-28 14:19:55 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git tags/mtd/for-6.12 for you to fetch changes up to 869acb874f2b61c34063b677c2bd29595bf446a1: Merge tag 'nand/for-6.12' into mtd/next (2024-09-15 12:38:22 +0200) ---------------------------------------------------------------- * MTD changes No particularly important patchset this cycle, but we have a few usual improvements: like using a better/more recent helper or checking a return value. * Raw NAND changes The use of for_each_child_of_node_scoped() has been spread into the subsystem drivers. Aside from that, a couple of exit path have been fixed (mtk, denali), the TI GPMC bindings have been enhanced to comply with up-to-date partition descriptions and as always there is a load of small and misc fixes. * SPI-NAND changes The most impacting series this cycle is bringing support for continuous reads in the SPI-NAND subsystem. This is a feature already merged in the raw NAND subsystem which allows optimizing the internal fetch times in the chip while reading sequential pages within an eraseblock. For now only Macronix NANDs benefit from this feature. While we are talking about Macronix, some of their chip need an explicit action for selecting a different plane, and support for it has also been brought. The bitflip threshold has also been set to the same arbitrary level as in the raw NAND subsystem to optimize wear leveling decisions, and finally support for a new Winbond chip has been added. * SPI NOR changes Notable changes: - Add Write Protect support for N25Q064A. - New flash support for Zetta ZD25Q128C and Spansion S28HS256T. - Fix a NULL dereference in probe path for flashes without a name. The probe path tries to access the name without checking its existence first. S28HS256T is the first flash to define its entry without a name, uncovering this issue. ---------------------------------------------------------------- Alexander Dahl (1): mtd: rawnand: atmel: Add message on DMA usage Bartosz Golaszewski (1): mtd: rawnand: davinci: make platform_data private Brian Norris (1): mtd: spi-nor: micron-st: Add n25q064a WP support Charles Han (1): mtd: powernv: Add check devm_kasprintf() returned value Chen Ridong (1): mtd: rawnand: denali: Fix missing pci_release_regions in probe and remove Cheng Ming Lin (2): mtd: spinand: Add support for setting plane select bits mtd: spinand: macronix: Flag parts needing explicit plane select Colin Ian King (1): mtd: parsers: bcm47xxpart: make read-only array possible_nvram_sizes static const Csókás, Bence (1): mtd: spi-nor: sst: Factor out common write operation to `sst_nor_write_data()` Daniel Golle (1): mtd: spinand: set bitflip_threshold to 75% of ECC strength Jinjie Ruan (11): mtd: rawnand: denali: Use the devm_clk_get_enabled() helper function mtd: rawnand: arasan: Use for_each_child_of_node_scoped() mtd: rawnand: cadence: Use for_each_child_of_node_scoped() mtd: rawnand: pl353: Use for_each_child_of_node_scoped() mtd: rawnand: marvell: drm/rockchip: Use for_each_child_of_node_scoped() mtd: rawnand: rockchip: Use for_each_child_of_node_scoped() mtd: rawnand: meson: Use for_each_child_of_node_scoped() mtd: rawnand: mtk: Use for_each_child_of_node_scoped() mtd: rawnand: renesas: Use for_each_child_of_node_scoped() mtd: rawnand: stm32_fmc2: Use for_each_child_of_node_scoped() mtd: rawnand: sunxi: Use for_each_child_of_node_scoped() Michael Walle (2): mtd: spi-nor: winbond: add Zetta ZD25Q128C support mtd: spi-nor: fix flash probing Miquel Raynal (14): mtd: nand: Rename the NAND IO iteration helper mtd: nand: Introduce a block iterator mtd: spi-nand: Isolate the MTD read logic in a helper mtd: spi-nand: Add continuous read support mtd: spi-nand: Expose spinand_write_reg_op() mtd: spi-nand: macronix: Fix helper name mtd: spi-nand: macronix: Extract the bitflip retrieval logic mtd: spi-nand: macronix: Add a possible bitflip status flag mtd: spi-nand: macronix: Continuous read support mtd: rawnand: meson: Fix typo in function name mtd: rawnand: mtk: Factorize out the logic cleaning mtk chips mtd: rawnand: mtk: Fix init error path Merge tag 'spi-nor/for-6.12' into mtd/next Merge tag 'nand/for-6.12' into mtd/next Mirsad Todorovac (1): mtd: slram: insert break after errors in parsing the map Rob Herring (Arm) (1): mtd: Use of_property_read_bool() Robert Marko (1): mtd: spinand: winbond: add support for W25N01KV Roger Quadros (1): dt-bindings: mtd: ti, gpmc-nand: support partitions node Takahiro Kuwano (1): mtd: spi-nor: spansion: Add support for S28HS256T Yan Zhen (1): mtd: concat: Use kmemdup_array instead of kmemdup for multiple allocation Documentation/devicetree/bindings/mtd/ti,gpmc-nand.yaml | 5 +- drivers/mtd/devices/powernv_flash.c | 3 + drivers/mtd/devices/slram.c | 2 + drivers/mtd/mtdconcat.c | 2 +- drivers/mtd/nand/raw/arasan-nand-controller.c | 5 +- drivers/mtd/nand/raw/atmel/nand-controller.c | 5 +- drivers/mtd/nand/raw/cadence-nand-controller.c | 4 +- drivers/mtd/nand/raw/davinci_nand.c | 70 ++++++++++- drivers/mtd/nand/raw/denali_dt.c | 29 +---- drivers/mtd/nand/raw/denali_pci.c | 11 +- drivers/mtd/nand/raw/marvell_nand.c | 12 +- drivers/mtd/nand/raw/meson_nand.c | 10 +- drivers/mtd/nand/raw/mtk_nand.c | 36 +++--- drivers/mtd/nand/raw/pl35x-nand-controller.c | 5 +- drivers/mtd/nand/raw/renesas-nand-controller.c | 12 +- drivers/mtd/nand/raw/rockchip-nand-controller.c | 5 +- drivers/mtd/nand/raw/stm32_fmc2_nand.c | 7 +- drivers/mtd/nand/raw/sunxi_nand.c | 4 +- drivers/mtd/nand/spi/core.c | 223 ++++++++++++++++++++++++++++++++---- drivers/mtd/nand/spi/macronix.c | 146 +++++++++++++++++------ drivers/mtd/nand/spi/winbond.c | 26 +++++ drivers/mtd/parsers/bcm47xxpart.c | 2 +- drivers/mtd/parsers/ofpart_core.c | 4 +- drivers/mtd/spi-nor/core.c | 3 +- drivers/mtd/spi-nor/micron-st.c | 2 + drivers/mtd/spi-nor/spansion.c | 4 + drivers/mtd/spi-nor/sst.c | 39 +++---- drivers/mtd/spi-nor/winbond.c | 26 +++++ include/linux/mtd/nand.h | 90 +++++++++++++-- include/linux/mtd/spinand.h | 19 +++ include/linux/platform_data/mtd-davinci-aemif.h | 36 ------ include/linux/platform_data/mtd-davinci.h | 88 -------------- 32 files changed, 621 insertions(+), 314 deletions(-) delete mode 100644 include/linux/platform_data/mtd-davinci-aemif.h delete mode 100644 include/linux/platform_data/mtd-davinci.h