spi: respect the maximum segment size of DMA device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 9 Mar 2016 09:20:00 +0000 (11:20 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 9 Mar 2016 09:33:52 +0000 (16:33 +0700)
commitdf88e91bbfd16662f3c8dcba27ad19e9eb4ebcef
treee33c2bf9e643e95cdf1d5793d5ff3b2d0d1c7237
parent92e963f50fc74041b5e9e744c330dca48e04f08d
spi: respect the maximum segment size of DMA device

The device which is actually does DMA may have a limitation of the maximum
segment size. Respect this setting when preparing scatter-gather list.

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