linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add support to Disable the flash quad mode
@ 2020-07-06  9:22 Yicong Yang
  2020-07-06  9:22 ` [PATCH v2 1/2] mtd: spi-nor: Add capability to disable " Yicong Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yicong Yang @ 2020-07-06  9:22 UTC (permalink / raw)
  To: tudor.ambarus, p.yadav, linux-mtd
  Cc: vigneshr, sergei.shtylyov, richard, john.garry, linuxarm,
	yangyicong, alexander.sverdlin, miquel.raynal

Previously we didn't disable the flash's quad mode when it's removed
Then comes the problem that if we next time load the flash
in Standard/Dual SPI mode, the quad enable bits is not cleared,
and the function of flash's WP# and RESET#/HOLD# pin will not
be restored.

This series adds the capability to disable the flash's quad mode. And
restore the flash when it's removed in spi_nor_restore().

Change since v1:
- Address the comments by Tudor
- Reword the commit message in Patch 2/2. 

Yicong Yang (2):
  mtd: spi-nor: Add capability to disable flash quad mode
  mtd: spi-nor: Disable the flash quad mode in spi_nor_restore()

 drivers/mtd/spi-nor/core.c | 57 ++++++++++++++++++++++++++++++----------------
 drivers/mtd/spi-nor/core.h | 10 ++++----
 2 files changed, 43 insertions(+), 24 deletions(-)

-- 
2.8.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-13  9:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06  9:22 [PATCH v2 0/2] Add support to Disable the flash quad mode Yicong Yang
2020-07-06  9:22 ` [PATCH v2 1/2] mtd: spi-nor: Add capability to disable " Yicong Yang
2020-07-06  9:22 ` [PATCH v2 2/2] mtd: spi-nor: Disable the flash quad mode in spi_nor_restore() Yicong Yang
2020-07-13  9:26 ` [PATCH v2 0/2] Add support to Disable the flash quad mode Tudor Ambarus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).