[PATCH] mtd: cfi_mtd: populate mtd->dev with flash_info->dev

Stefan Roese sr at denx.de
Tue Feb 1 10:56:17 CET 2022


On 12/3/21 10:27, Patrice Chotard wrote:
> Populate mtd->dev with flash_info->dev which allows to get
> full mtd information using the "mtd list" command.
> Before, "mtd list" command returns :
> 
> List of MTD devices:
> * nor0
>    - type: NOR flash
>    - block size: 0x40000 bytes
>    - min I/O: 0x1 bytes
>    - 0x000000000000-0x000004000000 : "nor0"
> 
> After this patch we get for example:
> 
> List of MTD devices:
> * nor0
>    - device: flash at 0
>    - parent: spi at 40430000
>    - driver: cfi_flash
>    - path: /soc/spi at 40430000/flash at 0
>    - type: NOR flash
>    - block size: 0x40000 bytes
>    - min I/O: 0x1 bytes
>    - 0x000000000000-0x000004000000 : "nor0"
> 
> Signed-off-by: Patrice Chotard <patrice.chotard at foss.st.com>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan


More information about the U-Boot mailing list