]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
mtd: nand: Arasan: Fix initialization of controller structure
authorMartin Lund <malu@gomspace.com>
Fri, 12 Oct 2018 09:16:42 +0000 (14:46 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 15 Oct 2018 06:17:59 +0000 (08:17 +0200)
commit17c06e92f3465ad5b81c93f528787d2bd6fe639c
tree18b15e8d727e779d45789b154afb5414fa16e4c1
parent75984ce2183fa9f279cdd5520316a8503d7f6eaf
mtd: nand: Arasan: Fix initialization of controller structure

Make sure that the controller structure is initialized using the
nand_hw_control_init() function. This way the spinlock, waitqueue
elements etc. of the structure will be correctly initialized.

Without this fix the nand driver have been seen stalling, especially
when stress tested.

Signed-off-by: Martin Lund <malu@gomspace.com>
Reviewed-by: Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mtd/nand/arasan_nand.c