Skip to content
Snippets Groups Projects
Commit 13fbde6e authored by Jeroen Hofstee's avatar Jeroen Hofstee Committed by Tom Rini
Browse files

nand, gpmc: fix reading after switching ecc


The omap_gpmc allows switching ecc at runtime. Since
the NAND_SUBPAGE_READ flag is only set, it is kept when
switching to hw ecc, which is not correct. This leads to
calling chip->ecc.read_subpage which is not a valid
pointer. Therefore clear the flag when switching ecc so
reading in hw mode works again.

Cc: Scott Wood <scottwood@freescale.com>
Cc: Pekon Gupta <pekon@ti.com>
Cc: Nikita Kiryanov <nikita@compulab.co.il>
Signed-off-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
parent 09b72d69
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment