OSDN Git Service

spi: spi_qsd: Disable packing for unaliged non DMA mode transfers
authorMukesh Kumar Savaliya <msavaliy@codeaurora.org>
Fri, 31 Mar 2017 07:09:11 +0000 (12:39 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 6 Apr 2017 11:43:05 +0000 (04:43 -0700)
commitcbea40b0e1cd9cf79ed24d3f4e1a78305cbc2237
tree04215dadbf8d107156b097e6b1066c8b3d594a96
parentd0aa676fad379c393a3b11000048d789c7f7b6e7
spi: spi_qsd: Disable packing for unaliged non DMA mode transfers

SPI core has a characterstic that it always sends data in FIFO word size
when we compress the data and fill the FIFO. This helps to improve the
overall througput but sometimes for the data transfers which is not
aligned to FIFO Word [i.e 4] it pads extra bytes and sends out which can
mislead spi slave device.

Do not enable packing if it's a FIFO mode transfer and data size is not
aligned to FIFO word size.

Change-Id: I28f4e3e38db4b882f229c00aa54aabdc72d2c139
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
drivers/spi/spi_qsd.c