<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/dma/fsldma.c, branch linux-4.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-03-03T16:44:36Z</updated>
<entry>
<title>dmaengine: fsldma: Fix a resource leak in an error handling path of the probe function</title>
<updated>2021-03-03T16:44:36Z</updated>
<author>
<name>Christophe JAILLET</name>
</author>
<published>2020-12-12T16:06:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=225dd0f10d2a450dfc4c11c30bdac1e2e4456b12'/>
<id>urn:sha1:225dd0f10d2a450dfc4c11c30bdac1e2e4456b12</id>
<content type='text'>
[ Upstream commit b202d4e82531a62a33a6b14d321dd2aad491578e ]

In case of error, the previous 'fsl_dma_chan_probe()' calls must be undone
by some 'fsl_dma_chan_remove()', as already done in the remove function.

It was added in the remove function in commit 77cd62e8082b ("fsldma: allow
Freescale Elo DMA driver to be compiled as a module")

Fixes: d3f620b2c4fe ("fsldma: simplify IRQ probing and handling")
Signed-off-by: Christophe JAILLET &lt;christophe.jaillet@wanadoo.fr&gt;
Link: https://lore.kernel.org/r/20201212160614.92576-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>dmaengine: fsldma: Fix a resource leak in the remove function</title>
<updated>2021-03-03T16:44:36Z</updated>
<author>
<name>Christophe JAILLET</name>
</author>
<published>2020-12-12T16:05:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f7c051a9c59e65f7167befb2da8597f223db7ea4'/>
<id>urn:sha1:f7c051a9c59e65f7167befb2da8597f223db7ea4</id>
<content type='text'>
[ Upstream commit cbc0ad004c03ad7971726a5db3ec84dba3dcb857 ]

A 'irq_dispose_mapping()' call is missing in the remove function.
Add it.

This is needed to undo the 'irq_of_parse_and_map() call from the probe
function and already part of the error handling path of the probe function.

It was added in the probe function only in commit d3f620b2c4fe ("fsldma:
simplify IRQ probing and handling")

Fixes: 77cd62e8082b ("fsldma: allow Freescale Elo DMA driver to be compiled as a module")
Signed-off-by: Christophe JAILLET &lt;christophe.jaillet@wanadoo.fr&gt;
Link: https://lore.kernel.org/r/20201212160516.92515-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul &lt;vkoul@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'topic/unmap_cleanup' into for-linus</title>
<updated>2016-10-03T04:06:11Z</updated>
<author>
<name>Vinod Koul</name>
</author>
<published>2016-10-03T04:06:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=96622bde4c3fc0b442d25646f70043a884d54285'/>
<id>urn:sha1:96622bde4c3fc0b442d25646f70043a884d54285</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'topic/err_reporting' into for-linus</title>
<updated>2016-10-03T03:47:33Z</updated>
<author>
<name>Vinod Koul</name>
</author>
<published>2016-10-03T03:47:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=11bfedff5594eef74617e6aa02986cf517526b98'/>
<id>urn:sha1:11bfedff5594eef74617e6aa02986cf517526b98</id>
<content type='text'>
Signed-off-by: Vinod Koul &lt;vinod.koul@intel.com&gt;

Conflicts:
	drivers/dma/cppi41.c
</content>
</entry>
<entry>
<title>dmaengine: fsldma: Unmap region obtained by of_iomap</title>
<updated>2016-09-30T17:55:14Z</updated>
<author>
<name>Arvind Yadav</name>
</author>
<published>2016-09-28T10:45:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=585a1db1bed7a0cf5142f859430024b98475a219'/>
<id>urn:sha1:585a1db1bed7a0cf5142f859430024b98475a219</id>
<content type='text'>
Free memory mapping, if probe is not successful.

Signed-off-by: Arvind Yadav &lt;arvind.yadav.cs@gmail.com&gt;
Acked-by: Li Yang &lt;leoyang.li@nxp.com&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@intel.com&gt;
</content>
</entry>
<entry>
<title>dmaengine: NO_IRQ removal from powerpc-only drivers</title>
<updated>2016-09-14T13:27:38Z</updated>
<author>
<name>Michael Ellerman</name>
</author>
<published>2016-09-10T09:56:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aa570be6de67f3772cc850a7bfbe659214aa9ee4'/>
<id>urn:sha1:aa570be6de67f3772cc850a7bfbe659214aa9ee4</id>
<content type='text'>
We'd like to eventually remove NO_IRQ on powerpc, so remove usages of it
from powerpc-only drivers.

Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@intel.com&gt;
</content>
</entry>
<entry>
<title>dmaengine: fsldma: move unmap to before callback</title>
<updated>2016-08-08T02:41:43Z</updated>
<author>
<name>Dave Jiang</name>
</author>
<published>2016-07-25T17:33:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9b335978f7081cd4fe264709599a18073e12fee2'/>
<id>urn:sha1:9b335978f7081cd4fe264709599a18073e12fee2</id>
<content type='text'>
Completion callback should happen after dma_descriptor_unmap() has
happened. This allow the cache invalidate to happen and ensure that
the data accessed by the upper layer is in memory that was from DMA
rather than stale data. On some architecture this is done by the
hardware, however we should make the code consistent to not cause
confusion.

Signed-off-by: Dave Jiang &lt;dave.jiang@intel.com&gt;
Acked-by: Li Yang &lt;leoyang.li@nxp.com&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@intel.com&gt;
</content>
</entry>
<entry>
<title>dmaengine: fsldma: convert callback to helper function</title>
<updated>2016-08-08T02:41:39Z</updated>
<author>
<name>Dave Jiang</name>
</author>
<published>2016-07-20T20:11:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=af1a5a5114e0f3646dbe1be0d42ec1a3a373223f'/>
<id>urn:sha1:af1a5a5114e0f3646dbe1be0d42ec1a3a373223f</id>
<content type='text'>
This is in preperation of moving to a callback that provides results to the
callback for the transaction. The conversion will maintain current behavior
and the driver must convert to new callback mechanism at a later time in
order to receive results.

Signed-off-by: Dave Jiang &lt;dave.jiang@intel.com&gt;
Reviewed-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Cc: Li Yang &lt;leoli@freescale.com&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@intel.com&gt;
</content>
</entry>
<entry>
<title>dmaengine: Remove site specific OOM error messages on kzalloc</title>
<updated>2016-06-21T16:05:00Z</updated>
<author>
<name>Peter Griffin</name>
</author>
<published>2016-06-07T17:38:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aef94fea97eb77f86159375825a370b45d9f2fec'/>
<id>urn:sha1:aef94fea97eb77f86159375825a370b45d9f2fec</id>
<content type='text'>
If kzalloc() fails it will issue it's own error message including
a dump_stack(). So remove the site specific error messages.

Signed-off-by: Peter Griffin &lt;peter.griffin@linaro.org&gt;
Acked-by: Jon Hunter &lt;jonathanh@nvidia.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@intel.com&gt;
</content>
</entry>
<entry>
<title>dmaengine: fsldma: Use dma_pool_zalloc</title>
<updated>2016-05-03T06:53:25Z</updated>
<author>
<name>Julia Lawall</name>
</author>
<published>2016-04-29T20:09:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4376455727dcf627f12c3d209410ac576c0e8f0e'/>
<id>urn:sha1:4376455727dcf627f12c3d209410ac576c0e8f0e</id>
<content type='text'>
Dma_pool_zalloc combines dma_pool_alloc and memset 0.  The semantic patch
that makes this transformation is as follows: (http://coccinelle.lip6.fr/)

// &lt;smpl&gt;
@@
expression d,e;
statement S;
@@

        d =
-            dma_pool_alloc
+            dma_pool_zalloc
             (...);
        if (!d) S
-       memset(d, 0, sizeof(*d));
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Acked-by: Li Yang &lt;leoyang.li@nxp.com&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@intel.com&gt;
</content>
</entry>
</feed>
