mtd: brcmnand: Force 8bit mode before doing nand_scan_ident()
authorAnup Patel <anup.patel@broadcom.com>
Fri, 30 Oct 2015 06:59:20 +0000 (12:29 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 30 Oct 2015 18:50:38 +0000 (11:50 -0700)
commit4d1ea982a9beb4e47bba41131973329e2a012b38
tree4c577523fde06b865d5ef06d7dd0c3430680393b
parent3f06d2a912b55c53e9efbd799f7205dbfe041029
mtd: brcmnand: Force 8bit mode before doing nand_scan_ident()

Just like other NAND controllers, the NAND READID command only works
in 8bit mode for all versions of BRCMNAND controller.

This patch forces 8bit mode for each NAND CS in brcmnand_init_cs()
before doing nand_scan_ident() to ensure that BRCMNAND controller
is in 8bit mode when NAND READID command is issued.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/brcmnand/brcmnand.c