mtd: nand: mtk: use nand_reset() to reset NAND devices in resume function
authorXiaolei Li <xiaolei.li@mediatek.com>
Thu, 2 Nov 2017 02:05:07 +0000 (10:05 +0800)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 30 Nov 2017 09:57:27 +0000 (10:57 +0100)
commitf883199d17b87e86a4ebd50bdee69285814bdce7
tree6815b01122e909119379dc9234957c88524ce320
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
mtd: nand: mtk: use nand_reset() to reset NAND devices in resume function

Previously, we only select chips and then send reset command to a NAND
device during resuming nand driver. There is a lack of deselecting chips.
It is advised to reset and initialize a NAND device using nand_reset().

Signed-off-by: Xiaolei Li <xiaolei.li@mediatek.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/mtk_nand.c