forked from Minki/linux
73e1cc4a4a
blk_queue_ordered() has been deprecated and replaced with blk_queue_flush() by Tejun. However, use of blk_queue_ordered() in spectra nand driver has not been converted yet and thus results in the following build error. drivers/staging/spectra/ffsport.c: In function SBD_setup_device: drivers/staging/spectra/ffsport.c:659: error: implicit declaration of function blk_queue_ordered drivers/staging/spectra/ffsport.c:659: error: QUEUE_ORDERED_DRAIN_FLUSH undeclared (first use in this function) drivers/staging/spectra/ffsport.c:659: error: (Each undeclared identifier is reported only once drivers/staging/spectra/ffsport.c:659: error: for each function it appears in.) Signed-off-by: Yong Wang <yong.y.wang@intel.com> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
||
---|---|---|
.. | ||
ffsdefs.h | ||
ffsport.c | ||
ffsport.h | ||
flash.c | ||
flash.h | ||
Kconfig | ||
lld_cdma.c | ||
lld_cdma.h | ||
lld_emu.c | ||
lld_emu.h | ||
lld_mtd.c | ||
lld_mtd.h | ||
lld_nand.c | ||
lld_nand.h | ||
lld.c | ||
lld.h | ||
Makefile | ||
nand_regs.h | ||
README | ||
spectraswconfig.h |
This is a driver for NAND controller of Intel Moorestown platform. This driver is a standalone linux block device driver, it acts as if it's a normal hard disk. It includes three layer: block layer interface - file ffsport.c Flash Translation Layer (FTL) - file flash.c (implement the NAND flash Translation Layer, includs address mapping, garbage collection, wear-leveling and so on) Low level layer - file lld_nand.c/lld_cdma.c/lld_emu.c (which implements actual controller hardware registers access) This driver can be build as modules or build-in. Dependency: This driver has dependency on IA Firmware of Intel Moorestown platform. It need the IA Firmware to create the block table for the first time. And to validate this driver code without IA Firmware, you can change the macro AUTO_FORMAT_FLASH from 0 to 1 in file spectraswconfig.h. Thus the driver will erase the whole nand flash and create a new block table. TODO: - Enable Command DMA feature support - lower the memory footprint - Remove most of the unnecessary global variables - Change all the upcase variable / functions name to lowercase - Some other misc bugs Please send patches to: Greg Kroah-Hartman <gregkh@suse.de> And Cc to: Gao Yunpeng <yunpeng.gao@intel.com>