From: Mark Brown Date: Sat, 16 Aug 2014 15:27:41 +0000 (+0100) Subject: spi: Only call transfer_one() if we have buffers to transfer X-Git-Tag: fixes-for-v3.18-merge-window~30^2~6^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38ec10f60d9ca3a7eb3a5b52500a67479296b86f;p=pandora-kernel.git spi: Only call transfer_one() if we have buffers to transfer Client drivers such as the ChomeOS EC driver sometimes use transfers with no buffers and only a delay specified in order to allow a delay after the assertion of /CS. Rather than require controller drivers handle this noop case gracefully put checks in the core to ensure that we don't call into the controller for such transfers. Reported-by: Addy Ke Tested-by: Doug Anderson Reviewed-by: Doug Anderson Signed-off-by: Mark Brown --- Reading git-diff-tree failed