[PATCH] Avoid adding the same dataflash for the second time

Jagan Teki jagan at amarulasolutions.com
Tue Aug 3 08:18:39 CEST 2021


On Fri, Jun 18, 2021 at 8:26 PM Jakub Frackowiak <jakub at mikronika.com.pl> wrote:
>
> The spi_dataflash_probe function should return after jedec_probe
> if it finds any serial flash.
> This functions adds the same SPI device two times without this
> path.
> Serial output when reading environment:
>
> Loading Environment from SPIFlash... SPI DataFlash: Detected at45db321d
> with page size 512 Bytes, erase size 512 Bytes, total 4 MiB, revision d
> SPI DataFlash: Detected AT45DB321x with page size 528 Bytes, erase size
> 528 Bytes, total 4.1 MiB, revision
> *** Warning - bad CRC, using default environment
>
> When this patch is applied:
>
> Loading Environment from SPIFlash... SPI DataFlash: Detected at45db321d
> with page size 512 Bytes, erase size 512 Bytes, total 4 MiB, revision d
> OK
> ---

Please send the patch properly, check it the guidelines - if you
aren't aware it before.
https://www.denx.de/wiki/view/U-Boot/Patches#General_Patch_Submission_Rules


More information about the U-Boot mailing list