[GIT PULL] mtd: Changes for 6.1

From: Miquel Raynal
Date: Fri Oct 07 2022 - 11:23:50 EST


Hello Linus,

This is the MTD PR for v6.1-rc1

Thanks,
Miquèl

The following changes since commit 568035b01cfb107af8d2e4bd2fb9aea22cf5b868:

Linux 6.0-rc1 (2022-08-14 15:50:18 -0700)

are available in the Git repository at:

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

for you to fetch changes up to 63c30d70443064d71340e02024b4a463db5c77d9:

Merge tag 'nand/for-6.1' into mtd/next (2022-10-07 16:56:14 +0200)

----------------------------------------------------------------
Core MTD changes:
* mtdchar: add MEMREAD ioctl
* Add ECC error accounting for each read request
* always initialize 'stats' in struct mtd_oob_ops
* Track maximum number of bitflips for each read request
* Fix repeated word in comment
* Move from strlcpy with unused retval to strscpy
* Fix a typo in a comment
* Add binding for U-Boot bootloader partitions

MTD device drivers changes:
* FTL: use container_of() rather than cast
* docg3:
- Use correct function names in comment blocks
- Check the return value of devm_ioremap() in the probe
* physmap-core: Fix NULL pointer dereferencing in of_select_probe_type()
* parsers: add Broadcom's U-Boot parser

Raw NAND core changes:
* Replace of_gpio_named_count() by gpiod_count()
- Remove misguided comment of nand_get_device()
- bbt: Use the bitmap API to allocate bitmaps

Raw NAND controller drivers changes:
* Meson:
- Stop supporting legacy clocks
- Refine resource getting in probe
- Convert bindings to yaml
- Fix clock handling and update the bindings accordingly
- Fix bit map use in meson_nfc_ecc_correct()
* bcm47xx:
- Fix spelling typo in comment
* STM32 FMC2:
- Switch to using devm_fwnode_gpiod_get()
- Fix dma_map_sg error check
* Cadence:
- Remove an unneeded result variable
* Marvell:
- Fix error handle regarding dma_map_sg
* Orion:
- Use devm_clk_get_optional()
* Cafe:
- Use correct function name in comment block
* Atmel:
- Unmap streaming DMA mappings
* Arasan:
- Stop using 0 as NULL pointer
* GPMI:
- Fix typo 'the the' in comment
* BRCM:
- Add individual glue driver selection
- Move Kconfig to driver folder
* FSL: Fix none ECC mode
* Intel:
- Use devm_platform_ioremap_resource_byname()
- Remove unused clk_rate member from struct ebu_nand
- Remove unused nand_pa member from ebu_nand_cs
- Don't re-define NAND_DATA_IFACE_CHECK_ONLY
- Remove undocumented compatible string
- Fix compatible string in the bindings
- Read the chip-select line from the correct OF node
- Fix maximum chip select value in the bindings

----------------------------------------------------------------
Andy Shevchenko (1):
mtd: rawnand: Replace of_gpio_named_count() by gpiod_count()

ChenXiaoSong (1):
mtd: rawnand: remove misguided comment of nand_get_device()

Christophe JAILLET (3):
mtd: Fix a typo in a comment
mtd: nand: bbt: Use the bitmap API to allocate bitmaps
mtd: rawnand: orion: Use devm_clk_get_optional()

Colin Ian King (2):
mtd: devices: docg3: Use correct function names in comment blocks
mtd: rawnand: cafe: Use correct function name in comment block

Dan Carpenter (1):
mtd: rawnand: meson: fix bit map use in meson_nfc_ecc_correct()

Dmitry Torokhov (1):
mtd: rawnand: stm32_fmc2: switch to using devm_fwnode_gpiod_get()

Florian Fainelli (2):
mtd: rawnand: brcmnand: Move Kconfig to driver folder
mtd: rawnand: brcmnand: Add individual glue driver selection

GONG, Ruiqi (1):
mtd: rawnand: arasan: stop using 0 as NULL pointer

Gaosheng Cui (1):
mtd: ftl: use container_of() rather than cast

Jack Wang (2):
mtd: rawnand: stm32_fmc2: Fix dma_map_sg error check
mtd: rawnand: marvell: Fix error handle regarding dma_map_sg

Jiangshan Yi (1):
mtd: rawnand: bcm47xx: fix spelling typo in comment

Liang Yang (5):
dt-bindings: nand: meson: fix meson nfc clock
mtd: rawnand: meson: fix the clock
mtd: rawnand: meson: refine resource getting in probe
dt-bindings: nand: meson: convert txt to yaml
mtd: rawnand: meson: stop supporting legacy clocks

Martin Blumenstingl (8):
dt-bindings: mtd: intel: lgm-nand: Fix compatible string
dt-bindings: mtd: intel: lgm-nand: Fix maximum chip select value
mtd: rawnand: intel: Read the chip-select line from the correct OF node
mtd: rawnand: intel: Remove undocumented compatible string
mtd: rawnand: intel: Don't re-define NAND_DATA_IFACE_CHECK_ONLY
mtd: rawnand: intel: Remove unused nand_pa member from ebu_nand_cs
mtd: rawnand: intel: Remove unused clk_rate member from struct ebu_nand
mtd: rawnand: intel: Use devm_platform_ioremap_resource_byname()

Michał Kępień (4):
mtd: track maximum number of bitflips for each read request
mtd: always initialize 'stats' in struct mtd_oob_ops
mtd: add ECC error accounting for each read request
mtdchar: add MEMREAD ioctl

Miquel Raynal (1):
Merge tag 'nand/for-6.1' into mtd/next

Pali Rohár (1):
mtd: rawnand: fsl_elbc: Fix none ECC mode

Rafał Miłecki (2):
dt-bindings: mtd: partitions: add binding for U-Boot bootloader
mtd: parsers: add Broadcom's U-Boot parser

Slark Xiao (1):
mtd: rawnand: gpmi: Fix typo 'the the' in comment

Tudor Ambarus (1):
mtd: rawnand: atmel: Unmap streaming DMA mappings

William Dean (1):
mtd: devices: docg3: check the return value of devm_ioremap() in the probe

Wolfram Sang (1):
mtd: move from strlcpy with unused retval to strscpy

Zeng Jingxiang (1):
mtd: physmap-core: Fix NULL pointer dereferencing in of_select_probe_type()

wangjianli (1):
mtd: fix repeated word in comment

ye xingchen (1):
mtd: rawnand: cadence: Remove an unneeded result variable

Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt | 60 -----------------------------------------
Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Documentation/devicetree/bindings/mtd/{intel,lgm-nand.yaml => intel,lgm-ebunand.yaml} | 8 +++---
Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml | 49 ++++++++++++++++++++++++++++++++++
drivers/mtd/devices/block2mtd.c | 2 +-
drivers/mtd/devices/docg3.c | 21 ++++++++++++---
drivers/mtd/ftl.c | 4 +--
drivers/mtd/inftlcore.c | 6 ++---
drivers/mtd/maps/physmap-core.c | 3 +++
drivers/mtd/mtdchar.c | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
drivers/mtd/mtdconcat.c | 2 +-
drivers/mtd/mtdcore.c | 5 ++++
drivers/mtd/mtdpstore.c | 2 +-
drivers/mtd/mtdswap.c | 6 ++---
drivers/mtd/nand/bbt.c | 7 ++---
drivers/mtd/nand/onenand/onenand_base.c | 16 +++++++++--
drivers/mtd/nand/onenand/onenand_bbt.c | 2 +-
drivers/mtd/nand/raw/Kconfig | 24 ++---------------
drivers/mtd/nand/raw/arasan-nand-controller.c | 2 +-
drivers/mtd/nand/raw/atmel/nand-controller.c | 1 +
drivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c | 2 +-
drivers/mtd/nand/raw/brcmnand/Kconfig | 49 ++++++++++++++++++++++++++++++++++
drivers/mtd/nand/raw/brcmnand/Makefile | 8 +++---
drivers/mtd/nand/raw/cadence-nand-controller.c | 5 +---
drivers/mtd/nand/raw/cafe_nand.c | 2 +-
drivers/mtd/nand/raw/fsl_elbc_nand.c | 28 ++++++++++---------
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 2 +-
drivers/mtd/nand/raw/intel-nand-controller.c | 28 +++++++++----------
drivers/mtd/nand/raw/marvell_nand.c | 8 +++++-
drivers/mtd/nand/raw/meson_nand.c | 88 ++++++++++++++++++++++++++++++------------------------------
drivers/mtd/nand/raw/nand_base.c | 15 ++++++++---
drivers/mtd/nand/raw/nand_bbt.c | 8 +++---
drivers/mtd/nand/raw/orion_nand.c | 17 ++++--------
drivers/mtd/nand/raw/sm_common.c | 2 +-
drivers/mtd/nand/raw/stm32_fmc2_nand.c | 13 ++++-----
drivers/mtd/nand/spi/core.c | 10 +++++++
drivers/mtd/nftlcore.c | 6 ++---
drivers/mtd/parsers/Kconfig | 10 +++++++
drivers/mtd/parsers/Makefile | 1 +
drivers/mtd/parsers/brcm_u-boot.c | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
drivers/mtd/parsers/cmdlinepart.c | 4 +--
drivers/mtd/sm_ftl.c | 4 +--
drivers/mtd/ssfdc.c | 2 +-
drivers/mtd/tests/nandbiterrs.c | 2 +-
drivers/mtd/tests/oobtest.c | 8 +++---
drivers/mtd/tests/readtest.c | 2 +-
fs/jffs2/wbuf.c | 6 ++---
include/linux/mtd/mtd.h | 7 +++++
include/uapi/mtd/mtd-abi.h | 64 ++++++++++++++++++++++++++++++++++++++++----
49 files changed, 694 insertions(+), 243 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt
create mode 100644 Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml
rename Documentation/devicetree/bindings/mtd/{intel,lgm-nand.yaml => intel,lgm-ebunand.yaml} (91%)
create mode 100644 Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml
create mode 100644 drivers/mtd/nand/raw/brcmnand/Kconfig
create mode 100644 drivers/mtd/parsers/brcm_u-boot.c