diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2006-07-02 11:50:59 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-07-02 11:50:59 -0400 |
commit | a406f5a3b68ee1db2306a2ba1c9b00dbd3505d05 (patch) | |
tree | 47434d59bab5732b7154522e14923c591c666360 /drivers/mmc/sdhci.h | |
parent | 3192a28f7d34ea8f1d0fef8ca5bc0314b5b5bb19 (diff) |
[MMC] Fix sdhci PIO routines
The sdhci controllers operate with blocks, not bytes. The PIO routines must
therefore make sure that the minimum unit transfered is a complete block.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc/sdhci.h')
-rw-r--r-- | drivers/mmc/sdhci.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/sdhci.h b/drivers/mmc/sdhci.h index a8f45215ef3a..f8df28f8d6dd 100644 --- a/drivers/mmc/sdhci.h +++ b/drivers/mmc/sdhci.h | |||
@@ -95,8 +95,8 @@ | |||
95 | #define SDHCI_INT_RESPONSE 0x00000001 | 95 | #define SDHCI_INT_RESPONSE 0x00000001 |
96 | #define SDHCI_INT_DATA_END 0x00000002 | 96 | #define SDHCI_INT_DATA_END 0x00000002 |
97 | #define SDHCI_INT_DMA_END 0x00000008 | 97 | #define SDHCI_INT_DMA_END 0x00000008 |
98 | #define SDHCI_INT_BUF_EMPTY 0x00000010 | 98 | #define SDHCI_INT_SPACE_AVAIL 0x00000010 |
99 | #define SDHCI_INT_BUF_FULL 0x00000020 | 99 | #define SDHCI_INT_DATA_AVAIL 0x00000020 |
100 | #define SDHCI_INT_CARD_INSERT 0x00000040 | 100 | #define SDHCI_INT_CARD_INSERT 0x00000040 |
101 | #define SDHCI_INT_CARD_REMOVE 0x00000080 | 101 | #define SDHCI_INT_CARD_REMOVE 0x00000080 |
102 | #define SDHCI_INT_CARD_INT 0x00000100 | 102 | #define SDHCI_INT_CARD_INT 0x00000100 |
@@ -116,7 +116,7 @@ | |||
116 | #define SDHCI_INT_CMD_MASK (SDHCI_INT_RESPONSE | SDHCI_INT_TIMEOUT | \ | 116 | #define SDHCI_INT_CMD_MASK (SDHCI_INT_RESPONSE | SDHCI_INT_TIMEOUT | \ |
117 | SDHCI_INT_CRC | SDHCI_INT_END_BIT | SDHCI_INT_INDEX) | 117 | SDHCI_INT_CRC | SDHCI_INT_END_BIT | SDHCI_INT_INDEX) |
118 | #define SDHCI_INT_DATA_MASK (SDHCI_INT_DATA_END | SDHCI_INT_DMA_END | \ | 118 | #define SDHCI_INT_DATA_MASK (SDHCI_INT_DATA_END | SDHCI_INT_DMA_END | \ |
119 | SDHCI_INT_BUF_EMPTY | SDHCI_INT_BUF_FULL | \ | 119 | SDHCI_INT_DATA_AVAIL | SDHCI_INT_SPACE_AVAIL | \ |
120 | SDHCI_INT_DATA_TIMEOUT | SDHCI_INT_DATA_CRC | \ | 120 | SDHCI_INT_DATA_TIMEOUT | SDHCI_INT_DATA_CRC | \ |
121 | SDHCI_INT_DATA_END_BIT) | 121 | SDHCI_INT_DATA_END_BIT) |
122 | 122 | ||