Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234998
b: refs/heads/master
c: 60a230e
h: refs/heads/master
v: v3
  • Loading branch information
Viresh Kumar authored and Jeff Garzik committed Mar 14, 2011
1 parent 72f43ab commit 65b21e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 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: 8d7b1c70b3c1aac4b63109f5c73f732f1d63fad6
refs/heads/master: 60a230e4a62be6837335911b09101bd8aeb7c95a
7 changes: 6 additions & 1 deletion trunk/drivers/ata/pata_arasan_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ struct arasan_cf_dev {
struct dma_chan *dma_chan;
/* Mask for DMA transfers */
dma_cap_mask_t mask;
/* dma channel private data */
void *dma_priv;
/* DMA transfer work */
struct work_struct work;
/* DMA delayed finish work */
Expand Down Expand Up @@ -356,6 +358,7 @@ static void dma_callback(void *dev)

static bool filter(struct dma_chan *chan, void *slave)
{
chan->private = slave;
return true;
}

Expand Down Expand Up @@ -526,7 +529,8 @@ static void data_xfer(struct work_struct *work)

/* request dma channels */
/* dma_request_channel may sleep, so calling from process context */
acdev->dma_chan = dma_request_channel(acdev->mask, filter, NULL);
acdev->dma_chan = dma_request_channel(acdev->mask, filter,
acdev->dma_priv);
if (!acdev->dma_chan) {
dev_err(acdev->host->dev, "Unable to get dma_chan\n");
goto chan_request_fail;
Expand Down Expand Up @@ -853,6 +857,7 @@ static int __devinit arasan_cf_probe(struct platform_device *pdev)
INIT_WORK(&acdev->work, data_xfer);
INIT_DELAYED_WORK(&acdev->dwork, delayed_finish);
dma_cap_set(DMA_MEMCPY, acdev->mask);
acdev->dma_priv = pdata->dma_priv;

/* Handle platform specific quirks */
if (pdata->quirk) {
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/pata_arasan_cf_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ struct arasan_cf_pdata {
#define CF_BROKEN_PIO (1)
#define CF_BROKEN_MWDMA (1 << 1)
#define CF_BROKEN_UDMA (1 << 2)
/* This is platform specific data for the DMA controller */
void *dma_priv;
};

static inline void
Expand Down

0 comments on commit 65b21e3

Please sign in to comment.