diff options
author | Matthew Fleming <matthew.fleming@imgtec.com> | 2008-10-02 07:24:05 -0400 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2008-10-12 05:04:37 -0400 |
commit | 0d3e0460f307e84904968aad6cff97bd688583d8 (patch) | |
tree | ea939e4e6b8a5b24b294932974fbe42ca7d427be /drivers/mmc | |
parent | 7244b85bd17313d7d300ee93ec7bfbca1f4ccf3d (diff) |
MMC: CSD and CID timeout values
The MMC spec states that the timeout for accessing the CSD and CID
registers is 64 clock cycles.
Signed-off-by: Matthew Fleming <matthew.fleming@imgtec.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/mmc_ops.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index 64b05c6270f2..9c50e6f1c236 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c | |||
@@ -248,8 +248,12 @@ mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host, | |||
248 | 248 | ||
249 | sg_init_one(&sg, data_buf, len); | 249 | sg_init_one(&sg, data_buf, len); |
250 | 250 | ||
251 | if (card) | 251 | /* |
252 | mmc_set_data_timeout(&data, card); | 252 | * The spec states that CSR and CID accesses have a timeout |
253 | * of 64 clock cycles. | ||
254 | */ | ||
255 | data.timeout_ns = 0; | ||
256 | data.timeout_clks = 64; | ||
253 | 257 | ||
254 | mmc_wait_for_req(host, &mrq); | 258 | mmc_wait_for_req(host, &mrq); |
255 | 259 | ||