Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307959
b: refs/heads/master
c: 95dcc2c
h: refs/heads/master
i:
  307957: 7b7a7cd
  307955: 2edd365
  307951: bab495c
v: v3
  • Loading branch information
Thomas Abraham authored and Chris Ball committed May 9, 2012
1 parent 47bf705 commit b4a0b30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 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: b41b6f1d1cb6a16c737c4699d2815112ec21faa6
refs/heads/master: 95dcc2cb6c9c84555c29187f8b7cf39e83991a29
14 changes: 6 additions & 8 deletions trunk/drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ struct dw_mci_slot {
int last_detect_state;
};

static struct workqueue_struct *dw_mci_card_workqueue;

#if defined(CONFIG_DEBUG_FS)
static int dw_mci_req_show(struct seq_file *s, void *v)
{
Expand Down Expand Up @@ -1605,7 +1603,7 @@ static irqreturn_t dw_mci_interrupt(int irq, void *dev_id)

if (pending & SDMMC_INT_CD) {
mci_writel(host, RINTSTS, SDMMC_INT_CD);
queue_work(dw_mci_card_workqueue, &host->card_work);
queue_work(host->card_workqueue, &host->card_work);
}

/* Handle SDIO Interrupts */
Expand Down Expand Up @@ -1844,7 +1842,7 @@ static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id)
* Card may have been plugged in prior to boot so we
* need to run the detect tasklet
*/
queue_work(dw_mci_card_workqueue, &host->card_work);
queue_work(host->card_workqueue, &host->card_work);

return 0;
}
Expand Down Expand Up @@ -2021,9 +2019,9 @@ int dw_mci_probe(struct dw_mci *host)
mci_writel(host, CLKSRC, 0);

tasklet_init(&host->tasklet, dw_mci_tasklet_func, (unsigned long)host);
dw_mci_card_workqueue = alloc_workqueue("dw-mci-card",
host->card_workqueue = alloc_workqueue("dw-mci-card",
WQ_MEM_RECLAIM | WQ_NON_REENTRANT, 1);
if (!dw_mci_card_workqueue)
if (!host->card_workqueue)
goto err_dmaunmap;
INIT_WORK(&host->card_work, dw_mci_work_routine_card);
ret = request_irq(host->irq, dw_mci_interrupt, host->irq_flags, "dw-mci", host);
Expand Down Expand Up @@ -2085,7 +2083,7 @@ int dw_mci_probe(struct dw_mci *host)
free_irq(host->irq, host);

err_workqueue:
destroy_workqueue(dw_mci_card_workqueue);
destroy_workqueue(host->card_workqueue);

err_dmaunmap:
if (host->use_dma && host->dma_ops->exit)
Expand Down Expand Up @@ -2119,7 +2117,7 @@ void dw_mci_remove(struct dw_mci *host)
mci_writel(host, CLKSRC, 0);

free_irq(host->irq, host);
destroy_workqueue(dw_mci_card_workqueue);
destroy_workqueue(host->card_workqueue);
dma_free_coherent(&host->dev, PAGE_SIZE, host->sg_cpu, host->sg_dma);

if (host->use_dma && host->dma_ops->exit)
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mmc/dw_mmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ struct dw_mci {
struct mmc_request *mrq;
struct mmc_command *cmd;
struct mmc_data *data;
struct workqueue_struct *card_workqueue;

/* DMA interface members*/
int use_dma;
Expand Down

0 comments on commit b4a0b30

Please sign in to comment.