From eeb7139524d1851c29b5c02b3dcd6679299a104e Mon Sep 17 00:00:00 2001 From: Qipan Li Date: Sat, 1 Mar 2014 12:38:17 +0800 Subject: [PATCH] spi: sirf: provide a shortcut for spi command-data mode there are many SPI clients which use the following protocal: step 1: send command bytes to clients(rx buffer is empty) step 2: send data bytes to clients or receive data bytes from clients. SiRFprimaII provides a shortcut for this kind of SPI transfer. when tx buf is less or equal than 4 bytes and rx buf is null in a transfer, we think it as 'command' data and use hardware command register for the transfer. here we can save some CPU loading than doing both tx and rx for a normal transfer. Signed-off-by: Qipan Li Signed-off-by: Barry Song Signed-off-by: Mark Brown --- Reading git-format-patch failed