Skip to content

Add spi-nor flash device pm support

Kamal Dasu linux-mtd lkml 8 versions – Applied

Status from this message: Applied to the spi-nor/next branch of l2-mtd with a tiny change below

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest2 patches 3 repliesApplied
  2. v72 patches 1 replySuperseded
  3. v63 patches 5 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v52 patches4 repliesSuperseded
v42 patches9 repliesSuperseded
v32 patches2 repliesSuperseded
v22 patches3 repliesSuperseded
v15 patches9 repliesSuperseded

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/2mtd: spi-nor: add spi_nor_init() functiondrivers/mtd/spi-nor/spi-nor.c include/linux/mtd/spi-nor.h+46 -181 reply
2/2mtd: spi-nor: Add spi-nor mtd resume handlerdrivers/mtd/spi-nor/spi-nor.c+14 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v8 yet.

Read the v8 thread

Cover letter [PATCH v8 0/2] Add spi-nor flash device pm support

Changes since v7

spi-nor.h
- Fix comment style

spi-nor.c
- Fix condition check to set_4byte() when nor->addr_width == 4 in spi_nor_init()
- Bring back quad_enable logic to spi_nor_setup() and remove it from spi_nor_scan()
- Remove duplicate comment section in spi_nor_scan()
- Leave dev_info() string as before in spi_nor_scan()

The V8 changes below implements power management support using the mtd handlers for resume in the spi-nor driver. spi-nor mtd pm resume() calls newly implemented spi_nor_init() function that sets up the spi-nor flash to its pre-suspend/power-on probed state. This is needed S2/S3 PM on platfroms that turn off power to the spi-nor flash on pm suspend.

Kamal Dasu (2):
mtd: spi-nor: add spi_nor_init() function
mtd: spi-nor: Add spi-nor mtd resume handler

 drivers/mtd/spi-nor/spi-nor.c | 68 +++++++++++++++++++++++++++++++------------
 include/linux/mtd/spi-nor.h   | 10 +++++++
 2 files changed, 60 insertions(+), 18 deletions(-)
Signature · 1 line
1.9.1