From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CC3060A263A for ; Tue, 10 Nov 2026 07:44:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Lw2hk9HY; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=WeQV+XV4 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:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=C9Y0yy/vB0hf8b9rSQiZ7DWRHF5mVwxXFpVWlzikR0c=; b=Lw2hk9HYQ1lksucwVCOO4WrN9T 78Lg5hnvfHkB1yv44ZuebWoYudBrNdMMHU0OschkrVLq91TS3oC9JetOsrO+Vc1KKoffKA/ScqivB Jl0t28FQOpuOF+ZyBEo07ACAPLXqZc0CDFMI1pz93DK0GqMpz6O3YYNNge/dkdiQf3CT9RLH02Edc eaYA4McaQRJCqccIh1kFTWNCIzc5rhhrjjRvK82kM0gbaxCXfwWp2ohN17i8w/Oq5+Grmd0DETKFb I3I8Yw+RWuN9Mmh6gccgUeqSrZVN0fvOz4gkTB+ymrSiMzBDThAsmcZIwhvnN2CufIvqRuKafvTZt ibEFNk9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xQgWl-00000002vih-4BAE; Tue, 10 Nov 2026 07:44:24 +0000 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xQgWj-00000002vgg-0Y1N for linux-amlogic@lists.infradead.org; Tue, 10 Nov 2026 07:44:22 +0000 Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-4a451915d8aso984462b6e.2 for ; Mon, 09 Nov 2026 23:44:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794296660; x=1794901460; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=AROSoZM6g0rhbo1ze6sPpGWI/yVIERU0vwNzW3aeH5k=; b=WeQV+XV4YreORYvezLTwvSA0anpLIursMJQEqALm2WQW6OnC2TYghxHVo2NaWUeQbi vnA47vng8LQaCJhDVDHnQRoq23wCMPDPxSw3z5EG8snwy2xJX+U6MvGdIz2jBBoDWKmV bPO/eMsBpKoqKLzk52uHZElABlwte/nMZkjhv0ivlgtlKH0qihJh7UfYfhIgxABnwsy8 fNRboPLbUrjLBPhg9ULIv8Rbeb1nIg2EFI4Z86WITeq/c2BSREl5bc0bVeGLBpJQjVSX +EG32vT2DultzHHclSpT0fS+OiCWviBI1NK1OnGpEvmNFD/wCxdobPyCKPrm5ZKk9+EN 1bWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794296660; x=1794901460; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=AROSoZM6g0rhbo1ze6sPpGWI/yVIERU0vwNzW3aeH5k=; b=tTyyInOb8REDAvK5vBwTBlTsaNcCXMhCsHBDXk/s6FckPBhe44TSpzl0VvlaHaSmPY 9P90RwJ/TVUilrSzdihFsDaQteZycnEaBC42f5yuWcfA5Olvzx/OI5r9B8kpAJLRHEPF aIKPeTe1tMMp/ctLIOPgpbAHVevQg+OxcJtO6doO6iob6K1rTT79vGvfidWQS/h+YADG ivqQ/GmTGFOjuKHhDUyLucMBZ0Qa9ZNCXfpbnYQ3w37jiwMA/ojr78VAHxEDow//Qlsx ACjSCexEDlY96n4hiDghIw4I0lpXXJEXeXQ7NDx8zyOklIidHgPNIdk6CEkF8eA1v8Oh bvwQ== X-Forwarded-Encrypted: i=1; AL+hErGlfu5H/uYg5kLkqRc3Ncpg1whM7/+96/SoGojPKyg7bo/+Rd45rGfvNcBjZABK0ENwY8NAJ/TsX1MUNY4W@lists.infradead.org X-Gm-Message-State: APuU4Z/oZ6j9w8JdwEKdqlBK8XzqiScbOTQH3Uy8jq14AMe7ZX+gnHxv GeB4BVgmuxzQr5weQ0XmRLm28q6tOG/SOaoF2A+mTvFFynq9bD5vFcDX X-Gm-Gg: AYBFou1WKP5KqKk7vpm4ueyWpFGVqBgywGa3E34Zi0Eh1Ra8Gk2clb+3lCZvxO3gZWq NfpPoHjmuiO8YrKb9jXtLc81BDVgchTZFWEmHVneEForivbwXzz6xwvUexbIp84tk/1e6cqjSgF VI882rlZsEgRTDga2JbINtx9YKC/HWsFwq8fGIu21Q0Bkk96UuGe6MFlPmueeG0q1hrbcq3+bjS 1jwm2IlJOWoSN89vb8SNQTEwdF+GPO1PkkDJUiSBSPZFN040zyaWfOnM9LtbzHcVNIbdnVpYv8w XKUq+UWYcDayWZlA9v3vupifkHEUlEr4f2eXgZ1cw0eh81AbjNFRiwGuF4IfVKWkXPBkESnvpNc CwgGxLUHJfOKWbI66NQoB8T7ldVcc8/iwuG1TfGyCYl3kcxTqGsWbM1E6UkaZJdMrlTvIZ3fZPm pC7TEl1cFPYpLK3SOa9DKC9YU/C5hofolBSHL2Jur298dipyRz4JwCFy/kPiV+cXDQ0Az4nLmHp pQTyxz6y+4FoOjYk9dpOx7oxKa6c1prSJas2vM8fZ+lo2Ny88VaWf9/uXixMTzF/MsT5H29S6mA vL3pTeXfvYc1nDV5mSGmEVtatnf/WdPNZrjO2hxRYGYneFuzIJdOe0HQR4q0gt+LPJ4HMIrgmcZ pACO1r4Oa2PSAYT1Zy6w50LBFc6UTTPI9LripO9zAiE6N10ySAIGqwCxuHm4eUwPQCoKtXFr2Hl Cc0u5i8hvDv/drIkvDRkDujbeoRupyavPifW0mh0lxuboRfPMSNJooymIhUJTiEe1pFj4GfROw X-Received: by 2002:a05:6808:e85:b0:4ec:4c7e:37b5 with SMTP id 5614622812f47-5683cc8615cmr1404459b6e.29.1794296659854; Mon, 09 Nov 2026 23:44:19 -0800 (PST) Received: from [127.0.1.1] (174-29-1-49.hlrn.qwest.net. [174.29.1.49]) by smtp.gmail.com with ESMTPSA id 5614622812f47-5690504fdb5sm1522804b6e.3.2026.11.09.23.44.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2026 23:44:19 -0800 (PST) From: James Hilliard Subject: [PATCH v2 00/58] mtd: rawnand: retain chip and controller state across removal Date: Tue, 10 Nov 2026 00:44:03 -0700 Message-Id: <20261110-submit-rawnand-retained-handle-lifetime-v1-v2-0-9137d08f05df@gmail.com> X-Archived-By: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAAAAAAC/5VUzW6cNwx8FWPP/QqKokTJp75HkYP4F3+FvU53N 26CwO9e7iYo4L0VOgngcIackX4czn7a/Xx4fPhxOPnbft5fj3nB3x4O+rSOn33bLe8HBOylAG3 nr/KyX7bT+ue4jrad/LL2o9uWxfbs2/MeftlffHsrGwghNm/qIIds+OXksX+7kf356ec9u/3le rky/Ko4+d9fU8XlZ9nhy7roU2p4fFityFQhYC7QaM5Sq1Kp1obyMiw2uUodtz7/oaR2nmqLLKG pJMEoEY5m0LgLNrIgso8oYGnK4ETLZiuG4L4m8dA5wlZtrtybwkfUEl8NkNtEDK9tGqMmc25AF EsRIBFr/BHVmK86CkUI1FpqmQFIVDBypqQiXRNav1M4xVHWylFKQKsMhL2qkoDVGRhrUdDUjyi ty0brAKZj8tJaQJwa2LC1MJWHzOJ+x0XrhmmtmqmySVszGT0sdS0uah1r9HY/15wz90aLJs6s1 rbarALgyaLGNVZpfucXJntZY1UMK8TW0CGmQeU2eqVZ0IaEx0dUocEWQ314VxrEJYxZmRjUZxo w0NKRu22ki+Kjx8RhU9NOCVTpkM62zsgwWimhdOey9uFTerO6Vuu9iOUmITCzZRqZmxYafpcNZ 4g8SkYVjEpfVytoSOWIZaVnFwu4y0au19RMtEEwNXfsBDIyTFEluC8sHEjzDpUzCC/pZXbgHhV ZZ8nANGcZIggtTS54Rck6+6avL/mmHx9SWSaqOmc4JF23KYzeBHR0s+6YYeYM0OH6ep/28+X19 P32c7yV22P99Unw//kkrv/EBmUUz+0o6fjj88van39PTYdP7+/v/wKo39d0ogQAAA== X-Change-ID: 20261104-submit-rawnand-retained-handle-lifetime-v1-0b4225e5ce0b To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, James Hilliard , Srinivas Kandagatla , Tze Yee Ng , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , driver-core@lists.linux.dev, Yuqiang Sun , Amit Kumar Mahapatra , Luca Ceresoli , Bernhard Frauendienst , "Gustavo A. R. Silva" , Kees Cook , linux-hardening@vger.kernel.org, Arseniy Krasnov , Boris Brezillon , Brian Norris , Jernej Skrabec , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Samuel Holland , Chen-Yu Tsai , David Woodhouse , Thomas Gleixner , Vitaly Wool , David Woodhouse , Russell King , Mike Rapoport , Alexandre Torgue , Christophe Kerello , Maxime Coquelin , Jason Roberts , Boris Brezillon , Michal Simek , Mason Yang , Ramuthevar Vadivel Murugan , Lucas Stach , Dmitry Osipenko , Jonathan Hunter , linux-tegra@vger.kernel.org, Stefan Agner , Thierry Reding , AngeloGioacchino Del Regno , Jorge Ramirez-Ortiz , linux-mediatek@lists.infradead.org, Matthias Brugger , Heiko Stuebner , linux-rockchip@lists.infradead.org, Yifeng Zhao , Alexandre Belloni , Claudiu Beznea , Nicolas Ferre , Keguang Zhang , linux-mips@vger.kernel.org, Shan-Chun Hung , Jacky Huang , Fabio Estevam , Frank Li , imx@lists.linux.dev, Pengutronix Kernel Team , Sascha Hauer , Han Xu , linux-renesas-soc@vger.kernel.org, Jerome Brunet , Kevin Hilman , Liang Yang , linux-amlogic@lists.infradead.org, Martin Blumenstingl , Neil Armstrong , linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam , Broadcom internal kernel review list , Kamal Dasu , Piotr Wojtaszczyk , Vladimir Zapolskiy , Harvey Hunt , Paul Cercueil , Maxim Levitsky X-Mailer: b4 0.15.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261109_234421_234403_5C3D25AD X-CRM114-Status: GOOD ( 15.60 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 An MTD handle can outlive controller unbind. Its metadata and NAND locks must remain valid, including when a writable file closes and calls sync, while further hardware access must be rejected after disconnection. This builds on earlier MTD removal-lifetime work. Commit 19bfa9ebebb5 ("mtd: use refcount to prevent corruption") added MTD reference counting [0], but retaining an MTD reference does not by itself retain the driver-owned allocation containing the master. The 2025 read/unbind discussion also covered raw NAND [1] and highlighted the need to drain active operations before releasing resources [2]. Tze Yee Ng's SPI-NOR series addresses the corresponding SPI-NOR paths [3]. This series adds shared backing-object ownership and applies it to raw-NAND drivers. Introduce an opt-in backing-object lifetime for MTD masters and separate raw-NAND hardware disconnection from final cleanup. Registered MTD nodes, device references and open handles retain the backing chip; nested partitions also retain their parent metadata. Removal notifiers can finish I/O before disconnection drains admitted operations. Hardware resources are then released without waiting for open files to close. Virtual concatenations retain their original hidden components and backing objects across removal. Serialize staging across controllers, publish in DT order after partition registration completes, and release incomplete registrations without disturbing another controller's components. OTP providers retain their callback context through final NVMEM device release while keeping their existing physical-device parent. Add opt-in NVMEM context references to support that ownership. Device release callbacks keep their module loaded until they return. Add an opt-in device-core owner reference so MTD can hand the final module put to built-in code after its callback finishes. Share the chip and controller ownership helpers and convert the raw-NAND controller drivers. Each driver conversion keeps metadata cleanup separate from hardware teardown, including partially published probes. Shared controllers remain allocated until their last retained chip is released. R852 allocates a new chip for each inserted card, and NDFC allocates controller state per binding, so old handles cannot refer to replacement media or a new binding. The series adds the common lifetime support and converts its driver users. It is based on NAND next at 30daaf3e7897 with Tze Yee Ng's module-reference ordering fix [4] and Karl Mehltretter's upstream OTP cleanup fix [6]. The separately posted MTD registration, NAND operation-locking and controller probe/teardown fixes are prerequisites as well; the prerequisite metadata identifies their posted versions. The master-open reference accounting fix is included in the MTD ownership patch because it overlaps the module-reference ordering prerequisite. TLA+ models of retained-handle, controller and OTP ownership, including their assumptions and coverage limits, are available in [5]. [0] https://lore.kernel.org/r/20230620131905.648089-2-alexander.usyskin@intel.com [1] https://lore.kernel.org/r/CAND4H7dz94Gsi_tXSQmLNme9uROnouOUwuCX9BW_+RCc2ZFDqA@mail.gmail.com [2] https://lore.kernel.org/r/mafs0bjs73tbq.fsf@kernel.org [3] https://lore.kernel.org/r/20261022035352.52129-1-tze.yee.ng@altera.com [4] https://lore.kernel.org/r/20261022035352.52129-2-tze.yee.ng@altera.com [5] https://github.com/jameshilliard/linux-h616-nand-tla [6] https://lore.kernel.org/r/20260816163027.10044-1-kmehltretter@gmail.com Assisted-by: Codex:gpt-6-astra Signed-off-by: James Hilliard --- Changes in v2: - Keep the MTD device callback owner pinned through callback return, with the final module put performed by the device core. - Retain virtual-concat components across removal and rebind, serialize staging/publication and unwind incomplete partition registrations. - Balance Tegra's probe-time child-node reference separately from the reference retained for the chip lifetime. - Refresh the prerequisite stack to the separately posted fixes, using the latest QCOM child-probe revision. - Keep the lifetime changes on top of those fixes: preserve QCOM scan before publication, R852 per-card initialization and Intel probe hardware shutdown. - Fold Macronix disconnection handling into the NAND disconnect patch; its operation locking is supplied by the posted prerequisite. - Use Karl Mehltretter's posted OTP cleanup fix as a prerequisite in place of the duplicate preparatory patch. - Keep the NVMEM context callback module pinned until its final callback returns, independently of the provider's consumer owner. - Use the posted fixes for dynamic partition publication and partition-node ownership. Keep master get/put accounting independent of later master registration in the MTD ownership patch. - Propagate disconnection through BBT error recovery without marking the eraseblock bad. - Make suspend of a disconnected, retained NAND device a no-op. - Handle R852 card events during removal while preventing new work from being queued. - Initialize Denali and Atmel cleanup variables at allocation and add the introducing-commit trailers for Orion and MPC5121. - Link to v1: https://patch.msgid.link/20261107-submit-rawnand-retained-handle-lifetime-v1-v1-0-0181ef0cc4c8@gmail.com --- James Hilliard (58): nvmem: retain provider context through final device release driver core: retain the owner of device release callbacks mtd: add opt-in lifetime ownership for backing objects mtd: retain virtual concatenations across component removal mtd: rawnand: separate hardware disconnection from cleanup mtd: rawnand: share retained chip and controller ownership mtd: rawnand: sunxi: retain chip state until the final MTD put mtd: rawnand: plat_nand: retain open-handle state on removal mtd: rawnand: gpio: retain open-handle state on removal mtd: rawnand: stm32_fmc2: retain open-handle state on removal mtd: rawnand: denali: retain chips across controller removal mtd: rawnand: arasan: retain chips across controller removal mtd: rawnand: mxic: retain open-handle state on removal mtd: rawnand: intel: retain open-handle state on removal mtd: rawnand: tegra: retain open-handle state on removal mtd: rawnand: mtk: retain chips across controller removal mtd: rawnand: rockchip: retain chips across controller removal mtd: rawnand: atmel: retain chips across controller removal mtd: rawnand: orion: retain open-handle state on removal mtd: rawnand: socrates: retain open-handle state on removal mtd: rawnand: fsl_upm: retain open-handle state on removal mtd: rawnand: pasemi: retain open-handle state on removal mtd: rawnand: ams-delta: retain open-handle state on removal mtd: rawnand: xway: retain open-handle state on removal mtd: rawnand: hisi504: retain open-handle state on removal mtd: rawnand: vf610: retain open-handle state on removal mtd: rawnand: technologic: retain open-handle state on removal mtd: rawnand: loongson: retain open-handle state on removal mtd: rawnand: ma35d1: retain open-handle state on removal mtd: rawnand: pl35x: retain open-handle state on removal mtd: rawnand: mxc: retain open-handle state on removal mtd: rawnand: fsmc: retain open-handle state on removal mtd: rawnand: gpmi: retain open-handle state on removal mtd: rawnand: omap2: retain open-handle state on removal mtd: rawnand: marvell: retain open-handle state on removal mtd: rawnand: renesas: retain open-handle state on removal mtd: rawnand: meson: retain open-handle state on removal mtd: rawnand: cadence: retain open-handle state on removal mtd: rawnand: qcom: retain open-handle state on removal mtd: rawnand: cafe: retain open-handle state on removal mtd: rawnand: brcmnand: retain open-handle state on removal mtd: rawnand: au1550nd: retain chip state across removal mtd: rawnand: sharpsl: retain chip state across removal mtd: rawnand: davinci: retain chip state across removal mtd: rawnand: sh_flctl: retain chip state across removal mtd: rawnand: lpc32xx_slc: retain chip state across removal mtd: rawnand: lpc32xx_mlc: retain chip state across removal mtd: rawnand: ndfc: retain chip state across removal mtd: rawnand: txx9ndfmc: retain chip state across removal mtd: rawnand: ingenic: retain chip state across removal mtd: rawnand: mpc5121: retain chip state across removal mtd: rawnand: bcm47xxnflash: retain chip state across removal mtd: rawnand: fsl_elbc: retain chip state across removal mtd: rawnand: fsl_ifc: retain chip state across removal mtd: rawnand: r852: retain chip state across removal mtd: rawnand: nandsim: retain chip state across removal mtd: rawnand: cs553x: retain chip state across removal mtd: rawnand: diskonchip: retain chip state across removal drivers/base/core.c | 9 + drivers/mtd/mtd_virt_concat.c | 513 ++++++++++----------- drivers/mtd/mtdcore.c | 199 ++++++-- drivers/mtd/mtdcore.h | 3 + drivers/mtd/mtdpart.c | 14 +- drivers/mtd/nand/raw/Makefile | 1 + drivers/mtd/nand/raw/ams-delta.c | 29 +- drivers/mtd/nand/raw/arasan-nand-controller.c | 57 ++- drivers/mtd/nand/raw/atmel/nand-controller.c | 59 ++- drivers/mtd/nand/raw/au1550nd.c | 26 +- drivers/mtd/nand/raw/bcm47xxnflash/main.c | 23 +- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 72 ++- drivers/mtd/nand/raw/cadence-nand-controller.c | 60 ++- drivers/mtd/nand/raw/cafe_nand.c | 37 +- drivers/mtd/nand/raw/cs553x_nand.c | 46 +- drivers/mtd/nand/raw/davinci_nand.c | 29 +- drivers/mtd/nand/raw/denali.c | 31 +- drivers/mtd/nand/raw/denali_dt.c | 21 +- drivers/mtd/nand/raw/denali_pci.c | 15 +- drivers/mtd/nand/raw/diskonchip.c | 21 +- drivers/mtd/nand/raw/fsl_elbc_nand.c | 68 ++- drivers/mtd/nand/raw/fsl_ifc_nand.c | 58 ++- drivers/mtd/nand/raw/fsl_upm.c | 23 +- drivers/mtd/nand/raw/fsmc_nand.c | 22 +- drivers/mtd/nand/raw/gpio.c | 21 +- drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 22 +- drivers/mtd/nand/raw/hisi504_nand.c | 23 +- drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c | 49 +- drivers/mtd/nand/raw/intel-nand-controller.c | 23 +- drivers/mtd/nand/raw/internals.h | 2 +- drivers/mtd/nand/raw/loongson-nand-controller.c | 23 +- drivers/mtd/nand/raw/lpc32xx_mlc.c | 26 +- drivers/mtd/nand/raw/lpc32xx_slc.c | 26 +- drivers/mtd/nand/raw/marvell_nand.c | 54 ++- drivers/mtd/nand/raw/meson_nand.c | 55 ++- drivers/mtd/nand/raw/mpc5121_nfc.c | 29 +- drivers/mtd/nand/raw/mtk_nand.c | 44 +- drivers/mtd/nand/raw/mxc_nand.c | 24 +- drivers/mtd/nand/raw/mxic_nand.c | 26 +- drivers/mtd/nand/raw/nand_base.c | 76 ++- drivers/mtd/nand/raw/nand_bbt.c | 24 +- drivers/mtd/nand/raw/nand_lifetime.c | 118 +++++ drivers/mtd/nand/raw/nand_macronix.c | 4 +- drivers/mtd/nand/raw/nandsim.c | 24 +- drivers/mtd/nand/raw/ndfc.c | 37 +- .../mtd/nand/raw/nuvoton-ma35d1-nand-controller.c | 44 +- drivers/mtd/nand/raw/omap2.c | 45 +- drivers/mtd/nand/raw/orion_nand.c | 27 +- drivers/mtd/nand/raw/pasemi_nand.c | 25 +- drivers/mtd/nand/raw/pl35x-nand-controller.c | 46 +- drivers/mtd/nand/raw/plat_nand.c | 24 +- drivers/mtd/nand/raw/qcom_nandc.c | 46 +- drivers/mtd/nand/raw/r852.c | 114 +++-- drivers/mtd/nand/raw/r852.h | 1 + drivers/mtd/nand/raw/renesas-nand-controller.c | 45 +- drivers/mtd/nand/raw/rockchip-nand-controller.c | 49 +- drivers/mtd/nand/raw/sh_flctl.c | 25 +- drivers/mtd/nand/raw/sharpsl.c | 25 +- drivers/mtd/nand/raw/sm_common.c | 15 +- drivers/mtd/nand/raw/sm_common.h | 2 +- drivers/mtd/nand/raw/socrates_nand.c | 22 +- drivers/mtd/nand/raw/stm32_fmc2_nand.c | 22 +- drivers/mtd/nand/raw/sunxi_nand.c | 59 ++- drivers/mtd/nand/raw/technologic-nand-controller.c | 25 +- drivers/mtd/nand/raw/tegra_nand.c | 39 +- drivers/mtd/nand/raw/txx9ndfmc.c | 42 +- drivers/mtd/nand/raw/vf610_nfc.c | 22 +- drivers/mtd/nand/raw/xway_nand.c | 27 +- drivers/nvmem/core.c | 18 +- drivers/nvmem/internals.h | 2 + include/linux/device.h | 4 + include/linux/mtd/concat.h | 18 +- include/linux/mtd/mtd.h | 16 + include/linux/mtd/rawnand.h | 21 +- include/linux/nvmem-provider.h | 12 + 75 files changed, 2240 insertions(+), 808 deletions(-) --- base-commit: 30daaf3e7897b4a8d9b72e5b0c86dd6e2a4d7d85 change-id: 20261104-submit-rawnand-retained-handle-lifetime-v1-0b4225e5ce0b prerequisite-patch-id: a51b9cb4077105499133c413d58c7ad21d973b38 prerequisite-patch-id: b3679cda4dcb45ce7712bffe2dd0576b254df44d prerequisite-patch-id: 07b5c70e44ad951d20eea9478c98fda35ec765c0 prerequisite-patch-id: abea50275922fe359d72ca4de5cbc211b04bbd57 prerequisite-patch-id: 57776b214ffb0331319f024412f21d35e4ca9056 prerequisite-patch-id: 09be2baaffe1f053704263cc4b0d39f2faa4f49c prerequisite-patch-id: c3ad85600dc897ac310be450d8daa2275fb91ee6 prerequisite-patch-id: 4a85600553ddcc7db5a9537efd905a71cd623f65 prerequisite-patch-id: 579990ee4a49297efc5a593b00efb9cd73fa15e8 prerequisite-patch-id: 2ee61a8a32fd147d52e0f9d03758634912d8bfef prerequisite-patch-id: 1487df8ce8e6c48471fd77c7470ce9de582dfe3c prerequisite-patch-id: 5ecbe86f928d9c5c0bf2cb6065c5672708511fc4 prerequisite-patch-id: ac68e9b65d3aa5661bd7ac0f2e77dcf5c75fcfe0 prerequisite-patch-id: e70f0f0c4d430d416a3ad848b37ffad16bd7df07 prerequisite-patch-id: 05adcddbc50f745ee2640b8c21f3bf76a217f249 prerequisite-patch-id: 0b60b7ab6196076f327c919be5e7b8bb2051ee12 Best regards, -- James Hilliard _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic