mtd: spi-nor: Fix whole chip erasing for stacked chips.
authormar.krzeminski <mar.krzeminski@gmail.com>
Fri, 6 Jan 2017 17:19:00 +0000 (18:19 +0100)
committerCyrille Pitchen <cyrille.pitchen@atmel.com>
Wed, 22 Mar 2017 20:52:53 +0000 (21:52 +0100)
commit2f5ad7f0f3e16772bafa692ad42b5af4dea292f6
tree94bb4a3eca3012df38e0aa553afeeccc4d0e135e
parentca1fa1a8a6dae3e10c73bc5f1da728e662ee9d8b
mtd: spi-nor: Fix whole chip erasing for stacked chips.

Currently it is possible to disable chip erase for spi-nor driver.
Some modern stacked (multi die) flash chips do not support chip
erase opcode at all but spi-nor framework needs to cope with them too.
This commit extends existing functionality to allow disable
chip erase for a single flash chip.

Signed-off-by: Marcin Krzeminski <mar.krzeminski@gmail.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
drivers/mtd/spi-nor/spi-nor.c