summaryrefslogtreecommitdiff
path: root/drivers/scsi/qlogicfas.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-07-24 16:01:08 +0300
committerMark Brown <broonie@kernel.org>2015-07-24 18:08:55 +0300
commitf6ee9b582d2db652497b73c1f117591dfb6d3a90 (patch)
tree159729be53052426dee06c841d852dad1293113a /drivers/scsi/qlogicfas.c
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff)
downloadlinux-f6ee9b582d2db652497b73c1f117591dfb6d3a90.tar.xz
spi: imx: Fix small DMA transfers
DMA transfers must be greater than the watermark level size. spi_imx->rx_wml and spi_imx->tx_wml contain the watermark level in 32bit words whereas struct spi_transfer contains the transfer len in bytes. Fix the check if DMA is possible for a transfer accordingly. This fixes transfers with sizes between 33 and 128 bytes for which previously was claimed that DMA is possible. Fixes: f62caccd12c17e4 (spi: spi-imx: add DMA support) Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Cc: stable@vger.kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/scsi/qlogicfas.c')
0 files changed, 0 insertions, 0 deletions