<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/dma/ppc4xx, branch linux-3.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2013-01-03T23:57:15Z</updated>
<entry>
<title>Drivers: dma: remove __dev* attributes.</title>
<updated>2013-01-03T23:57:15Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2012-12-21T23:09:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4bf27b8b333bcd291664fd0f7d129099d474a23b'/>
<id>urn:sha1:4bf27b8b333bcd291664fd0f7d129099d474a23b</id>
<content type='text'>
CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
markings need to be removed.

This change removes the use of __devinit, __devexit_p, __devinitconst,
and __devexit from these drivers.

Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.

Cc: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Cc: Viresh Kumar &lt;viresh.linux@gmail.com&gt;
Cc: Dan Williams &lt;djbw@fb.com&gt;
Cc: Vinod Koul &lt;vinod.koul@intel.com&gt;
Cc: Barry Song &lt;baohua.song@csr.com&gt;
Cc: Jeff Kirsher &lt;jeffrey.t.kirsher@intel.com&gt;
Cc: Alexander Duyck &lt;alexander.h.duyck@intel.com&gt;
Cc: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Cc: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Cc: Jassi Brar &lt;jassisinghbrar@gmail.com&gt;
Cc: Dave Jiang &lt;dave.jiang@intel.com&gt;
Cc: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Cc: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>dma: remove use of __devinit</title>
<updated>2012-11-28T20:42:36Z</updated>
<author>
<name>Bill Pemberton</name>
</author>
<published>2012-11-19T18:22:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=463a1f8b3ceebe990ca9a8c7cc2e51ee42cb48eb'/>
<id>urn:sha1:463a1f8b3ceebe990ca9a8c7cc2e51ee42cb48eb</id>
<content type='text'>
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Cc: Li Yang &lt;leoli@freescale.com&gt;
Cc: Zhang Wei &lt;zw@zh-kernel.org&gt;
Cc: Barry Song &lt;baohua.song@csr.com&gt;
Acked-by: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>dma: remove use of __devexit_p</title>
<updated>2012-11-28T20:41:36Z</updated>
<author>
<name>Bill Pemberton</name>
</author>
<published>2012-11-19T18:20:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a7d6e3ec28bba30d1409d70de1958edc6d9109d7'/>
<id>urn:sha1:a7d6e3ec28bba30d1409d70de1958edc6d9109d7</id>
<content type='text'>
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.

Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Acked-by: Barry Song &lt;baohua.song@csr.com&gt;
Acked-by: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
Acked-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>dma: fix comments</title>
<updated>2012-09-01T15:57:12Z</updated>
<author>
<name>Masanari Iida</name>
</author>
<published>2012-08-04T14:37:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d73111c6d43f08d697a3d986fe3bd8ca796a2096'/>
<id>urn:sha1:d73111c6d43f08d697a3d986fe3bd8ca796a2096</id>
<content type='text'>
Correct spelling typo in drivers/dma.

Signed-off-by: Masanari Iida &lt;standby24x7@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>dmaengine: ensure all DMA engine drivers initialize their cookies</title>
<updated>2012-03-13T06:07:42Z</updated>
<author>
<name>Russell King - ARM Linux</name>
</author>
<published>2012-03-06T22:36:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8ac695463f37af902e953d575d3f782e32e170da'/>
<id>urn:sha1:8ac695463f37af902e953d575d3f782e32e170da</id>
<content type='text'>
Ensure all DMA engine drivers initialize their cookies in the same way,
so that they all behave in a similar fashion.  This means their first
issued cookie will be 2 rather than 1, and will increment to INT_MAX
before returning 1 and starting over.

In connection with this, Dan Williams said:
&gt; Russell King wrote:
&gt; &gt; Secondly, some DMA engine drivers initialize the dma_chan cookie to 0,
&gt; &gt; others to 1.  Is there a reason for this, or are these all buggy?
&gt;
&gt; I know that ioat and iop-adma expect 0 to mean "I have cleaned up this
&gt; descriptor and it is idle", and would break if zero was an in-flight
&gt; cookie value.  The reserved usage of zero is an driver internal
&gt; concern, but I have no problem formalizing it as a reserved value.

Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Tested-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Acked-by: Jassi Brar &lt;jassisinghbrar@gmail.com&gt;
[imx-sdma.c &amp; mxs-dma.c]
Tested-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>dmaengine: fix cookie handling in iop-adma.c and ppc4xx/adma.c</title>
<updated>2012-03-13T06:07:33Z</updated>
<author>
<name>Russell King - ARM Linux</name>
</author>
<published>2012-03-06T22:36:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2a926e46022ad7a03e0ac167d8c2b0d88c12c5a8'/>
<id>urn:sha1:2a926e46022ad7a03e0ac167d8c2b0d88c12c5a8</id>
<content type='text'>
Dan Williams said:
&gt; &gt; Russell King wrote:
&gt; &gt; Firstly, we have DMA_MIN_COOKIE which has value 1 - so any cookies below
&gt; &gt; that aren't valid.  That seems sane.
&gt; &gt;
&gt; &gt; We seem to have different behaviours:
&gt; &gt;
&gt; &gt; -       cookie = c-&gt;cookie;
&gt; &gt; -       cookie++;
&gt; &gt; -       if (cookie &lt; 0)
&gt; &gt; -               cookie = 1;
&gt; &gt; -       c-&gt;cookie = cookie;
&gt; &gt; -       tx-&gt;cookie = cookie;
&gt; &gt;
&gt; &gt; c-&gt;cookie here is initialized to zero, so the first cookie given out will
&gt; &gt; be 1.  This is how most DMA engine drivers implement this.
&gt; &gt;
&gt; &gt; Then we have this:
&gt; &gt;
&gt; &gt;                cookie = chan-&gt;common.cookie;
&gt; &gt;                cookie++;
&gt; &gt;                if (cookie &lt;= 1)
&gt; &gt;                        cookie = 2;
&gt; &gt;
&gt; &gt;                /* initialize the completed cookie to be less than
&gt; &gt;                 * the most recently used cookie
&gt; &gt;                 */
&gt; &gt;                chan-&gt;common.completed_cookie = cookie - 1;
&gt; &gt;                chan-&gt;common.cookie = sw_desc-&gt;async_tx.cookie = cookie;
&gt; &gt;
&gt; &gt; Again, chan-&gt;common.cookie starts off at 0.  The first cookie given out
&gt; &gt; will be 2, and 1 will never be used.  There are three drivers which
&gt; &gt; implement it this way.
&gt; &gt;
&gt; &gt; Why is there this difference, and can these three be corrected to behave
&gt; &gt; the same way as the first (and therefore the assignment of cookies
&gt; &gt; consolidated?)
&gt;
&gt; Yes, they should be consolidated, and I believe they have drifted only
&gt; because there were no good common helpers and murphy's law took over.

So lets fix this up to use the common dma_cookie_assign() helper.

Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Tested-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Acked-by: Jassi Brar &lt;jassisinghbrar@gmail.com&gt;
[imx-sdma.c &amp; mxs-dma.c]
Tested-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>dmaengine: consolidate tx_status functions</title>
<updated>2012-03-13T06:07:14Z</updated>
<author>
<name>Russell King - ARM Linux</name>
</author>
<published>2012-03-06T22:35:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=96a2af41c78b1fbb1f567a3486bdc63f7b31c5fd'/>
<id>urn:sha1:96a2af41c78b1fbb1f567a3486bdc63f7b31c5fd</id>
<content type='text'>
Now that we have the completed cookie in the dma_chan structure, we
can consolidate the tx_status functions by providing a function to set
the txstate structure and returning the DMA status.  We also provide
a separate helper to set the residue for cookies which are still in
progress.

Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Tested-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Acked-by: Jassi Brar &lt;jassisinghbrar@gmail.com&gt;
[imx-sdma.c &amp; mxs-dma.c]
Tested-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>dmaengine: consolidate assignment of DMA cookies</title>
<updated>2012-03-13T06:06:52Z</updated>
<author>
<name>Russell King - ARM Linux</name>
</author>
<published>2012-03-06T22:34:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=884485e1f12dcd39390f042e772cdbefc9ebb750'/>
<id>urn:sha1:884485e1f12dcd39390f042e772cdbefc9ebb750</id>
<content type='text'>
Everyone deals with assigning DMA cookies in the same way (it's part of
the API so they should be), so lets consolidate the common code into a
helper function to avoid this duplication.

Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Tested-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Acked-by: Jassi Brar &lt;jassisinghbrar@gmail.com&gt;
[imx-sdma.c &amp; mxs-dma.c]
Tested-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>dmaengine: add private header file</title>
<updated>2012-03-13T06:06:44Z</updated>
<author>
<name>Russell King - ARM Linux</name>
</author>
<published>2012-03-06T22:34:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d2ebfb335b0426deb1a4fb14e4e926d81ecd8235'/>
<id>urn:sha1:d2ebfb335b0426deb1a4fb14e4e926d81ecd8235</id>
<content type='text'>
Add a local private header file to contain definitions and declarations
which should only be used by DMA engine drivers.

We also fix linux/dmaengine.h to use LINUX_DMAENGINE_H to guard against
multiple inclusion.

Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Tested-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Acked-by: Jassi Brar &lt;jassisinghbrar@gmail.com&gt;
[imx-sdma.c &amp; mxs-dma.c]
Tested-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>dmaengine: move last completed cookie into generic dma_chan structure</title>
<updated>2012-03-13T06:06:06Z</updated>
<author>
<name>Russell King - ARM Linux</name>
</author>
<published>2012-03-06T22:34:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4d4e58de32a192fea65ab84509d17d199bd291c8'/>
<id>urn:sha1:4d4e58de32a192fea65ab84509d17d199bd291c8</id>
<content type='text'>
Every DMA engine implementation declares a last completed dma cookie
in their private dma channel structures.  This is pointless, and
forces driver specific code.  Move this out into the common dma_chan
structure.

Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Tested-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Acked-by: Jassi Brar &lt;jassisinghbrar@gmail.com&gt;
[imx-sdma.c &amp; mxs-dma.c]
Tested-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@linux.intel.com&gt;
</content>
</entry>
</feed>
