* RE: sdio cmd53 doesn't work on omap 2430sdp
[not found] <200805211521.10604.dmytro.chumak@inobject.com>
@ 2008-05-21 12:48 ` Madhusudhan Chikkature Rajashekar
2008-05-21 13:16 ` Dmitriy Chumak
0 siblings, 1 reply; 4+ messages in thread
From: Madhusudhan Chikkature Rajashekar @ 2008-05-21 12:48 UTC (permalink / raw)
To: dmytro.chumak, linux-omap-open-source; +Cc: linux-omap
Hi,
Please use the vger list.
It seems like you are getting DTO on CMD53.
One thing you might want to check is did the card configuration path went fine before you issue CMD53.
Before your card driver issues CMD53, I guess the SDIO core issues a series of CMD52 to read the card capabilities and
Setup the bus width etc... Does these go through fine for the card you are using? Does the core detect the new SDIO card?
Regards,
Madhu
> -----Original Message-----
> From: linux-omap-open-source-bounces@linux.omap.com
> [mailto:linux-omap-open-source-bounces@linux.omap.com] On
> Behalf Of Dmitriy Chumak
> Sent: Wednesday, May 21, 2008 5:51 PM
> To: linux-omap-open-source@linux.omap.com
> Subject: sdio cmd53 doesn't work on omap 2430sdp
>
> Hi *,
>
> I write an SDIO driver on OMAP 2430SDP platform.
>
> I have two question related to MMC subsystem:
>
> 1. When I issue sdio_readw (or other function that ends up
> using CMD53 sdio command) - it hangs. This happens because func
> mmc_wait_for_req waits for request completion that
> should be signaled
> by calling mmc_wait_done. mmc_wait_done is indirectly
> called from
> mmc_omap_cmd_done if condition "host->data == NULL ||
> cmd->error"
> (file: drivers/mmc/host/omap_hsmmc.c, line: 273) is
> true. In my case
> the above condition is not true because host->data is
> not NULL and
> cmd->error is NULL. Why this could be happen. Which
> code is responsible
> for setting host->data to NULL in case of successful
> sdio command
> completion?
>
> 2. Also when I issue sdio_readw - I get an error status 108001 in
> mmc_omap_irq. If I've decoded it correctly it means CC, ERR and
> DATA_TIMEOUT. What does it means and when this could
> be happened?
>
>
> Best regards,
>
> Dmitriy
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: sdio cmd53 doesn't work on omap 2430sdp
2008-05-21 12:48 ` sdio cmd53 doesn't work on omap 2430sdp Madhusudhan Chikkature Rajashekar
@ 2008-05-21 13:16 ` Dmitriy Chumak
2008-05-21 19:42 ` Felipe Balbi
0 siblings, 1 reply; 4+ messages in thread
From: Dmitriy Chumak @ 2008-05-21 13:16 UTC (permalink / raw)
To: Madhusudhan Chikkature Rajashekar; +Cc: linux-omap-open-source, linux-omap
On Wednesday 21 May 2008 15:48:27 you wrote:
> the SDIO core issues a series of CMD52 to read the card capabilities and
> Setup the bus width etc... Does these go through fine for the card you are
> using? Does the core detect the new SDIO card?
Yes, all these go fine and the core detects a new SDIO card, only CMD53
doesn't work. Could it be because of using DMA? Are there any way to not use
DMA with CMD53?
Regards,
Dmitriy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sdio cmd53 doesn't work on omap 2430sdp
2008-05-21 13:16 ` Dmitriy Chumak
@ 2008-05-21 19:42 ` Felipe Balbi
0 siblings, 0 replies; 4+ messages in thread
From: Felipe Balbi @ 2008-05-21 19:42 UTC (permalink / raw)
To: dmytro.chumak
Cc: Madhusudhan Chikkature Rajashekar, linux-omap-open-source,
linux-omap
On Wed, 21 May 2008 16:16:39 +0300, Dmitriy Chumak
<dmytro.chumak@inobject.com> wrote:
> On Wednesday 21 May 2008 15:48:27 you wrote:
>
>> the SDIO core issues a series of CMD52 to read the card capabilities and
>> Setup the bus width etc... Does these go through fine for the card you
> are
>> using? Does the core detect the new SDIO card?
>
> Yes, all these go fine and the core detects a new SDIO card, only CMD53
> doesn't work. Could it be because of using DMA? Are there any way to not
> use
> DMA with CMD53?
You can disable dma for the whole driver by changing the following line
from:
736 host->use_dma = 1;
to:
736 host->use_dma = 0;
--
Best Regards,
Felipe Balbi
http://felipebalbi.com
me@felipebalbi.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* sdio cmd53 doesn't work on omap 2430sdp
@ 2008-05-26 9:27 Dmitriy Chumak
0 siblings, 0 replies; 4+ messages in thread
From: Dmitriy Chumak @ 2008-05-26 9:27 UTC (permalink / raw)
To: omap
Hi *,
Sorry for bothering all of you with my problem again.
I've asked it in linux-omap-open-source@linux.omap.com but have not got
some working solution. Maybe here somebody could help me.
I write an SDIO driver on OMAP 2430SDP platform.
I have three questions related to MMC subsystem:
1. When I issue sdio_writesb - it hangs. This happens because func
mmc_wait_for_req waits for request completion that should be
signaled by calling mmc_wait_done. mmc_wait_done is indirectly
called from mmc_omap_cmd_done if condition "host->data == NULL ||
cmd->error" (file: drivers/mmc/host/omap_hsmmc.c, line: 273) is
true. In my case the above condition is not true because
host->data is not NULL and cmd->error is NULL. Why this could be
happen. Which code is responsible for setting host->data to NULL
in case of successful sdio command completion?
2. Also when I issue sdio_writesb - I get an error status 108001
in mmc_omap_irq. If I've decoded it correctly it means CC, ERR and
DATA_TIMEOUT. What does it means and when this could be happened?
3. When I issue sdio_readw - it simply hangs, even without any
call to mmc_omap_irq.
How can I fix these?
Thanks in advance,
Dmitriy
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-26 9:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200805211521.10604.dmytro.chumak@inobject.com>
2008-05-21 12:48 ` sdio cmd53 doesn't work on omap 2430sdp Madhusudhan Chikkature Rajashekar
2008-05-21 13:16 ` Dmitriy Chumak
2008-05-21 19:42 ` Felipe Balbi
2008-05-26 9:27 Dmitriy Chumak
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.