RE: [PATCH 6/9] dmaengine: consolidate tx_status functions

2012-03-06 Thread H Hartley Sweeten
atus(chan, cookie, state); > spin_unlock_irqrestore(&edmac->lock, flags); > > - ret = dma_async_is_complete(cookie, last_completed, last_used); > - dma_set_tx_state(state, last_completed, last_used, 0); > - > return ret; > } > For ep93xx: Tested-by: H Hartley Sweeten Acked-by: H Hartley Sweeten ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

RE: [PATCH 5/9] dmaengine: provide a common function for completing a dma descriptor

2012-03-06 Thread H Hartley Sweeten
edmac->chan.completed_cookie = desc->txd.cookie; > + dma_cookie_complete(&desc->txd); > list_splice_init(&edmac->active, &list); > } > callback = desc->txd.callback; For ep93xx: Tested-by: H Hartley Sweeten Acked-by: H Hartley Sweeten ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

RE: [PATCH 4/9] dmaengine: consolidate assignment of DMA cookies

2012-03-06 Thread H Hartley Sweeten
c->chan.cookie; > - > - if (++cookie < 0) > - cookie = 1; > + cookie = dma_cookie_assign(tx); > > desc = container_of(tx, struct ep93xx_dma_desc, txd); > > - edmac->chan.cookie = cookie; > - desc->txd.cookie = cookie; &

RE: [PATCH 3/9] dmaengine: add private header file

2012-03-06 Thread H Hartley Sweeten
maengine.h > +++ b/include/linux/dmaengine.h > @@ -18,8 +18,8 @@ > * The full GNU General Public License is included in this distribution in > the > * file called COPYING. > */ > -#ifndef DMAENGINE_H > -#define DMAENGINE_H > +#ifndef LINUX_DMAENGINE_H > +#define LINUX_

RE: [PATCH 2/9] dmaengine: move last completed cookie into generic dma_chan structure

2012-03-06 Thread H Hartley Sweeten
okie: last completed cookie for this channel > * @chan_id: channel ID for sysfs > * @dev: class device for sysfs > * @device_node: used to add this to the device chan list > @@ -268,6 +269,7 @@ struct dma_chan_percpu { > struct dma_chan { > struct dma_device *device;

RE: [PATCH 6/9] dmaengine: consolidate tx_status functions

2012-03-05 Thread H Hartley Sweeten
On Monday, March 05, 2012 1:17 PM, Russell King wrote: > > 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

RE: [PATCH 0/9] DMA engine cookie handling cleanups

2012-03-05 Thread H Hartley Sweeten
On Monday, March 05, 2012 1:51 PM, Linus Walleij wrote: > On Mon, Mar 5, 2012 at 9:14 PM, Russell King - ARM Linux wrote: > >> This patch series cleans up the handling of cookies in DMA engine drivers. >> This is done by providing a set of inline library functions for common >> tasks: > > Overall t

RE: [PATCH 6/9] dmaengine: consolidate tx_status functions

2012-03-05 Thread H Hartley Sweeten
On Monday, March 05, 2012 1:17 PM, Russell King wrote: > > 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 t

RE: [PATCH 3/9] dmaengine: add private header file

2012-03-05 Thread H Hartley Sweeten
On Monday, March 05, 2012 1:16 PM, Russell King wrote: > > Add a local private header file to contain definitions and declarations > which should only be used by DMA engine drivers. > > Signed-off-by: Russell King > --- > drivers/dma/amba-pl08x.c|2 ++ > drivers/dma/at_hdmac.c |1

[PATCH] nodmask.h: remove macro any_online_node

2010-01-06 Thread H Hartley Sweeten
st use the first_online_node macro and remove the any_online_node macro since there are no users. Signed-off-by: H Hartley Sweeten Cc: Andrew Morton Cc: David Rientjes Cc: KAMEZAWA Hiroyuki Cc: Mel Gorman Cc: Lee Schermerhorn Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Dave Hansen Cc: Milton

RE: [PATCH] arch/powerpc/boot/devtree.c: use %pM to show MAC address

2009-12-31 Thread H Hartley Sweeten
On Wednesday, December 30, 2009 9:49 PM, Paul Mackerras wrote: > On Wed, Dec 30, 2009 at 02:30:39PM -0500, H Hartley Sweeten wrote: > >> Use the %pM kernel extension to display the MAC address. >> >> Signed-off-by: H Hartley Sweeten >> >> --- > > Nak -

[PATCH] arch/powerpc/boot/devtree.c: use %pM to show MAC address

2009-12-30 Thread H Hartley Sweeten
Use the %pM kernel extension to display the MAC address. Signed-off-by: H Hartley Sweeten --- diff --git a/arch/powerpc/boot/devtree.c b/arch/powerpc/boot/devtree.c index a7e21a3..a2f07a5 100644 --- a/arch/powerpc/boot/devtree.c +++ b/arch/powerpc/boot/devtree.c @@ -93,10 +93,7 @@ void