mtd/ramtron.c: Reassert CS between commands

This commit is contained in:
Kenneth Thompson 2021-07-30 20:03:04 -07:00 committed by Xiang Xiao
parent f86ceea099
commit 5588bc4ef6

View File

@ -892,6 +892,8 @@ static ssize_t ramtron_read(FAR struct mtd_dev_s *dev,
* enable state
*/
SPI_SELECT(priv->dev, SPIDEV_FLASH(0), false);
SPI_SELECT(priv->dev, SPIDEV_FLASH(0), true);
SPI_SEND(priv->dev, RAMTRON_RDSR);
status = SPI_SEND(priv->dev, RAMTRON_DUMMY);
if ((status & ~RAMTRON_SR_SRWD) == 0)