dma: dmaengine: Do not skip opening a 'busy' DMA channel as it crashes the kernel...
authorDanny Wood <danwood76@gmail.com>
Fri, 3 May 2019 08:57:38 +0000 (09:57 +0100)
committerDanny Wood <danwood76@gmail.com>
Sat, 4 May 2019 09:49:09 +0000 (10:49 +0100)
drivers/dma/dmaengine.c

index 18cb0f83bdbcace01a6df6d467a29156232b8268..8fc2415e3281d4459d396305a569055696790559 100644 (file)
@@ -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",