Skip to content

Commit

Permalink
mtd: spi-nor: spansion: Remove status polling on volatile registers w…
Browse files Browse the repository at this point in the history
…rite

Writing volatile registers are instant according to Cypress and do not
need any status polling. Remove status polling on volatile registers write.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Michael Walle <michael@walle.cc>
  • Loading branch information
ambarus committed Apr 21, 2022
1 parent 6f4d1ee commit 2db4060
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/mtd/spi-nor/spansion.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ static int cypress_nor_octal_dtr_en(struct spi_nor *nor)
if (ret)
return ret;

ret = spi_nor_wait_till_ready(nor);
if (ret)
return ret;

nor->read_dummy = 24;

/* Set the octal and DTR enable bits. */
Expand Down

0 comments on commit 2db4060

Please sign in to comment.