u-boot-brain/drivers/mtd/spi
Boris Brezillon 492151b209 mtd: sf: Make sure we don't register the same device twice
spi_flash_mtd_register() can be called several times and each time it
will register the same mtd_info instance like if it was a new one.
The MTD ID allocation gets crazy when that happens, so let's track the
status of the sf_mtd_info object to avoid that.

Fixes: 9fe6d8716e ("mtd, spi: Add MTD layer driver")
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Tested-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Jagan Teki <jagan@openedev.com>
2018-12-06 00:45:36 +05:30
..
fsl_espi_spl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig sf: Add XMC xm25qh64a and xm25qh128a entries 2018-10-04 18:21:23 +05:30
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox.c dm: spi: Clean up detection of sandbox SPI emulator 2018-10-09 04:40:27 -06:00
sf_dataflash.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sf_internal.h sf: Add MICRON manufacturer id 2018-10-12 11:37:49 +05:30
sf_mtd.c mtd: sf: Make sure we don't register the same device twice 2018-12-06 00:45:36 +05:30
sf_probe.c dm: spi: Add logging of some return values 2018-10-09 04:40:27 -06:00
sf-uclass.c dm: spi: Add logging of some return values 2018-10-09 04:40:27 -06:00
sf.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spi_flash_ids.c sf: Add XMC xm25qh64a and xm25qh128a entries 2018-10-04 18:21:23 +05:30
spi_flash.c Merge branch 'master' of git://git.denx.de/u-boot-spi 2018-10-12 11:54:13 -04:00