[PATCH v6 0/3] Add spi-nor flash device pm support
Kamal Dasu
kdasu.kdev at gmail.com
Fri Feb 24 12:16:36 PST 2017
Changes since v5 based on review comments:
spi-nor.h
- Added flash state field
- Added spin_lock for flash state change
- Added wait queue for synchronization of spi-nor ops between
mtd and spi-nor driver
spi-nor.c
- Added spi_nor_get/release_device() flash state syncronization functions
- Added mtd suspend and resume handlers
rerverted m25p80.c changes
The V5 changes below implements power management support using the mtd
handlers for resume and suspend in the spi-nor driver. Implemented flash
state synchronization methods based on other mtd device drivers.
spi-nor mtd pm resume() calls newly implemented spi_nor_init() function
that sets up the spi-nor flash to its pre-suspend state. This is needed
on platfroms that turn off power to the spi-nor flash on pm suspend.
The code has been rebased to git://github.com/spi-nor/linux.git next
branch.
Kamal Dasu (3):
mtd: spi-nor: Add spi-nor init function
mtd: spi-nor: Add spi-nor flash device synchronization between flash
states
mtd: spi-nor: Add spi-nor mtd suspend and resume handlers
drivers/mtd/spi-nor/spi-nor.c | 170 +++++++++++++++++++++++++++++++++++-------
include/linux/mtd/spi-nor.h | 22 +++++-
2 files changed, 164 insertions(+), 28 deletions(-)
--
1.9.1
More information about the linux-mtd
mailing list