From patchwork Sat Jul 20 12:38:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1962733 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=apcfnaMb; 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=e9afm9Wa; 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 4WR5gt40CZz1yYm for ; Sat, 20 Jul 2024 22:38:50 +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=HqP9THzoZ/bwv+XqjlSKuk8I9aS0/P9+za2vuxxSp8o=; b=apcfnaMbzfBCGu 67xeLTBUAZR1YHEgZtAIXMPVHtVsMtt9lYGwoDcNNNf6FeFN8HSMW12sLVn6MtCOG7ThZSybFrcj+ fp2+doCR8Dc6SPpSVMAo7ymy1MXWA/WmB/EbOBP21hHYAkzAeioBGl3R/UXeS092n0IM1V+cdwGjE VR+TTDtR/jBSE3FpcbS599chFR7TLGHTx7dC415OZtsHRhIx/LAmk6I9VduaAy40WNAILrQZwrhq3 oJvNRFPKiXwxh9ut72rVZwbUh15M5PpO8xwytlKsQWwm0wiS6TeN3xC1E3FmDgqcIcd2RyWIfNxVR p8hhteufgLkVUDUG+YOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sV9MF-000000056xr-36cl; Sat, 20 Jul 2024 12:38:39 +0000 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sV9MB-000000056xR-1ylS for linux-mtd@lists.infradead.org; Sat, 20 Jul 2024 12:38:37 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id C6A8F40004; Sat, 20 Jul 2024 12:38:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1721479111; 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=EXqe4uCmBSMeMnDxXrxmXb4ytri2O4buSnMP2mBx/F0=; b=e9afm9Wah/VjjPQLLIrvFJmEhtphl+w79O6sY3usR4rpZt/h6SuhKKbggXPJjbKCccmbCg hgzrzarV/wazmt9mDnusOrwXES1quSmXcU+HFcws4CsognI0uv4OrPRxCsUg8Ts3ZV0Xvj o9bcRdlHIDzXOeSwSyxAcrG4iHUEq3gyqWwmCotxhP+W87FmgGy/q3LcvK6aJfUOxZpHSk uAp7x5ay2Yw5nHmW8zNskc91cB9MdVZtQtwUKyg3KHMzllaEbcAm+SO5t92Z2srrgwKgrW RLPKAK/q3+uhMGAkphLkUQR38nxAqd3NEDnE+ZvP0xaCf3+Ud+BtKOcHXAVqyA== Date: Sat, 20 Jul 2024 14:38:26 +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.11 Message-ID: <20240720143826.00dec422@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-20240720_053835_867635_D987B415 X-CRM114-Status: GOOD ( 17.43 ) 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?6=2E11=2E_Thanks=2C_Miqu=C3=A8l_?= =?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?q?_=5B217=2E70=2E183=2E194_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=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from_author=27s?= =?unknown-8bit?q?_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=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=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily_valid?= =?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?= =?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=2E194_listed_in_wl=2Emailspike=2Enet=5D?= =?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 Linus, This is the MTD PR for 6.11. Thanks, Miquèl The following changes since commit 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0: Linux 6.10-rc1 (2024-05-26 15:20:12 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git tags/mtd/for-6.11 for you to fetch changes up to 78a0b13f5744bd270d0c2391973605d9960a402a: Merge tag 'nand/for-6.11' into mtd/next (2024-07-20 14:24:38 +0200) ---------------------------------------------------------------- MTD changes: - Nothing stands out for this merge window, mostly minor fixes, such as module descriptions, the use of debug macros and Makefile improvements. Raw NAND changes; - The Freescale MXC driver has been converted to the newer ->exec_op() interface. The meson driver now supports handling the boot ROM area with very specific ECC needs. Support for the iMX8QXP has been added to the GPMI driver. The lpx32xx driver now can get the DMA channels using DT entries. The Qcom binding has been improved to be more future proof by Rob. And then there is the usual load of misc and minor changes. SPI-NAND changes: - The Macronix vendor driver has been improved to support an extended ID to avoid conflicting with older devices after an ID reuse issue. SPI NOR changes: - Drop support for Xilinx S3AN flashes. These flashes are for the very old Xilinx Spartan 3 FPGAs and they need some awkward code in the core to support. Drop support for these flashes, along with the special handling we needed for them in the core like non-power-of-2 page size handling and the .setup() callback. - Fix regression for old w25q128 flashes without SFDP tables. Commit 83e824a4a595 ("mtd: spi-nor: Correct flags for Winbond w25q128") dropped support for such devices under the assumption that they aren't being used anymore. Users have now surfaced [0] so fix the regression by supporting both kind of devices. - Core cleanups including removal of SPI_NOR_NO_FR flag and simplification of spi_nor_get_flash_info(). [0] https://lore.kernel.org/r/CALxbwRo_-9CaJmt7r7ELgu+vOcgk=xZcGHobnKf=oT2=u4d4aA@mail.gmail.com/ ---------------------------------------------------------------- Andy Shevchenko (2): mtd: cfi: Get rid of redundant 'else' mtd: physmap: Use *-y instead of *-objs in Makefile Arnd Bergmann (1): mtd: make mtd_test.c a separate module Arseniy Krasnov (3): dt-bindings: mtd: amlogic,meson-nand: support fields for boot ROM code mtd: rawnand: meson: refactor use of 'meson_nfc_cmd_access()' mtd: rawnand: meson: read/write access for boot ROM pages Cheng Ming Lin (2): mtd: spinand: macronix: Add support for reading Device ID 2 mtd: spinand: macronix: Add support for serial NAND flash Csókás, Bence (1): mtd: cmdlinepart: Replace `dbg()` macro with `pr_debug()` Dr. David Alan Gilbert (1): mtd: rawnand: cadence: remove unused struct 'ecc_info' Frank Li (2): dt-bindings: mtd: gpmi-nand: Add 'fsl,imx8qxp-gpmi-nand' compatible string mtd: rawnand: gpmi: add 'support_edo_timing' in gpmi_devdata Han Xu (1): mtd: rawnand: gpmi: add iMX8QXP support. Jeff Johnson (1): mtd: add missing MODULE_DESCRIPTION() macros Michael Walle (6): mtd: spi-nor: Remove support for Xilinx S3AN flashes mtd: spi-nor: get rid of non-power-of-2 page size handling mtd: spi-nor: remove .setup() callback mtd: spi-nor: get rid of SPI_NOR_NO_FR mtd: spi-nor: simplify spi_nor_get_flash_info() mtd: spi-nor: winbond: fix w25q128 regression Miquel Raynal (2): Merge tag 'spi-nor/for-6.11' into mtd/next Merge tag 'nand/for-6.11' into mtd/next Piotr Wojtaszczyk (2): mtd: rawnand: lpx32xx: Request DMA channels using DT entries mtd: rawnand: lpx32xx: Fix dma_request_chan() error checks Rob Herring (Arm) (1): dt-bindings: mtd: qcom,nandc: Define properties at top-level Sascha Hauer (3): mtd: rawnand: mxc: separate page read from ecc calc mtd: rawnand: mxc: implement exec_op mtd: rawnand: mxc: support software ECC Wolfram Sang (2): mtd: rawnand: mxc: use 'time_left' variable with wait_for_completion_timeout() mtd: rawnand: intel: use 'time_left' variable with wait_for_completion_timeout() Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml | 18 +++ Documentation/devicetree/bindings/mtd/gpmi-nand.yaml | 22 +++ Documentation/devicetree/bindings/mtd/qcom,nandc.yaml | 38 ++--- drivers/mtd/chips/cfi_cmdset_0020.c | 1 + drivers/mtd/chips/cfi_util.c | 1 + drivers/mtd/maps/Makefile | 11 +- drivers/mtd/maps/map_funcs.c | 1 + drivers/mtd/nand/raw/cadence-nand-controller.c | 5 - drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 20 ++- drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h | 6 +- drivers/mtd/nand/raw/intel-nand-controller.c | 6 +- drivers/mtd/nand/raw/lpc32xx_mlc.c | 26 ++-- drivers/mtd/nand/raw/lpc32xx_slc.c | 26 ++-- drivers/mtd/nand/raw/meson_nand.c | 86 +++++++---- drivers/mtd/nand/raw/mxc_nand.c | 708 +++++++++++++++++++++++++++++++++++++++++++--------------------------------------------- drivers/mtd/nand/spi/macronix.c | 64 ++++++-- drivers/mtd/parsers/brcm_u-boot.c | 1 + drivers/mtd/parsers/cmdlinepart.c | 18 +-- drivers/mtd/parsers/tplink_safeloader.c | 1 + drivers/mtd/spi-nor/Makefile | 1 - drivers/mtd/spi-nor/core.c | 206 ++++++++++---------------- drivers/mtd/spi-nor/core.h | 12 -- drivers/mtd/spi-nor/everspin.c | 19 ++- drivers/mtd/spi-nor/winbond.c | 2 + drivers/mtd/spi-nor/xilinx.c | 169 --------------------- drivers/mtd/tests/Makefile | 34 ++--- drivers/mtd/tests/mtd_test.c | 9 ++ include/linux/mtd/cfi.h | 32 ++-- 28 files changed, 724 insertions(+), 819 deletions(-) delete mode 100644 drivers/mtd/spi-nor/xilinx.c