Skip to content

mtd: rawnand: Add support for manufacturer specific suspend/resume operation

Mason Yang linux-mtd lkml 1 version Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest2 patches 3 repliesApplied

Changes in v4 from the cover letter

Patch nand_suspend() return error code to the upper layer, removed _ prefix of suspend/resme hooks and kbuildtest robot tag.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2mtd: rawnand: Add support for manufacturer specific suspend/resume operationdrivers/mtd/nand/raw/nand_base.c include/linux/mtd/rawnand.h+17 -41 reply
2/2mtd: rawnand: macronix: Add support for deep power down modedrivers/mtd/nand/raw/nand_macronix.c+74 -02 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMiquel Raynal
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] mtd: rawnand: Add support for manufacturer specific suspend/resume operation

Hi,

Changelog

v4:
Patch nand_suspend() return error code to the upper layer, removed _ prefix of suspend/resme hooks and kbuildtest robot tag.

v3:
patch nand_lock_area/nand_unlock_area.
fixed kbuidtest robot warnings and reviewer's comments as below:
- Patched the Kdoc for both lock_area/unlock_area and _suspend/_resume
- Created a helper to read default protected value (after device power on) for protection function detection.
- patched the prefix for Macronix deep power down command, 0xB9
- Patched the description of mxic_nand_resume() and add a small sleeping delay.
- Created a helper for deep power down device part number detection.

v2:
Patch nand_lock() & nand_unlock() for MTD->_lock/_unlock default call-back function replacement.
Patch nand_suspend() & nand_resume() with manufacturer specific operation.

v1:
Patch manufacturer post_init for MTD->_lock/_unlock & MTD->_suspend/_resume replacement.

thanks for your time & review.
Mason

Mason Yang (2):
mtd: rawnand: Add support for manufacturer specific suspend/resume
operation
mtd: rawnand: macronix: Add support for deep power down mode

 drivers/mtd/nand/raw/nand_base.c     | 17 +++++++--
 drivers/mtd/nand/raw/nand_macronix.c | 74 ++++++++++++++++++++++++++++++++++++
 include/linux/mtd/rawnand.h          |  4 ++
 3 files changed, 91 insertions(+), 4 deletions(-)
Signature · 1 line
1.9.1