brcmnand: Clear EXT_ADDR error registers in PIO mode
authorSimon Arlott <simon@fire.lp0.eu>
Mon, 16 Nov 2015 22:05:39 +0000 (22:05 +0000)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 1 Dec 2015 01:52:29 +0000 (17:52 -0800)
commit0401669797488feb055521cade69b1d0e81669db
tree900f69f0ebc7424a2d71458ec0f39297ac6b4f09
parentfe7579d6122f2869d00b55842bca9e2a9be51607
brcmnand: Clear EXT_ADDR error registers in PIO mode

If an error occurs in flash above 4GB in PIO mode then the EXT_ADDR
registers will be set to the location of the error and never cleared.

Reset them to 0 before reading.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/brcmnand/brcmnand.c