]> bbs.cooldavid.org Git - net-next-2.6.git/commit
mtd: Blackfin NFC: fix raw page write/read handling
authorBarry Song <barry.song@analog.com>
Thu, 5 Aug 2010 15:07:44 +0000 (11:07 -0400)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 5 Aug 2010 15:14:04 +0000 (16:14 +0100)
commit085d45fb5216c25b69103e5d861fabdc4389e221
treeddddd005d86f5e4e084b3d0f01e4a9a12fc23645
parent7ee064c90b3a65aa0c8d8cd87681177645db494e
mtd: Blackfin NFC: fix raw page write/read handling

Our write_buf/read_buf funcs always do ECC in HW ECC mode.  That is not
needed for raw funcs.  In fact, write_buf/read_buf should be a pure func
for data input/output while chip->ecc.hwctl controls ECC.  Unfortunately,
we can't separate ECC from normal data input/output in our NFC, so our DMA
write_buf/read_buf entries are coupled with ECC operations closely.

Thus we need to provide dedicated read_page_raw/write_page_raw funcs where
we do non-DMA transactions so as to avoid automatic ECC.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/bf5xx_nand.c