mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
dmaengine: core: Skip mask matching when it is not provided to private_candidate
If mask is NULL skip the mask matching against the DMA device capabilities. Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
parent
8005c49d9a
commit
26b64256e0
1 changed files with 1 additions and 1 deletions
|
|
@ -511,7 +511,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue