projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
467f0e8
)
mtd: spi-nor: micron-st: Remove status polling on volatile registers write
author
Tudor Ambarus
<tudor.ambarus@microchip.com>
Wed, 20 Apr 2022 10:34:27 +0000
(13:34 +0300)
committer
Pratyush Yadav
<p.yadav@ti.com>
Wed, 27 Apr 2022 09:27:36 +0000
(14:57 +0530)
Writing volatile registers are instant according to Micron and do not
need any status polling. Remove status polling on volatile registers write.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Link:
https://lore.kernel.org/r/20220420103427.47867-12-tudor.ambarus@microchip.com
drivers/mtd/spi-nor/micron-st.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi-nor/micron-st.c
b/drivers/mtd/spi-nor/micron-st.c
index
61db489
..
a96f74e
100644
(file)
--- a/
drivers/mtd/spi-nor/micron-st.c
+++ b/
drivers/mtd/spi-nor/micron-st.c
@@
-60,9
+60,6
@@
static int micron_st_nor_octal_dtr_en(struct spi_nor *nor)
ret = spi_nor_write_any_volatile_reg(nor, &op, nor->reg_proto);
if (ret)
return ret;
- ret = spi_nor_wait_till_ready(nor);
- if (ret)
- return ret;
buf[0] = SPINOR_MT_OCT_DTR;
op = (struct spi_mem_op)