Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281590
b: refs/heads/master
c: 3e2ec13
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Abraham authored and Kukjin Kim committed Dec 23, 2011
1 parent a494961 commit c960381
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a169a888bf8c5490ae0377fcd0ad22c6af9fd8e7
refs/heads/master: 3e2ec13a8185183cd7ff237dadc948a0f9f7398f
6 changes: 0 additions & 6 deletions trunk/arch/arm/plat-samsung/dma-ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@

#include <mach/dma.h>

static inline bool pl330_filter(struct dma_chan *chan, void *param)
{
struct dma_pl330_peri *peri = chan->private;
return peri->peri_id == (unsigned)param;
}

static unsigned samsung_dmadev_request(enum dma_ch dma_ch,
struct samsung_dma_info *info)
{
Expand Down
15 changes: 15 additions & 0 deletions trunk/drivers/dma/pl330.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ struct dma_pl330_desc {
struct dma_pl330_chan *pchan;
};

/* forward declaration */
static struct amba_driver pl330_driver;

static inline struct dma_pl330_chan *
to_pchan(struct dma_chan *ch)
{
Expand Down Expand Up @@ -267,6 +270,18 @@ static void dma_pl330_rqcb(void *token, enum pl330_op_err err)
tasklet_schedule(&pch->task);
}

bool pl330_filter(struct dma_chan *chan, void *param)
{
struct dma_pl330_peri *peri;

if (chan->device->dev->driver != &pl330_driver.drv)
return false;

peri = chan->private;
return peri->peri_id == (unsigned)param;
}
EXPORT_SYMBOL(pl330_filter);

static int pl330_alloc_chan_resources(struct dma_chan *chan)
{
struct dma_pl330_chan *pch = to_pchan(chan);
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/amba/pl330.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#ifndef __AMBA_PL330_H_
#define __AMBA_PL330_H_

#include <linux/dmaengine.h>
#include <asm/hardware/pl330.h>

struct dma_pl330_peri {
Expand All @@ -38,4 +39,5 @@ struct dma_pl330_platdata {
unsigned mcbuf_sz;
};

extern bool pl330_filter(struct dma_chan *chan, void *param);
#endif /* __AMBA_PL330_H_ */

0 comments on commit c960381

Please sign in to comment.