Message ID | 20221019064759.493607-1-d-gole@ti.com |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show |
diff --git a/common/spl/spl_spi.c b/common/spl/spl_spi.c index da6742416ed9..d147ac36f4ad 100644 --- a/common/spl/spl_spi.c +++ b/common/spl/spl_spi.c @@ -59,7 +59,11 @@ static ulong spl_spi_fit_read(struct spl_load_info *load, ulong sector, struct spi_flash *flash = load->dev; ulong ret; - ret = spi_flash_read(flash, sector, count, buf); + if (count%2 != 0) + ret = spi_flash_read(flash, sector, count+1, buf); + else + ret = spi_flash_read(flash, sector, count, buf); + printf("mylogs: %s#%d return = 0x%x\n", __func__, __LINE__, ret); if (!ret)