From: Barry Song Date: Thu, 5 Aug 2010 15:07:44 +0000 (-0400) Subject: mtd: Blackfin NFC: fix raw page write/read handling X-Git-Tag: v2.6.36-rc1~301^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=085d45fb5216c25b69103e5d861fabdc4389e221;p=pandora-kernel.git 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 Signed-off-by: Mike Frysinger Signed-off-by: David Woodhouse --- Reading git-diff-tree failed