From patchwork Mon Feb 25 08:45:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 1047629 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="O2oB3Op6"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 447Fs43tnwz9s9T for ; Mon, 25 Feb 2019 19:45:42 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject: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=1K/gknJKESXrhrKJPjXtOJ/Onka0sJbf0rLGZg8au5Q=; b=O2oB3Op6bwfALf ZmTDAfjYbA0lURgItDDIcstBfQXv1Xm27VV7qIDWHLwbps0w/3qAdmmpQJMl8Cj3SDflUjqVj0B8J wpuUAsHSEKI7L/jjhoMsS8ZtQVjsKhkktjo70NRRMQqM8S8o3BL4GNLdzc0ppWfoXzKakEKNLv6/2 X2dw7AgH8NjSUlJknZ5/ng+Q80eX74doANUb4fEs2KInCyjI1n/u5qxYIwqIV0IfohaVudc4YHHm6 wE57RgT5zQsE1IncPu54eyHQPkbbot8m7aZC5JeMV1XJ3PXj034pDF/6OcmKJpoyE/fKXc4iFFbt6 Del7rU1kqlm030A4qSQw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyBtI-0000fZ-PB; Mon, 25 Feb 2019 08:45:36 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyBtF-0000eb-Mm for linux-mtd@lists.infradead.org; Mon, 25 Feb 2019 08:45:36 +0000 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 67A3C260497; Mon, 25 Feb 2019 08:45:29 +0000 (GMT) Date: Mon, 25 Feb 2019 09:45:26 +0100 From: Boris Brezillon To: Linus Torvalds Subject: [GIT PULL] mtd: Changes for 5.1 Message-ID: <20190225094526.580e0dbb@collabora.com> Organization: Collabora X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190225_004534_006837_3C5C0B31 X-CRM114-Status: GOOD ( 20.24 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [46.235.227.227 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , Tudor Ambarus , Richard Weinberger , "linux-kernel@vger.kernel.org" , "linux-mtd@lists.infradead.org" , Miquel Raynal , Brian Norris , David Woodhouse Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hello Linus, Here is the MTD PR for 5.1. Note that you might have to fix a conflict in MAINTAINERS (conflict between linux-arm and MTD). For the record, here is Stephen's conflict resolution [1]. Regards, Boris [1]https://lkml.org/lkml/2019/2/6/925 The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c: Linux 5.0-rc1 (2019-01-06 17:08:20 -0800) are available in the Git repository at: git://git.infradead.org/linux-mtd.git tags/mtd/for-5.1 for you to fetch changes up to 9220d7befc9c28bf714701e6e26163644750d871: Merge tag 'nand/for-5.1' of git://git.infradead.org/linux-mtd into mtd/next (2019-02-25 09:28:54 +0100) ---------------------------------------------------------------- MTD changes: - Use struct_size() where appropriate - mtd_{read,write}() as wrappers around mtd_{read,write}_oob() - Fix misuse of PTR_ERR() in docg3 - Coding style improvements in mtdcore.c SPI NOR changes: Core changes: - Add support of octal mode I/O transfer - Add a bunch of SPI NOR entries to the flash_info table SPI NOR controller driver changes: - cadence-quadspi: * Add support for Octal SPI controller * write upto 8-bytes data in STIG mode - mtk-quadspi: * rename config to a common one * add SNOR_HWCAPS_READ to spi_nor_hwcaps mask - Add Tudor as SPI-NOR co-maintainer NAND changes NAND core changes: - Fourth batch of fixes/cleanup to the raw NAND core impacting various controller drivers (Sunxi, Marvell, MTK, TMIO, OMAP2). - Checking the return code of nand_reset() and nand_readid_op(). - Removing ->legacy.erase and single_erase(). - Simplifying the locking. - Several implicit fall through annotations. Raw NAND controllers drivers changes: - Fixing various possible object reference leaks (MTK, JZ4780, Atmel). - ST: * Adding support for STM32 FMC2 NAND flash controller. - Meson: * Adding support for Amlogic NAND flash controller. - Denali: * Several cleanup patches. - Sunxi: * Several cleanup patches. - FSMC: * Disabling NAND on remove(). * Resetting NAND timings on resume(). SPI-NAND drivers changes: - Toshiba: * Adding support for all Toshiba products. - Macronix: * Fixing ECC status read. - Gigadevice: * Adding support for GD5F1GQ4UExxG. ---------------------------------------------------------------- Ahmet Celenk (1): mtd: spi-nor: split s25fl128s into s25fl128s0 and s25fl128s1 André Valentin (1): mtd: spi-nor: Add support for mx25u3235f Bean Huo (1): mtd: spi-nor: Fix wrong abbreviation HWCPAS Boris Brezillon (16): mtd: Implement mtd_{read,write}() as wrappers around mtd_{read,write}_oob() mtd: rawnand: sunxi: Use a consistent name for sunxi_nand_chip objects mtd: rawnand: sunxi: Use struct_size() mtd: rawnand: sunxi: Name nand_chip objects consistently mtd: rawnand: sunxi: Stop passing mtd_info objects around mtd: rawnand: sunxi: Add an SPDX tag mtd: rawnand: sunxi: Migrate to ->exec_op() mtd: rawnand: sunxi: Fix kernel doc headers mtd: rawnand: sunxi: Handle the tREA > tRC / 2 case mtd: rawnand: mtk: Use nand_controller_init() instead of open-coding it mtd: rawnand: tmio: Do not abuse nand_controller->wq mtd: rawnand: omap2: Use nand_controller_init() mtd: rawnand: Stop using chip->state in drivers mtd: rawnand: Simplify the locking Merge tag 'spi-nor/for-5.1' of git://git.infradead.org/linux-mtd into mtd/next Merge tag 'nand/for-5.1' of git://git.infradead.org/linux-mtd into mtd/next Christophe Kerello (3): dt-bindings: mtd: stm32_fmc2: add STM32 FMC2 NAND controller documentation mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver mtd: rawnand: stm32_fmc2: add polling mode Colin Ian King (1): mtd: spi-nor: cadence-quadspi: fix spelling mistake: "Couldnt't" -> "Couldn't" Emil Lenngren (1): mtd: spinand: macronix: Fix ECC Status Read Frieder Schrempf (2): mtd: spi-nor: Add support for EN25Q80A mtd: spi-nor: Add support for MX25V8035F Guochun Mao (1): mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ to spi_nor_hwcaps mask Gustavo A. R. Silva (4): mtd: gen_probe: Use struct_size() in kmalloc() mtd: cfi: cmdset_0001: Use struct_size() in kmalloc() mtd: lpddr: Use struct_size() in kzalloc() mtd: rawnand: marvell: use struct_size() in devm_kzalloc() Jianxin Pan (1): MAINTAINERS: Add entry for Amlogic NAND controller driver Liang Yang (2): dt-bindings: nand: meson: add Amlogic NAND controller driver mtd: rawnand: meson: add support for Amlogic NAND flash controller Linus Walleij (2): mtd: rawnand: fsmc: Reset NAND timings on resume() mtd: rawnand: fsmc: Disable NAND on remove() Masahiro Yamada (7): mtd: rawnand: denali: remove ->erase hook mtd: rawnand: remove ->legacy.erase and single_erase() mtd: rawnand: check return code of nand_reset() and nand_readid_op() mtd: rawnand: denali: remove unneeded denali_reset_irq() call mtd: rawnand: denali: remove unused function argument 'raw' mtd: rawnand: denali: remove unused dma_addr field from denali_nand_info mtd: rawnand: denali_dt: remove single anonymous clock support Mathieu Malaterre (2): mtd: rawnand: Annotate implicit fall through in nand_command/nand_command_lp mtd: rawnand: Annotate implicit fall through in nand_scan_tail Purna Chandra Mandal (1): mtd: spi-nor: cadence-quadspi: write upto 8-bytes data in STIG mode Richard Weinberger (1): mtd: mtdram: Expose module parameters Roger Pueyo Centelles (1): mtd: spi-nor: Add support for en25qh64 Ryder Lee (2): dt-bindings: mtd: mtk-quadspi: update bindings for MT7629 SoC mtd: spi-nor: mtk-quadspi: rename config to a common one Sergei Shtylyov (2): mtd: spi-nor: add Spansion S25FS512S ID mtd: spi-nor: refine Spansion S25FL512S ID Stefan Roese (2): mtd: Remove empty lines at end of sysfs related functions mtd: spinand: Add support for GigaDevice GD5F1GQ4UExxG Tudor Ambarus (1): MAINTAINERS: add myself as SPI NOR co-maintainer Vignesh R (2): dt-bindings: cadence-quadspi: Add new compatible for AM654 SoC mtd: spi-nor: cadence-quadspi: Add support for Octal SPI controller Wen Yang (3): mtd: rawnand: atmel: fix possible object reference leak mtd: rawnand: jz4780: fix possible object reference leak mtd: rawnand: mtk: fix possible object reference leak Yogesh Narayan Gaur (3): mtd: spi-nor: add opcodes for octal Read/Write commands mtd: spi-nor: add octal read flag for flash mt35xu512aba mtd: m25p80: add support of octal mode I/O transfer Yoshio Furuyama (1): mtd: spinand: Add support for all Toshiba Memory products YueHaibing (2): mtd: docg3: Fix passing zero to 'PTR_ERR' warning in doc_probe_device mtd: docg3: fix a possible memory leak of mtd->name Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt | 60 ++ Documentation/devicetree/bindings/mtd/cadence-quadspi.txt | 1 + Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 3 +- Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt | 61 +++ MAINTAINERS | 8 + drivers/mtd/chips/cfi_cmdset_0001.c | 3 +- drivers/mtd/chips/gen_probe.c | 2 +- drivers/mtd/devices/docg3.c | 7 +- drivers/mtd/devices/m25p80.c | 9 +- drivers/mtd/devices/mtdram.c | 2 - drivers/mtd/lpddr/qinfo_probe.c | 4 +- drivers/mtd/mtdcore.c | 83 +-- drivers/mtd/nand/raw/Kconfig | 17 + drivers/mtd/nand/raw/Makefile | 2 + drivers/mtd/nand/raw/atmel/pmecc.c | 21 +- drivers/mtd/nand/raw/denali.c | 42 +- drivers/mtd/nand/raw/denali.h | 1 - drivers/mtd/nand/raw/denali_dt.c | 27 +- drivers/mtd/nand/raw/fsmc_nand.c | 16 + drivers/mtd/nand/raw/jz4780_bch.c | 9 +- drivers/mtd/nand/raw/marvell_nand.c | 5 +- drivers/mtd/nand/raw/meson_nand.c | 1464 +++++++++++++++++++++++++++++++++++++++++++++++++ drivers/mtd/nand/raw/mtk_ecc.c | 8 +- drivers/mtd/nand/raw/mtk_nand.c | 3 +- drivers/mtd/nand/raw/nand_base.c | 159 +++--- drivers/mtd/nand/raw/nand_legacy.c | 3 +- drivers/mtd/nand/raw/omap2.c | 20 +- drivers/mtd/nand/raw/r852.c | 3 +- drivers/mtd/nand/raw/stm32_fmc2_nand.c | 2073 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/mtd/nand/raw/sunxi_nand.c | 732 +++++++++++++------------ drivers/mtd/nand/raw/tmio_nand.c | 21 +- drivers/mtd/nand/spi/gigadevice.c | 83 +++ drivers/mtd/nand/spi/macronix.c | 8 +- drivers/mtd/nand/spi/toshiba.c | 79 ++- drivers/mtd/spi-nor/Kconfig | 16 +- drivers/mtd/spi-nor/Makefile | 2 +- drivers/mtd/spi-nor/cadence-quadspi.c | 74 ++- drivers/mtd/spi-nor/mtk-quadspi.c | 3 +- drivers/mtd/spi-nor/spi-nor.c | 35 +- include/linux/mtd/rawnand.h | 26 +- include/linux/mtd/spi-nor.h | 16 +- 41 files changed, 4536 insertions(+), 675 deletions(-) create mode 100644 Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt create mode 100644 Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt create mode 100644 drivers/mtd/nand/raw/meson_nand.c create mode 100644 drivers/mtd/nand/raw/stm32_fmc2_nand.c