spi/dw_spi: change poll mode transfer from byte ops to batch ops
authorAlek Du <alek.du@intel.com>
Wed, 30 Mar 2011 15:09:54 +0000 (23:09 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 31 Mar 2011 03:31:48 +0000 (21:31 -0600)
commit2ff271bf6505038d8c937e73438ea3c80c387439
tree082f4462c98661a6b4da3e924cafe20df9cf9218
parent8a33a373e5ffb6040c58ff41ea48ba21d5f8b5e9
spi/dw_spi: change poll mode transfer from byte ops to batch ops

Current poll transfer will read/write one word, then wait till the
hw is non-busy, it's not efficient. This patch will try to read/write
as many words as permitted by hardware FIFO depth.

Signed-off-by: Alek Du <alek.du@intel.com>
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/dw_spi.c