[GIT PULL] mtd: Changes for v6.3-rc1

From: Miquel Raynal
Date: Fri Feb 24 2023 - 05:41:30 EST


Hello Linus,

This is the MTD PR for v6.3-rc1. Please mind the merge of the
mtd/fixes-for-6.2-rc4 tag by Tudor to save you from a conflict
resolution.

The merge of the different branches is recent, but all the commits
there have been laying in -next for several weeks.

Thanks, Miquèl

The following changes since commit c0f7ae27539fbac267384a7bfc58296ea7550d52:

MAINTAINERS: Update email of Tudor Ambarus (2023-01-07 15:18:44 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git tags/mtd/for-6.3

for you to fetch changes up to f4440abc08917d9a7032abb8a6a5d4b36ca979b6:

Merge tag 'nand/for-6.3' into mtd/next (2023-02-23 10:28:29 +0100)

----------------------------------------------------------------
MTD changes:
* parsers: ofpart: add workaround for #size-cells 0
* dt-bindings: partitions: Fix partition node name pattern
* dataflash: remove duplicate SPI ID table

Raw NAND core changes:
* Check the data only read pattern only once
* Prepare the late addition of supported operation checks
* Support for sequential cache reads
* Fix nand_chip kdoc

Raw NAND driver changes:
* Fsl_elbc: Propagate HW ECC settings to HW
* Marvell: Add missing layouts
* Pasemi: Don't use static data to track per-device state
* Sunxi:
- Fix the size of the last OOB region
- Remove an unnecessary check
- Remove an unnecessary check
- Clean up chips after failed init
- Precompute the ECC_CTL register value
- Embed sunxi_nand_hw_ecc by value
- Update OOB layout to match hardware
* tmio_nand: Remove driver
* vf610_nfc: Use regular comments for functions

SPI-NAND driver changes:
* Add support for AllianceMemory AS5F34G04SND
* Macronix: use scratch buffer for DMA operation

NAND ECC changes:
* Mediatek:
- Add ECC support fot MT7986 IC
- Add compatible for MT7986
- dt-bindings: Split ECC engine with rawnand controller

SPI NOR changes:
* Misc core fixes

SPI NOR driver changes:
* Spansion: Minor fixes

----------------------------------------------------------------
Arnd Bergmann (2):
mtd: dataflash: remove duplicate SPI ID table
mtd: remove tmio_nand driver

Aviram Dali (1):
mtd: rawnand: marvell: add missing layouts

Daniel Golle (1):
mtd: spinand: macronix: use scratch buffer for DMA operation

Francesco Dolcini (1):
mtd: parsers: ofpart: add workaround for #size-cells 0

JaimeLiao (1):
mtd: rawnand: Support for sequential cache reads

Louis Rannou (1):
mtd: spi-nor: Fix shift-out-of-bounds in spi_nor_set_erase_type

Mario Kicherer (1):
mtd: spinand: Add support for AllianceMemory AS5F34G04SND

Miquel Raynal (6):
mtd: rawnand: Check the data only read pattern only once
mtd: rawnand: Prepare the late addition of supported operation checks
mtd: rawnand: Fix nand_chip kdoc
mtd: spi-nor: Create macros to define chip IDs and geometries
Merge tag 'spi-nor/for-6.3' into mtd/next
Merge tag 'nand/for-6.3' into mtd/next

Pali Rohár (1):
mtd: rawnand: fsl_elbc: Propagate HW ECC settings to HW

Randy Dunlap (1):
mtd: rawnand: vf610_nfc: use regular comments for functions

Rob Herring (1):
dt-bindings: mtd: partitions: Fix partition node name pattern

Samuel Holland (7):
mtd: rawnand: sunxi: Clean up chips after failed init
mtd: rawnand: sunxi: Remove an unnecessary check
mtd: rawnand: sunxi: Remove an unnecessary check
mtd: rawnand: sunxi: Fix the size of the last OOB region
mtd: rawnand: sunxi: Update OOB layout to match hardware
mtd: rawnand: sunxi: Embed sunxi_nand_hw_ecc by value
mtd: rawnand: sunxi: Precompute the ECC_CTL register value

Takahiro Kuwano (3):
mtd: spi-nor: sfdp: Fix index value for SCCR dwords
mtd: spi-nor: sfdp: Rename BFPT_DWORD() macro to SFDP_DWORD()
mtd: spi-nor: sfdp: Use SFDP_DWORD() macro for optional parameter tables

Tudor Ambarus (4):
mtd: spi-nor: spansion: Consider reserved bits in CFR5 register
mtd: spi-nor: spansion: Make CFRx reg fields generic
mtd: spi-nor: Sort headers alphabetically
Merge tag 'mtd/fixes-for-6.2-rc4' into spi-nor/next

Uwe Kleine-König (1):
mtd: rawnand: pasemi: Don't use static data to track per-device state

Xiangsheng Hou (3):
dt-bindings: mtd: Split ECC engine with rawnand controller
dt-bindings: mtd: mediatek,nand-ecc-engine: Add compatible for MT7986
mtd: nand: ecc-mtk: Add ECC support fot MT7986 IC

Zeng Heng (1):
mtd: spi-nor: core: fix implicit declaration warning

Documentation/devicetree/bindings/mtd/mediatek,mtk-nfc.yaml | 155 +++++++++
.../devicetree/bindings/mtd/mediatek,nand-ecc-engine.yaml | 63 ++++
Documentation/devicetree/bindings/mtd/mtk-nand.txt | 176 ----------
Documentation/devicetree/bindings/mtd/partitions/partitions.yaml | 2 +-
MAINTAINERS | 2 +-
drivers/mtd/devices/mtd_dataflash.c | 9 -
drivers/mtd/nand/ecc-mtk.c | 28 +-
drivers/mtd/nand/raw/Kconfig | 7 -
drivers/mtd/nand/raw/Makefile | 1 -
drivers/mtd/nand/raw/fsl_elbc_nand.c | 8 +
drivers/mtd/nand/raw/marvell_nand.c | 7 +
drivers/mtd/nand/raw/nand_base.c | 149 ++++++++-
drivers/mtd/nand/raw/nand_jedec.c | 3 +-
drivers/mtd/nand/raw/nand_onfi.c | 3 +-
drivers/mtd/nand/raw/pasemi_nand.c | 63 ++--
drivers/mtd/nand/raw/sunxi_nand.c | 122 +++----
drivers/mtd/nand/raw/tmio_nand.c | 533 ------------------------------
drivers/mtd/nand/raw/vf610_nfc.c | 4 +-
drivers/mtd/nand/spi/Makefile | 2 +-
drivers/mtd/nand/spi/alliancememory.c | 153 +++++++++
drivers/mtd/nand/spi/core.c | 1 +
drivers/mtd/nand/spi/macronix.c | 3 +-
drivers/mtd/parsers/ofpart_core.c | 19 ++
drivers/mtd/spi-nor/core.c | 20 +-
drivers/mtd/spi-nor/core.h | 44 ++-
drivers/mtd/spi-nor/debugfs.c | 2 +-
drivers/mtd/spi-nor/issi.c | 2 +-
drivers/mtd/spi-nor/macronix.c | 2 +-
drivers/mtd/spi-nor/sfdp.c | 78 ++---
drivers/mtd/spi-nor/sfdp.h | 9 +-
drivers/mtd/spi-nor/spansion.c | 27 +-
include/linux/mtd/rawnand.h | 21 ++
include/linux/mtd/spinand.h | 1 +
33 files changed, 783 insertions(+), 936 deletions(-)
create mode 100644 Documentation/devicetree/bindings/mtd/mediatek,mtk-nfc.yaml
create mode 100644 Documentation/devicetree/bindings/mtd/mediatek,nand-ecc-engine.yaml
delete mode 100644 Documentation/devicetree/bindings/mtd/mtk-nand.txt
delete mode 100644 drivers/mtd/nand/raw/tmio_nand.c
create mode 100644 drivers/mtd/nand/spi/alliancememory.c