diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2007-12-02 19:52:11 +0100 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-12-12 20:01:00 +0100 |
commit | c9fddbc4f844f5a16b5957c61fe2cfcb5c12f990 (patch) | |
tree | 0bc8f857acfb7c47ab4c7231ffab5c8628b714c3 /drivers/mmc/host/sdhci.h | |
parent | c6573c94670882079174e2ea0da4abf1a0da51fe (diff) |
sdhci: use PIO when DMA can't satisfy the request
Some controllers have been designed on the assumption that all transfers
will be 32-bit aligned, both in start address and in size. This is not a
guarantee the SDHCI specification provides and not one we can provide.
Revert back to PIO for individual requests in order to work around the
hardware bug.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/host/sdhci.h')
-rw-r--r-- | drivers/mmc/host/sdhci.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 05195ea900f..e4d77b038bf 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -171,7 +171,8 @@ struct sdhci_host { spinlock_t lock; /* Mutex */ int flags; /* Host attributes */ -#define SDHCI_USE_DMA (1<<0) +#define SDHCI_USE_DMA (1<<0) /* Host is DMA capable */ +#define SDHCI_REQ_USE_DMA (1<<1) /* Use DMA for this req. */ unsigned int max_clk; /* Max possible freq (MHz) */ unsigned int timeout_clk; /* Timeout freq (KHz) */ |