diff options
author | 2015-06-14 15:48:26 -1000 | |
---|---|---|
committer | 2015-06-14 15:48:26 -1000 | |
commit | b86a7563ca617aa49dfd6b836da4dd0351fe2acc (patch) | |
tree | 29b6dc87f9a8f9cf2d1aee5e24c4f697240651a0 /drivers/dma/dmaengine.c | |
parent | Merge tag 'ntb-4.1' of git://github.com/jonmason/ntb (diff) | |
parent | dmaengine: Fix choppy sound because of unimplemented resume (diff) | |
download | linux-dev-b86a7563ca617aa49dfd6b836da4dd0351fe2acc.tar.xz linux-dev-b86a7563ca617aa49dfd6b836da4dd0351fe2acc.zip |
Merge branch 'fixes' of git://git.infradead.org/users/vkoul/slave-dma
Pull dmaengine fixes from Vinod Koul:
"Here are hopefully last set of fixes for 4.1. This time we have:
- fixing pause capability reporting on both dmaengine pause & resume
support by Krzysztof
- locking fix fir at_xdmac by Ludovic
- slave configuration fix for at_xdmac by Ludovic"
* 'fixes' of git://git.infradead.org/users/vkoul/slave-dma:
dmaengine: Fix choppy sound because of unimplemented resume
dmaengine: at_xdmac: rework slave configuration part
dmaengine: at_xdmac: lock fixes
Diffstat (limited to 'drivers/dma/dmaengine.c')
-rw-r--r-- | drivers/dma/dmaengine.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 2890d744bb1b..3ddfd1f6c23c 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c @@ -487,7 +487,11 @@ int dma_get_slave_caps(struct dma_chan *chan, struct dma_slave_caps *caps) caps->directions = device->directions; caps->residue_granularity = device->residue_granularity; - caps->cmd_pause = !!device->device_pause; + /* + * Some devices implement only pause (e.g. to get residuum) but no + * resume. However cmd_pause is advertised as pause AND resume. + */ + caps->cmd_pause = !!(device->device_pause && device->device_resume); caps->cmd_terminate = !!device->device_terminate_all; return 0; |