]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: dw-mid: respect 8 bit mode
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 18 Sep 2014 17:08:51 +0000 (20:08 +0300)
committerZefan Li <lizefan@huawei.com>
Mon, 2 Feb 2015 09:04:41 +0000 (17:04 +0800)
commit08b407459f4ece5096105730a2c7d1da1d16fb9e
treec83211eca622b7fe9ba7c2e2504e0f8e449dd2cd
parent67ecb11ce62e9d87b29edbf73bf87c562206edcb
spi: dw-mid: respect 8 bit mode

commit b41583e7299046abdc578c33f25ed83ee95b9b31 upstream.

In case of 8 bit mode and DMA usage we end up with every second byte written as
0. We have to respect bits_per_word settings what this patch actually does.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/spi/spi-dw-mid.c