[U-Boot] [BUG] SPI NOR for SST25V hangs for TI AM335x.
Faiz Abbas
faiz_abbas at ti.com
Tue May 22 10:47:54 UTC 2018
Hi,
Adding Vignesh. He should be able to help.
On Monday 21 May 2018 11:53 PM, Gautam Bhat wrote:
> Hi,
>
> There is a bug in the SST25V SPI NOR for the TI AM335x. On a write the
> SPI NOR hangs. This is because of the spi_release_bus(..) in the
> spi_flash_read_common call done by spi_flash_sr_ready(..) called in
> the spi_flash_wait_till_ready(..) in sst_write_wp(..). This call
> clears all the registers and the setting associated with it and then
> calls the spi_flash_cmd_write_disable in sst_write_wp(..) with the
> wrong SPI settings.
>
> Also there are spi_reset(..) calls happening in the sst_write_wp(..)
> which seems to be unnecessary when the data sheet does not mention any
> need for resets. Calling unnecessary resets simply increases the
> latency in the driver and causes more bugs.
>
> Currently commenting out the spi_release_bus(..) makes a successful write.
>
> Thanks,
> Gautam.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
>
Thanks,
Faiz
More information about the U-Boot
mailing list