From patchwork Wed Dec 27 16:40:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1880547 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=1hRUloVe; 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=XHIUEj2o; 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 4T0cpb6FGGz1ydb for ; Thu, 28 Dec 2023 03:41:11 +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=DwU1gHmll70qr+US4qnwrlgts5AON2YkpbHO3Ula1qc=; b=1hRUloVe5dKM+a Xo1XTzF9OE+BJrZVY7r6u7YsASvBKJr5/tm3fipQtzmw/wajLStARjfxK9nALMPnAwNA5XgWWcUPT ymWtBi9EGZlnOThUai2agLxr8mfo/gMzmQR2PvKWoil2Pp8p2ZqYZG3DghAZB4czM6ZmENkwFXLPm ANb9MBF6c3ujDaJARRdVe1GyFoXC8zCflcycxx96Q+LkatTceJlhLgAwQluR41VfnnUK+Xw+w299A VpFDdrOYvMan13ItNzE8+CorSRIf1FRziPbsKyJ8uSWG60AzRXBwevgkmmpQgipgJvKw11Zn/sQ1a ysmWsPvlu49DqkUGThaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rIWxR-00F6WB-0q; Wed, 27 Dec 2023 16:40:37 +0000 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rIWxN-00F6VE-04 for linux-mtd@lists.infradead.org; Wed, 27 Dec 2023 16:40:35 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id DF4C240009; Wed, 27 Dec 2023 16:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1703695226; 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=WV2Dkh4X6V9DETcF8K3WF1QMiYnpkJSaG2LYRTpmYig=; b=XHIUEj2ofv8PqSFwvq9hnXalcBEcZEYyJnwS8hG+vB9cbdwLcB8/uEYHxxxRTZAITpxOK0 TkpQAN/U+eY/6mQTBTar/OO+bOGS53u3mHpugJl2fIfKOP+IFiX1Rjo+U8Rzt4Cs+HMeGe USFcCDSEmtkvOQ5enbywBFS02zQ7UMEcPD42jKfR1ZhpqS25ElLISZFu6gj/FBiw1RdZHy /qN5W8WGaQt0lH/h+PZ2LejSfTI5EXjmsPN2VgYH6j+OS9uuFMIvqktyW8UGzKHRVhS9wW d0o+l/i0j9ghAzi6bZP7N8S91KqulpbVFDp/TgeQytIGls26IgPXGVfQS5GTvA== Date: Wed, 27 Dec 2023 17:40:23 +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 v6.8 Message-ID: <20231227174023.346ec9fb@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-20231227_084033_342193_915EF21E X-CRM114-Status: GOOD ( 16.74 ) 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_A_bit_in_advance=2C_her?= =?unknown-8bit?q?e_is_the_MTD_PR_for_the?= =?unknown-8bit?q?_opening_merge_window_for_v6=2E8-rc1=2E_Thanks=2C_Miqu=C3?= =?unknown-8bit?q?=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?= =?unknown-8bit?q?_low_trust?= =?unknown-8bit?q?_=5B217=2E70=2E183=2E194_listed_in_list=2Ednswl=2Eorg=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_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=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 Linus, A bit in advance, here is the MTD PR for the opening merge window for v6.8-rc1. Thanks, Miquèl The following changes since commit b85ea95d086471afb4ad062012a4d73cd328fa86: Linux 6.7-rc1 (2023-11-12 16:19:07 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git tags/mtd/for-6.8 for you to fetch changes up to 98d4fda8f2d4bc3fb97958d2ef4c90e161a628f2: Merge tag 'nand/for-6.8' into mtd/next (2023-12-22 12:45:52 +0100) ---------------------------------------------------------------- * MTD Apart from preventing the mtdblk to run on top of ftl or ubiblk (which may cause security issues and has no meaning anyway), there are a few misc fixes. * Raw NAND Two meaningful changes this time. The conversion of the brcmnand driver to the ->exec_op() API, this series brought additional changes to the core in order to help controller drivers to handle themselves the WP pin during destructive operations when relevant. There is also a series bringing important fixes to the sequential read feature. As always, there is as well a whole bunch of miscellaneous W=1 fixes, together with a few runtime fixes (double free, timeout value, OOB layout, missing register initialization) and the usual load of remove callbacks turned into void (which led to switch the txx9ndfmc driver to use module_platform_driver()). * SPI NOR SPI NOR comes with die erase support for multi die flashes, with new octal protocols (1-1-8 and 1-8-8) parsed from SFDP and with an updated documentation about what the contributors shall consider when proposing flash additions or updates. Michael Walle stepped out from the reviewer role to maintainer. ---------------------------------------------------------------- Arseniy Krasnov (2): mtd: rawnand: meson: initialize clock register mtd: rawnand: meson: handle OOB buffer according OOB layout Boris Brezillon (1): mtd: rawnand: Add destructive operation David Regan (3): mtd: rawnand: NAND controller write protect mtd: rawnand: brcmnand: pass host struct to bcmnand_ctrl_poll_status mtd: rawnand: brcmnand: exec_op implementation Dinghao Liu (1): mtd: rawnand: diskonchip: fix a potential double free in doc_probe Fabio Estevam (1): mtd: spi-nor: micron-st: Add support for mt25qu01g JaimeLiao (2): mtd: spi-nor: sysfs: hide the flash name if not set mtd: spi-nor: sfdp: get the 1-1-8 and 1-8-8 protocol from SFDP Michael Walle (2): MAINTAINERS: spi-nor: add myself as maintainer MAINTAINERS: change my mail to the kernel.org one Miquel Raynal (11): mtd: rawnand: pl353: Fix kernel doc mtd: rawnand: rockchip: Rename a structure mtd: rawnand: rockchip: Add missing title to a kernel doc comment mtd: ssfdc: Remove an unused variable mtd: maps: vmu-flash: Fix the (mtd core) switch to ref counters mtd: rawnand: Prevent crossing LUN boundaries during sequential reads mtd: rawnand: Fix core interference with sequential reads mtd: rawnand: Prevent sequential reads with on-die ECC engines mtd: rawnand: Clarify conditions to enable continuous reads Merge tag 'spi-nor/for-6.8' into mtd/next Merge tag 'nand/for-6.8' into mtd/next Randy Dunlap (1): mtd: rawnand: s3c2410: fix Excess struct member description kernel-doc warnings Ronald Monthero (1): mtd: rawnand: Increment IFC_TIMEOUT_MSECS for nand controller response Stefan Wahren (1): dt-bindings: mtd: partitions: u-boot: Fix typo Tudor Ambarus (10): mtd: spi-nor: use kernel sized types instead of c99 types docs: mtd: spi-nor: add sections about flash additions and testing docs: mtd: spi-nor: drop obsolete info mtd: spi-nor: add erase die (chip) capability mtd: spi-nor: spansion: enable die erase for multi die flashes mtd: spi-nor: micron-st: enable die erase for multi die flashes mtd: spi-nor: remove NO_CHIP_ERASE flag mtd: spi-nor: print flash ID instead of name mtd: spi-nor: mark the flash name as obsolete mtd: spi-nor: drop superfluous debug prints Uwe Kleine-König (4): mtd: rawnand: brcmnand: Convert to platform remove callback returning void mtd: rawnand: txx9ndfmc: Switch to module_platform_driver() mtd: rawnand: txx9ndfmc: Drop if block with always false condition mtd: rawnand: txx9ndfmc: Convert to platform remove callback returning void ZhaoLong Wang (1): mtd: Fix gluebi NULL pointer dereference caused by ftl notifier Documentation/ABI/testing/sysfs-bus-spi-devices-spi-nor | 3 + Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml | 2 +- Documentation/driver-api/mtd/spi-nor.rst | 262 +++++++++++++++++++++++++++++++++++++++++++++++++++++---------------- MAINTAINERS | 8 +-- drivers/mtd/maps/vmu-flash.c | 2 +- drivers/mtd/mtd_blkdevs.c | 4 +- drivers/mtd/nand/raw/brcmnand/bcm63138_nand.c | 2 +- drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c | 2 +- drivers/mtd/nand/raw/brcmnand/bcma_nand.c | 2 +- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 408 ++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------- drivers/mtd/nand/raw/brcmnand/brcmnand.h | 2 +- drivers/mtd/nand/raw/brcmnand/brcmstb_nand.c | 2 +- drivers/mtd/nand/raw/brcmnand/iproc_nand.c | 2 +- drivers/mtd/nand/raw/diskonchip.c | 10 +-- drivers/mtd/nand/raw/fsl_ifc_nand.c | 2 +- drivers/mtd/nand/raw/meson_nand.c | 8 ++- drivers/mtd/nand/raw/nand_base.c | 99 +++++++++++++++++++++----- drivers/mtd/nand/raw/pl35x-nand-controller.c | 2 +- drivers/mtd/nand/raw/rockchip-nand-controller.c | 7 +- drivers/mtd/nand/raw/s3c2410.c | 2 - drivers/mtd/nand/raw/txx9ndfmc.c | 13 ++-- drivers/mtd/spi-nor/atmel.c | 16 ++--- drivers/mtd/spi-nor/core.c | 170 +++++++++++++++++++++++++-------------------- drivers/mtd/spi-nor/core.h | 24 +++---- drivers/mtd/spi-nor/debugfs.c | 2 +- drivers/mtd/spi-nor/micron-st.c | 59 ++++++++++++++-- drivers/mtd/spi-nor/sfdp.c | 29 ++++++++ drivers/mtd/spi-nor/sfdp.h | 7 ++ drivers/mtd/spi-nor/spansion.c | 4 +- drivers/mtd/spi-nor/sst.c | 6 +- drivers/mtd/spi-nor/swp.c | 25 ++++--- drivers/mtd/spi-nor/sysfs.c | 2 + drivers/mtd/ssfdc.c | 1 - include/linux/mtd/rawnand.h | 15 ++++ 34 files changed, 740 insertions(+), 464 deletions(-)