Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74077
b: refs/heads/master
c: b37a050
h: refs/heads/master
i:
  74075: b8e6147
v: v3
  • Loading branch information
Alex Dubov authored and Pierre Ossman committed Nov 21, 2007
1 parent 15aa66c commit 7649ad5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 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: d198f101989d9bb950327f0d043f6203bb862343
refs/heads/master: b37a05069b9ab9fb1e52393a3448d710c50c54d5
18 changes: 7 additions & 11 deletions trunk/drivers/mmc/host/tifm_sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <linux/mmc/host.h>
#include <linux/highmem.h>
#include <linux/scatterlist.h>
#include <linux/log2.h>
#include <asm/io.h>

#define DRIVER_NAME "tifm_sd"
Expand Down Expand Up @@ -638,17 +637,15 @@ static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq)
goto err_out;
}

if (mrq->data && !is_power_of_2(mrq->data->blksz)) {
printk(KERN_ERR "%s: Unsupported block size (%d bytes)\n",
sock->dev.bus_id, mrq->data->blksz);
mrq->cmd->error = -EINVAL;
goto err_out;
}

host->cmd_flags = 0;
host->block_pos = 0;
host->sg_pos = 0;

if (mrq->data && !is_power_of_2(mrq->data->blksz))
host->no_dma = 1;
else
host->no_dma = no_dma ? 1 : 0;

if (r_data) {
tifm_sd_set_data_timeout(host, r_data);

Expand Down Expand Up @@ -676,7 +673,7 @@ static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq)
: PCI_DMA_FROMDEVICE)) {
printk(KERN_ERR "%s : scatterlist map failed\n",
sock->dev.bus_id);
spin_unlock_irqrestore(&sock->lock, flags);
mrq->cmd->error = -ENOMEM;
goto err_out;
}
host->sg_len = tifm_map_sg(sock, r_data->sg,
Expand All @@ -692,7 +689,7 @@ static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq)
r_data->flags & MMC_DATA_WRITE
? PCI_DMA_TODEVICE
: PCI_DMA_FROMDEVICE);
spin_unlock_irqrestore(&sock->lock, flags);
mrq->cmd->error = -ENOMEM;
goto err_out;
}

Expand Down Expand Up @@ -966,7 +963,6 @@ static int tifm_sd_probe(struct tifm_dev *sock)
return -ENOMEM;

host = mmc_priv(mmc);
host->no_dma = no_dma;
tifm_set_drvdata(sock, mmc);
host->dev = sock;
host->timeout_jiffies = msecs_to_jiffies(1000);
Expand Down

0 comments on commit 7649ad5

Please sign in to comment.