From: Danny Wood Date: Fri, 3 May 2019 08:57:38 +0000 (+0100) Subject: dma: dmaengine: Do not skip opening a 'busy' DMA channel as it crashes the kernel... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f0e65204b80ad15a8bdbf1468ed9b264058985e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git dma: dmaengine: Do not skip opening a 'busy' DMA channel as it crashes the kernel and doesn't seem to be necessary --- diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 18cb0f83bdb..8fc2415e328 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c @@ -494,9 +494,10 @@ static struct dma_chan *private_candidate(const dma_cap_mask_t *mask, list_for_each_entry(chan, &dev->channels, device_node) { if (chan->client_count) { - pr_debug("%s: %s busy\n", - __func__, dma_chan_name(chan)); - continue; + pr_debug("%s: %s busy (%i)\n", + __func__, dma_chan_name(chan), chan->client_count); + /* Skipping "busy" DMA channels crashes the kernel, seems to work fine without skipping */ + //continue; } if (fn && !fn(chan, fn_param)) { pr_debug("%s: %s filter said false\n",