
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.