spi: fix freeze issue when spi transferring special length of data

Fix DMA mode will freeze when transfering
8 bytes/8 bits,16 bytes/16 bits, 32 bytes/32 bits.
and enable DMA mode in spi transferring.

Cherry-pick from:
https://github.com/01org/edison-linux/commit/2d7dacd26d06afec9fd4d7a5df73bc4f77571195

Signed-off-by: Shimin Zhou <shimingx.zhou@intel.com>
Signed-off-by: Zhenming Zhao <zhenmingx.zhao@intel.com>
BUG=26065307
Change-Id: I851219a761b6c65cd7a8edc1370c054ce6c35883
3 files changed