Skip to content

Commit

Permalink
MMC: CSD and CID timeout values
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthew Fleming authored and Pierre Ossman committed Oct 12, 2008
1 parent 7244b85 commit 0d3e046
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/mmc/core/mmc_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,12 @@ mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host,

sg_init_one(&sg, data_buf, len);

if (card)
mmc_set_data_timeout(&data, card);
/*
* The spec states that CSR and CID accesses have a timeout
* of 64 clock cycles.
*/
data.timeout_ns = 0;
data.timeout_clks = 64;

mmc_wait_for_req(host, &mrq);

Expand Down

0 comments on commit 0d3e046

Please sign in to comment.