Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1281834
| From | Peter Ujfalusi <peter.ujfalusi@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC v03 01/15] dmaengine: core: Skip mask matching when it is not provided to private_candidate |
| Date | 2015-12-02 15:10 +0100 |
| Message-ID | <qBggA-8db-57@gated-at.bofh.it> (permalink) |
| References | <qBggx-8db-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
If mask is NULL skip the mask matching against the DMA device capabilities.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
drivers/dma/dmaengine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c
index daf54a39bcc7..6311e1fc80be 100644
--- a/drivers/dma/dmaengine.c
+++ b/drivers/dma/dmaengine.c
@@ -515,7 +515,7 @@ static struct dma_chan *private_candidate(const dma_cap_mask_t *mask,
{
struct dma_chan *chan;
- if (!__dma_device_satisfies_mask(dev, mask)) {
+ if (mask && !__dma_device_satisfies_mask(dev, mask)) {
pr_debug("%s: wrong capabilities\n", __func__);
return NULL;
}
--
2.6.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC v03 00/15] dmaengine: New 'universal' API for requesting channel Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-12-02 15:10 +0100 [RFC v03 08/15] ARM: davinci: dm644x: Add dma_filter_map to edma Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-12-02 15:10 +0100 [RFC v03 15/15] ARM: davinci: dm365: Remove DMA resources for SPI Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-12-02 15:10 +0100 [RFC v03 05/15] ARM: davinci: devices-da8xx: Add dma_filter_map to edma Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-12-02 15:10 +0100 [RFC v03 01/15] dmaengine: core: Skip mask matching when it is not provided to private_candidate Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-12-02 15:10 +0100 [RFC v03 04/15] dmaengine: edma: Add support for DMA filter mapping to slave devices Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-12-02 15:10 +0100 [RFC v03 06/15] ARM: davinci: dm355: Add dma_filter_map to edma Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-12-02 15:10 +0100 Re: [RFC v03 00/15] dmaengine: New 'universal' API for requesting channel Andy Shevchenko <andy.shevchenko@gmail.com> - 2015-12-02 15:40 +0100
csiph-web