mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "raki john" <raki4652@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: relation between mmc_request, mmc_data and mmc_command
Date: Mon, 24 Dec 2007 00:05:11 -0800	[thread overview]
Message-ID: <d2a348dd0712240005h1a76c579t9d6270e1bc7ef527@mail.gmail.com> (raw)

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

             reply	other threads:[~2007-12-24  8:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-24  8:05 raki john [this message]
     [not found] <d2a348dd0712232325s7da2bfdfk92b0fd049adcb3df@mail.gmail.com>
2007-12-25 13:35 ` Pierre Ossman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d2a348dd0712240005h1a76c579t9d6270e1bc7ef527@mail.gmail.com \
    --to=raki4652@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®