diff options
author | Mans Rullgard <mans@mansr.com> | 2016-04-26 11:03:08 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-05-10 18:29:18 +0200 |
commit | ae4c3485fa861af51336e066e1ba42b92af03627 (patch) | |
tree | 4b060815783d2c9d9a4492cf2413c9cd9304738a /lib/atomic64_test.c | |
parent | ata: sata_dwc_460ex: select only core part of DMA driver (diff) | |
download | linux-ae4c3485fa861af51336e066e1ba42b92af03627.tar.xz linux-ae4c3485fa861af51336e066e1ba42b92af03627.zip |
ata: sata_dwc_460ex: skip dma setup for non-dma commands
Calling dmaengine_prep_slave_sg() for non-dma ATA commands is
unnecessary at best and could be harmful if the dma driver reacts
badly to this. It also causes this driver to print a bogus error
message in these cases.
This patch changes sata_dwc_qc_issue() to only do the dma setup
for dma commands and also reports an error to libata if if fails.
Tested-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'lib/atomic64_test.c')
0 files changed, 0 insertions, 0 deletions