* Re: relation between mmc_request, mmc_data and mmc_command
[not found] <d2a348dd0712232325s7da2bfdfk92b0fd049adcb3df@mail.gmail.com>
@ 2007-12-25 13:35 ` Pierre Ossman
0 siblings, 0 replies; 2+ messages in thread
From: Pierre Ossman @ 2007-12-25 13:35 UTC (permalink / raw)
To: raki john; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 922 bytes --]
On Sun, 23 Dec 2007 23:25:26 -0800
"raki john" <raki4652@gmail.com> wrote:
>
> Does mmc_requeest->stop is equal to mmc_request->data->stop ?
>
> Does mmc_request is equal to mmc_request->data->mrq ?
>
> Does mmc_request->data is equal to mmc_request->cmd->data ?
>
> Does mmc_request is equal to mmc_request->cmd->mrq ?
>
Yes on all accounts. I don't know the reason for this extreme redundancy. It was there long before I got involved.
>
> I think Stop command which is part of mmc_request is used for sending stop
> command after Multi Block write. is this correct. If stop command fails(CRC
> fail, timeout), does this mean card write failed.
>
It is correct that it is used for multi block writes. But also other open ended transfers.
If the stop command fails, then the card will be in an unknown state. The write should have been completed though.
Rgds
Pierre
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* relation between mmc_request, mmc_data and mmc_command
@ 2007-12-24 8:05 raki john
0 siblings, 0 replies; 2+ messages in thread
From: raki john @ 2007-12-24 8:05 UTC (permalink / raw)
To: linux-kernel
Hi All,
what is the relation between mmc_request , mmc_data and mmc_command .
(I am new SD driver development, and I am working on 2.6.22.1)
when mmc core layer calls Host controllers request function (member
of struct mmc_host_ops), it passes mmc_request structure to
driver's request function.
1)mmc_request has three members
mmc_command * cmd
mmc_data * data
mmc_command * stop
2) mmc_data has
mmc_command * stop
mmc_request * mrq
3) mmc_command has
mmc_data *data
mmc_request *mrq
Does mmc_requeest->stop is equal to mmc_request->data->stop ?
Does mmc_request is equal to mmc_request->data->mrq ?
Does mmc_request->data is equal to mmc_request->cmd->data ?
Does mmc_request is equal to mmc_request->cmd->mrq ?
I think Stop command which is part of mmc_request is used for sending
stop command after Multi Block write. is this correct. If stop command
fails(CRC fail, timeout), does this mean card write failed.
Thanks In Advance for your help
--
Thanks
raki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-25 13:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <d2a348dd0712232325s7da2bfdfk92b0fd049adcb3df@mail.gmail.com>
2007-12-25 13:35 ` relation between mmc_request, mmc_data and mmc_command Pierre Ossman
2007-12-24 8:05 raki john
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®