From patchwork Fri Sep 3 09:49:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1524181 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=YCOmLYAO; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H1CjX6Dymz9sRf for ; Fri, 3 Sep 2021 19:51:12 +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=Jl/ddlbssn29aKXcuGTorg7QvbEMxlPW/8HM4Ak/W8U=; b=YCOmLYAOCpgE9C +4+MhqdGaepVshNaW+tIW6gfTe55Q9iFZmpCL06kOgKRtcuWDrJKgDyOIe98Ratd2jYRq5xKH96Yg dv4r12PtC8nsM9gSDEJkBlOYXgE3wzd+HM3IvT51LvbI+6h1ex2MZKTMoJul1+X4pvJ9ioM/Gpjy1 BJ9Jy1NuY57dla0E7PEa+Lsypr1sgDrKsZbcgd6YR9oM8DQGD7RShr+5u8V+ZnyJCeJJN3tGK7XeP muwdPh6JUytRCWJnVxbOR7wPKO3vxa5jwp4DoxZ1ifMsD2yhNovAbRDiAlKVYTuXBLZuLH7I3MyNV DkEf4HxmeD05OJ2qAyPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mM5pb-00BYeX-Ew; Fri, 03 Sep 2021 09:49:55 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mM5pY-00BYco-6e for linux-mtd@lists.infradead.org; Fri, 03 Sep 2021 09:49:54 +0000 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id EB8181C000C; Fri, 3 Sep 2021 09:49:46 +0000 (UTC) Date: Fri, 3 Sep 2021 11:49:46 +0200 From: Miquel Raynal To: Linus Torvalds Cc: linux-mtd@lists.infradead.org, Richard Weinberger , Tudor Ambarus , Vignesh Raghavendra , Frieder Schrempf , linux-kernel@vger.kernel.org Subject: [GIT PULL] mtd: Changes for 5.15 Message-ID: <20210903114946.3f874e6e@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210903_024952_548004_7E31A3C4 X-CRM114-Status: GOOD ( 16.51 ) X-Spam-Score: -0.0 (/) 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?5=2E15=2E_Thanks=2C_Miqu=C3=A8l_?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=28-0=2E0_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=2E0_RCVD=5FIN=5FDNSWL=5FNONE_____RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C?= =?unknown-8bit?q?_no_trust?= =?unknown-8bit?q?_=5B217=2E70=2E183=2E197_listed_in_list=2Ednswl=2Eorg=5D?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_-0=2E0_RCVD=5FIN=5FMSPIKE=5FH2______RBL=3A_Average_reputat?= =?unknown-8bit?q?ion_=28+2=29?= =?unknown-8bit?q?_=5B217=2E70=2E183=2E197_listed_in_wl=2Emailspike=2Enet=5D?= =?unknown-8bit?q?_0=2E0_SPF=5FHELO=5FNONE__________SPF=3A_HELO_does_not_publ?= =?unknown-8bit?q?ish_an_SPF_Record?= 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 5.15. Thanks, Miquèl The following changes since commit e73f0f0ee7541171d89f2e2491130c7771ba58d3: Linux 5.14-rc1 (2021-07-11 15:07:40 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git tags/mtd/for-5.15 for you to fetch changes up to c1fe77e42440d2cad76055df6fb58caabf622d51: Merge tag 'nand/for-5.15' into mtd/next (2021-09-03 00:04:16 +0200) ---------------------------------------------------------------- MTD changes: * blkdevs: - Simplify the refcounting in blktrans_{open, release} - Simplify blktrans_getgeo - Remove blktrans_ref_mutex - Simplify blktrans_dev_get - Use lockdep_assert_held - Don't hold del_mtd_blktrans_dev in blktrans_{open, release} * ftl: - Don't cast away the type when calling add_mtd_blktrans_dev - Don't cast away the type when calling add_mtd_blktrans_dev - Use container_of() rather than cast - Fix use-after-free - Add discard support - Allow use of MTD_RAM for testing purposes * concat: - Check _read, _write callbacks existence before assignment - Judge callback existence based on the master * maps: - Maps: remove dead MTD map driver for PMC-Sierra MSP boards * mtdblock: - Warn if added for a NAND device - Add comment about UBI block devices - Update old JFFS2 mention in Kconfig * partitions: - Redboot: convert to YAML NAND core changes: * Repair Miquel Raynal's email address in MAINTAINERS * Fix a couple of spelling mistakes in Kconfig * bbt: Skip bad blocks when searching for the BBT in NAND * Remove never changed ret variable Raw NAND changes: * cafe: Fix a resource leak in the error handling path of 'cafe_nand_probe()' * intel: Fix error handling in probe * omap: Fix kernel doc warning on 'calcuate' typo * gpmc: Fix the ECC bytes vs. OOB bytes equation SPI-NAND core changes: * Properly fill the OOB area. * Fix comment SPI-NAND drivers changes: * macronix: Add Quad support for serial NAND flash ---------------------------------------------------------------- Christoph Hellwig (8): mtd_blkdevs: don't hold del_mtd_blktrans_dev in blktrans_{open, release} mtd_blkdevs: use lockdep_assert_held mtd/ftl: don't cast away the type when calling add_mtd_blktrans_dev mtd/rfd_ftl: don't cast away the type when calling add_mtd_blktrans_dev mtd_blkdevs: simplify blktrans_dev_get mtd_blkdevs: remove blktrans_ref_mutex mtd_blkdevs: simplify blktrans_getgeo mtd_blkdevs: simplify the refcounting in blktrans_{open, release} Christophe JAILLET (1): mtd: rawnand: cafe: Fix a resource leak in the error handling path of 'cafe_nand_probe()' Colin Ian King (1): mtd: rawnand: Fix a couple of spelling mistakes in Kconfig Corentin Labbe (1): dt_bindings: mtd: partitions: redboot: convert to YAML Daniel Palmer (1): mtd: spinand: core: Properly fill the OOB area. Evgeny Novikov (1): mtd: rawnand: intel: Fix error handling in probe Ezequiel Garcia (3): mtdblock: Update old JFFS2 mention in Kconfig mtdblock: Add comment about UBI block devices mtdblock: Warn if added for a NAND device Jaime Liao (1): mtd: spinand: macronix: Add Quad support for serial NAND flash Jason Wang (1): mtd: rawnand: remove never changed ret variable Lukas Bulwahn (2): MAINTAINERS: repair Miquel Raynal's email address mtd: maps: remove dead MTD map driver for PMC-Sierra MSP boards Miquel Raynal (3): dt-bindings: mtd: gpmc: Fix the ECC bytes vs. OOB bytes equation mtd: spinand: Fix comment Merge tag 'nand/for-5.15' into mtd/next Sean Young (4): mtd: rfd_ftl: allow use of MTD_RAM for testing purposes mtd: rfd_ftl: add discard support mtd: rfd_ftl: fix use-after-free mtd: rfd_ftl: use container_of() rather than cast Stefan Riedmueller (1): mtd: rawnand: nand_bbt: Skip bad blocks when searching for the BBT in NAND Vladimir Molokov (1): mtd: rawnand: omap: Fix kernel doc warning on 'calcuate' typo Zhihao Cheng (2): mtd: mtdconcat: Judge callback existence based on the master mtd: mtdconcat: Check _read, _write callbacks existence before assignment Documentation/devicetree/bindings/mtd/gpmc-nand.txt | 2 +- Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt | 27 ---- Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml | 42 ++++++ MAINTAINERS | 4 +- drivers/mtd/Kconfig | 10 +- drivers/mtd/ftl.c | 2 +- drivers/mtd/maps/Kconfig | 23 ---- drivers/mtd/maps/Makefile | 1 - drivers/mtd/maps/pmcmsp-flash.c | 227 ------------------------------- drivers/mtd/mtd_blkdevs.c | 60 +------- drivers/mtd/mtdblock.c | 4 + drivers/mtd/mtdblock_ro.c | 4 + drivers/mtd/mtdconcat.c | 33 +++-- drivers/mtd/nand/raw/Kconfig | 4 +- drivers/mtd/nand/raw/cafe_nand.c | 4 +- drivers/mtd/nand/raw/intel-nand-controller.c | 27 ++-- drivers/mtd/nand/raw/meson_nand.c | 4 +- drivers/mtd/nand/raw/nand_bbt.c | 33 +++++ drivers/mtd/nand/raw/omap2.c | 2 +- drivers/mtd/nand/spi/core.c | 4 +- drivers/mtd/nand/spi/macronix.c | 16 +-- drivers/mtd/rfd_ftl.c | 46 +++++-- 22 files changed, 198 insertions(+), 381 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt create mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml delete mode 100644 drivers/mtd/maps/pmcmsp-flash.c