Skip to content
Snippets Groups Projects
Commit 69eeefaa authored by Vignesh R's avatar Vignesh R Committed by Jagan Teki
Browse files

spi: ti_qspi: Fix failure on multiple READ_ID cmd


Populating QSPI_RD_SNGL bit(0x1) in priv->cmd means that value
QSPI_INVAL (0x4) is not written to CMD field of QSPI_SPI_CMD_REG in
ti_qspi_cs_deactivate(). Therefore CS is never deactivated between
successive READ ID which results in sf probe to fail.
Fix this by not populating priv->cmd with QSPI_RD_SNGL and OR it wih
priv->cmd as required (similar to the convention followed in the
driver).

Signed-off-by: default avatarVignesh R <vigneshr@ti.com>
Reviewed-by: default avatarJagan Teki <jteki@openedev.com>
Reviewed-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
parent 6bde34f1
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment