[PATCH v2 0/3] Introduce mtdblock device
Alexey Romanov
avromanov at salutedevices.com
Tue Mar 19 09:43:42 CET 2024
Hello! Ping.
On Thu, Mar 07, 2024 at 04:07:23PM +0300, Alexey Romanov wrote:
> Hello!
>
> This series adds support for the mtdblock device, which
> allows to read/write data block by block. For example,
> it can now be used for BCB or Android AB command:
>
> $ bcb load mtd 0 part_name
>
> Tested only on SPI NAND, so bind is made only for
> SPI NAND drivers.
>
> ---
>
> Changes V1 -> V2 [1]:
>
> - Drop patch [2].
> - Add warning if bind NAND mtdblock device.
> - Move documentation of mtdblock implementation
> from commit message to the source code.
> - Remove __maybe_unused from mtd partition functions
> description.
> - Use blk_enabled() instead of #ifdefs.
>
> Links:
>
> - [1] https://lore.kernel.org/all/20240227100441.1811047-1-avromanov@salutedevices.com/
> - [2] https://lore.kernel.org/all/20240227100441.1811047-5-avromanov@salutedevices.com/
>
> Alexey Romanov (3):
> disk: support MTD partitions
> drivers: introduce mtdblock abstraction
> spinand: bind mtdblock
>
> disk/part.c | 5 +-
> drivers/block/blk-uclass.c | 1 +
> drivers/mtd/Kconfig | 1 +
> drivers/mtd/Makefile | 1 +
> drivers/mtd/mtdblock.c | 227 ++++++++++++++++++++++++++++++++++++
> drivers/mtd/mtdpart.c | 69 +++++++++++
> drivers/mtd/nand/spi/core.c | 20 ++++
> include/linux/mtd/mtd.h | 12 ++
> include/part.h | 2 +
> 9 files changed, 337 insertions(+), 1 deletion(-)
> create mode 100644 drivers/mtd/mtdblock.c
>
> --
> 2.34.1
>
--
Thank you,
Alexey
More information about the U-Boot
mailing list