From patchwork Fri Mar 15 11:21:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1912462 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=PuIAQQ8f; 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=eqWbiQoH; 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 4Tx1zf4xlxz1yWn for ; Fri, 15 Mar 2024 22:21:50 +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=n5210dFc/QQSP/vxQ/Ua4Z7n1vpnmZyMivqTsDtnZ70=; b=PuIAQQ8fxE6eYr FkshL8lnjGfXAxc/MOguJYFuij8B8TCNKNKHZaXpLSdjVnU+mABPU/Oqmxfxwuq6vDTVikF3sB80q SudMYrPl8qOgd6JubcmzvC3jbjvyiucEFzvliRsXC+EmDC2SswJnmM6S3Ak0sSJl2NDDwUEgVHFHN nLpO/kn69xnQhgepWS5+WmJDAAqiAy2K2udir/bHQduz/z3eGHuXriIy0u1yAihjeRgkk46NH98Ix tEStHLbB9gv/eZ5ZN9yP8uFTYnXCpRq7Jr1ozXYFuOrG2ovdmcFSDnZNTZ0ZgC9KOIQo9raKgwkRE ssE/aPnY5He5G75KC9DQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl5d4-000000000iX-1ma3; Fri, 15 Mar 2024 11:21:38 +0000 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl5d1-000000000hl-3155 for linux-mtd@lists.infradead.org; Fri, 15 Mar 2024 11:21:37 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 7AE711BF204; Fri, 15 Mar 2024 11:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1710501691; 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=NmJ4sTuuhjOkhzBsJyjZdxw4gBGBYMjlVzQZFVcZcX0=; b=eqWbiQoHxIpA618gf7vkALp5lLEdTmAFl7IqiKsyHFwpj19Jc1bjod1CMYb7KGgO67ixRe JPlsoCzR+TneKK8nfQr8N65/u28PyzaT82pO+2LTFE0SdAdVZzRSHzsAgYp3ahQrKGRGjl 5xVtGbVZihgjVRSeeSpola0axiI4JBEk8Kxq6P8dHe65wHfzS8HNaJRZ2gx0e+W4I92Jpb 72NYm6fBigU3IWHPkKL7Q25ygLrf0SPH1SFqqg5y7H/nxNHXNtu3AQnRN+R7Ec4QOyuWGq 0N2/qsMYu88eDVyZm9ghZ7gK8jK9zCFASGuy25CnJDFoghEr3QImMVHzD1JsOQ== Date: Fri, 15 Mar 2024 12:21:28 +0100 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.9-rc1 Message-ID: <20240315122128.42375f32@xps-13> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; 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-20240315_042136_282330_350050F3 X-CRM114-Status: GOOD ( 21.66 ) 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_Linus=2C_This_is_the_MTD_PR_for_?= =?unknown-8bit?q?the_opening_v6=2E9-rc_cycle=2E?= =?unknown-8bit?q?_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=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?q?_=5B217=2E70=2E183=2E201_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=2E0_SPF=5FPASS_______________SPF=3A_sender_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_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?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=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from_author=27s?= =?unknown-8bit?q?_domain?= =?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=2E201_listed_in_wl=2Emailspike=2Enet=5D?= =?unknown-8bit?q?_0=2E0_RCVD=5FIN=5FMSPIKE=5FWL______Mailspike_good_senders?= =?unknown-8bit?q?_-0=2E0_T=5FSCC=5FBODY=5FTEXT=5FLINE___No_description_avail?= =?unknown-8bit?q?able=2E?= 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 the opening v6.9-rc cycle. Thanks, Miquèl The following changes since commit 6613476e225e090cc9aad49be7fa504e290dd33d: Linux 6.8-rc1 (2024-01-21 14:11:32 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git tags/mtd/for-6.9 for you to fetch changes up to 09888e973cc9d3615dbab5d178eecb58d8a0b7ab: Merge tag 'nand/for-6.9' into mtd/next (2024-03-15 12:00:45 +0100) ---------------------------------------------------------------- MTD The Carillo Ranch driver has been removed. Top level mtd bindings have received a couple of improvements (references, selects). The ssfdc driver received few minor adjustments. These changes come with the usual load of misc/small improvements and fixes. Raw NAND The main series brought is an update of the Broadcom support to support all BCMBCA SoCs and their specificity (ECC, write protection, configuration straps), plus a few misc fixes and changes in the main driver. Device tree updates are also part of this PR, initially because of a misunderstanding on my side. The STM32_FMC2 controller driver is also upgraded to properly support MP1 and MP25 SoCs. A new compatible is added for an Atmel flavor. Among all these feature changes, there is as well a load of continuous read related fixes, avoiding more corner conditions and clarifying the logic. Finally a few miscellaneous fixes are made to the core, the lpx32xx_mlc, fsl_lbc, Meson and Atmel controller driver, as well as final one in the Hynix vendor driver. SPI-NAND The ESMT support has been extended to match 5 bytes ID to avoid collisions. Winbond support on its side receives support for W25N04KV chips. SPI NOR SPI NOR gets the non uniform erase code cleaned. We stopped using bitmasks for erase types and flags, and instead introduced dedicated members. We then passed the SPI NOR erase map to MTD. Users can now determine the erase regions and make informed decisions on partitions size. An optional interrupt property is now described in the bindings. ---------------------------------------------------------------- Alexander Dahl (1): mtd: nand: raw: atmel: Fix comment in timings preparation Arnd Bergmann (1): mtd: rawnand: lpc32xx_mlc: fix irq handler prototype Arseniy Krasnov (1): mtd: rawnand: meson: fix scrambling mode value in command macro Baruch Siach (1): mtd: maps: physmap-core: fix flash size larger than 32-bit Christophe Kerello (3): dt-bindings: mtd: st,stm32: add MP25 support mtd: rawnand: stm32_fmc2: use dma_get_slave_caps to get DMA max burst mtd: rawnand: stm32_fmc2: add MP25 support Colin Ian King (2): mtd: chips: remove redundant assignment to variable timeo mtd: rawnand: remove redundant assignment to variable bbtblocks David Regan (2): mtd: rawnand: brcmnand: exec_op helper functions return type fixes mtd: rawnand: brcmnand: update log level messages Erick Archer (1): mtd: rawnand: Prefer struct_size over open coded arithmetic Ezra Buehler (2): mtd: spinand: Add support for 5-byte IDs mtd: spinand: esmt: Extend IDs to 5 bytes Josua Mayer (1): dt-bindings: mtd: spi-nor: add optional interrupts property Krzysztof Kozlowski (1): mtd: lpc32xx: use typedef for dma_filter_fn Marcel Hamer (1): mtd: fix minor comment typo for struct mtd_master Markus Elfring (3): mtd: ssfdc: One function call less in ssfdcr_add_mtd() after error detection mtd: ssfdc: Fix indentation in ssfdcr_add_mtd() mtd: ssfdc: Improve a size determination in ssfdcr_add_mtd() Matthew Wilcox (Oracle) (1): mtd: Remove support for Carillo Ranch driver Miquel Raynal (7): Merge tag 'spi-nor/for-6.9' into mtd/next mtd: rawnand: Fix and simplify again the continuous read derivations mtd: rawnand: Add a helper for calculating a page index mtd: rawnand: Ensure all continuous terms are always in sync mtd: rawnand: Constrain even more when continuous reads are enabled mtd: rawnand: Ensure continuous reads are well disabled Merge tag 'nand/for-6.9' into mtd/next Muhammad Usama Anjum (1): mtd: spi-nor: core: correct type of i Nayab Sayed (1): dt-bindings: mtd: update references from partition.txt to mtd.yaml Randy Dunlap (1): mtd: rawnand: hynix: remove @nand_technology kernel-doc description Takahiro Kuwano (4): mtd: spi-nor: core: rework struct spi_nor_erase_region mtd: spi-nor: core: get rid of SNOR_LAST_REGION flag mtd: spi-nor: core: get rid of SNOR_OVERLAID_REGION flag mtd: spi-nor: core: set mtd->eraseregions for non-uniform erase map Tudor Ambarus (1): mtd: flashchip: explicitly include Uwe Kleine-König (1): mtd: rawnand: fsl_elbc: Let .probe retry if local bus is missing Varshini Rajendran (1): dt-bindings: atmel-nand: add microchip,sam9x7-pmecc William Zhang (12): mtd: rawnand: brcmnand: fix style issues dt-bindings: mtd: brcmnand: Updates for bcmbca SoCs dt-bindings: mtd: brcmnand: Add WP pin connection property dt-bindings: mtd: brcmnand: Add ecc strap property ARM: dts: broadcom: bcmbca: Add NAND controller node arm64: dts: broadcom: bcmbca: Add NAND controller node arm64: dts: broadcom: bcmbca: Update router boards mtd: rawnand: brcmnand: Rename bcm63138 nand driver mtd: rawnand: brcmnand: Add BCMBCA read data bus interface mtd: rawnand: brcmnand: Support write protection setting from dts mtd: rawnand: brcmnand: fix sparse warnings mtd: rawnand: brcmnand: Add support for getting ecc setting from strap Zhenhua Huang (1): dt-bindings: mtd: avoid automatically select from mtd.yaml Zhi-Jun You (1): mtd: spinand: winbond: add support for W25N04KV Documentation/devicetree/bindings/mtd/atmel-nand.txt | 1 + Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml | 44 ++++- Documentation/devicetree/bindings/mtd/davinci-nand.txt | 2 +- Documentation/devicetree/bindings/mtd/flctl-nand.txt | 2 +- Documentation/devicetree/bindings/mtd/fsl-upm-nand.txt | 2 +- Documentation/devicetree/bindings/mtd/gpio-control-nand.txt | 2 +- Documentation/devicetree/bindings/mtd/gpmi-nand.yaml | 2 +- Documentation/devicetree/bindings/mtd/hisi504-nand.txt | 2 +- Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml | 3 + Documentation/devicetree/bindings/mtd/mtd.yaml | 2 + .../devicetree/bindings/mtd/nvidia-tegra20-nand.txt | 2 +- Documentation/devicetree/bindings/mtd/orion-nand.txt | 2 +- Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt | 2 +- .../devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml | 25 ++- arch/arm/boot/dts/broadcom/bcm47622.dtsi | 14 ++ arch/arm/boot/dts/broadcom/bcm63138.dtsi | 7 +- arch/arm/boot/dts/broadcom/bcm63148.dtsi | 14 ++ arch/arm/boot/dts/broadcom/bcm63178.dtsi | 14 ++ arch/arm/boot/dts/broadcom/bcm6756.dtsi | 14 ++ arch/arm/boot/dts/broadcom/bcm6846.dtsi | 14 ++ arch/arm/boot/dts/broadcom/bcm6855.dtsi | 14 ++ arch/arm/boot/dts/broadcom/bcm6878.dtsi | 14 ++ arch/arm/boot/dts/broadcom/bcm947622.dts | 10 + arch/arm/boot/dts/broadcom/bcm963138.dts | 10 + arch/arm/boot/dts/broadcom/bcm963138dvt.dts | 14 +- arch/arm/boot/dts/broadcom/bcm963148.dts | 10 + arch/arm/boot/dts/broadcom/bcm963178.dts | 10 + arch/arm/boot/dts/broadcom/bcm96756.dts | 10 + arch/arm/boot/dts/broadcom/bcm96846.dts | 10 + arch/arm/boot/dts/broadcom/bcm96855.dts | 10 + arch/arm/boot/dts/broadcom/bcm96878.dts | 10 + .../boot/dts/broadcom/bcmbca/bcm4906-netgear-r8000p.dts | 5 + .../dts/broadcom/bcmbca/bcm4906-tplink-archer-c2300-v1.dts | 5 + .../boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts | 6 +- arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi | 4 +- arch/arm64/boot/dts/broadcom/bcmbca/bcm4912.dtsi | 14 ++ arch/arm64/boot/dts/broadcom/bcmbca/bcm63146.dtsi | 14 ++ arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi | 14 ++ arch/arm64/boot/dts/broadcom/bcmbca/bcm6813.dtsi | 14 ++ arch/arm64/boot/dts/broadcom/bcmbca/bcm6856.dtsi | 14 ++ arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi | 14 ++ arch/arm64/boot/dts/broadcom/bcmbca/bcm94908.dts | 10 + arch/arm64/boot/dts/broadcom/bcmbca/bcm94912.dts | 10 + arch/arm64/boot/dts/broadcom/bcmbca/bcm963146.dts | 10 + arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts | 10 + arch/arm64/boot/dts/broadcom/bcmbca/bcm96813.dts | 10 + arch/arm64/boot/dts/broadcom/bcmbca/bcm96856.dts | 10 + arch/arm64/boot/dts/broadcom/bcmbca/bcm96858.dts | 10 + drivers/mtd/chips/cfi_cmdset_0002.c | 4 +- drivers/mtd/maps/Kconfig | 7 - drivers/mtd/maps/Makefile | 1 - drivers/mtd/maps/intel_vr_nor.c | 265 -------------------------- drivers/mtd/maps/physmap-core.c | 2 +- drivers/mtd/nand/raw/atmel/nand-controller.c | 2 +- drivers/mtd/nand/raw/brcmnand/Makefile | 2 +- drivers/mtd/nand/raw/brcmnand/bcm63138_nand.c | 99 ---------- drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c | 126 ++++++++++++ drivers/mtd/nand/raw/brcmnand/brcmnand.c | 148 +++++++++++--- drivers/mtd/nand/raw/brcmnand/brcmnand.h | 2 + drivers/mtd/nand/raw/fsl_elbc_nand.c | 3 +- drivers/mtd/nand/raw/lpc32xx_mlc.c | 5 +- drivers/mtd/nand/raw/meson_nand.c | 2 +- drivers/mtd/nand/raw/mtk_nand.c | 2 +- drivers/mtd/nand/raw/nand_base.c | 92 ++++++--- drivers/mtd/nand/raw/nand_bbt.c | 1 - drivers/mtd/nand/raw/nand_hynix.c | 1 - drivers/mtd/nand/raw/stm32_fmc2_nand.c | 83 ++++++-- drivers/mtd/nand/spi/esmt.c | 9 +- drivers/mtd/nand/spi/winbond.c | 12 ++ drivers/mtd/spi-nor/core.c | 187 +++++++++--------- drivers/mtd/spi-nor/core.h | 30 +-- drivers/mtd/spi-nor/debugfs.c | 26 ++- drivers/mtd/spi-nor/sfdp.c | 47 ++--- drivers/mtd/ssfdc.c | 7 +- include/linux/mtd/flashchip.h | 1 + include/linux/mtd/lpc32xx_mlc.h | 2 +- include/linux/mtd/lpc32xx_slc.h | 2 +- include/linux/mtd/mtd.h | 2 +- include/linux/mtd/spinand.h | 2 +- 79 files changed, 982 insertions(+), 658 deletions(-) delete mode 100644 drivers/mtd/maps/intel_vr_nor.c delete mode 100644 drivers/mtd/nand/raw/brcmnand/bcm63138_nand.c create mode 100644 drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c