MMC: CSD and CID timeout values
PATCH 2/2 MMC: CSD and CID timeout values
Quoted 1 line
From
9a083f0e9a81f5bc31ea49f37112f1945830fc7cMon Sep 17 00:00:00 2001
From: Matthew Fleming <[email protected]>
Date: Thu, 2 Oct 2008 12:24:05 +0100
Subject: [PATCH 2/2] MMC: CSD and CID timeout values
The MMC spec states that the timeout for accessing the CSD and CID registers is 64 clock cycles.
--- drivers/mmc/core/mmc_ops.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
drivers/mmc/core/mmc_ops.c +0 -0
@@ -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);
--
1.5.5.2
From 9a083f0e9a81f5bc31ea49f37112f1945830fc7c Mon Sep 17 00:00:00 2001
From: Matthew Fleming <[email protected]>
Date: Thu, 2 Oct 2008 12:24:05 +0100
Subject: [PATCH 2/2] MMC: CSD and CID timeout values
The MMC spec states that the timeout for accessing the CSD and CID registers is 64 clock cycles.
--- drivers/mmc/core/mmc_ops.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
drivers/mmc/core/mmc_ops.c +6 -2
@@ -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);
Signature · 1 line
1.5.5.2
Pierre Ossman
AppliedQuoted 9 lines · On Thu, 2 Oct 2008 12:57:14 +0100 "Matt Fleming" <[email protected]>…
From
9a083f0e9a81f5bc31ea49f37112f1945830fc7cMon Sep 17 00:00:00 2001
From: Matthew Fleming <[email protected]>
Date: Thu, 2 Oct 2008 12:24:05 +0100
Subject: [PATCH 2/2] MMC: CSD and CID timeout valuesThe MMC spec states that the timeout for accessing the CSD and CID registers is 64 clock cycles.
Signed-off-by Matthew Fleming <[email protected]>
Applied both patches. Thanks. :)
Signature · 9 lines
-- Pierre Ossman Linux kernel, MMC maintainer http://www.kernel.org rdesktop, core developer http://www.rdesktop.org WARNING: This correspondence is being monitored by the Swedish government. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption.