All of lore.kernel.org
 help / color / mirror / Atom feed
From: amit mahadik <amitmaddy@gmail.com>
To: linux-mmc@vger.kernel.org
Subject: How to print CMD18 read data
Date: Wed, 1 Feb 2017 12:53:40 +0530	[thread overview]
Message-ID: <CAMGZvfKXGwmrOSD-z_4F5aM5S7TPENmPkLKQ3ArQxJ+rEruhtg@mail.gmail.com> (raw)

Hello,
         I want to interface MMC card via SPI bus. However, I am
getting CRC errors for CMD18. I tried reading partition table using
CMD17 but still get errors.
The same SDMMC card gets detected using SD interface. I want to
compare the data of CMD18/CMD17 of SD and SPI modes. Please let me
know how can I print the read data of the said commands in the block
layer?

I tried using the following code but it didn't help

sg_copy_to_buffer(brq->data.sg, brq->data.sg_len, buf, 4096); and printed buf.

Regards,
Amit.

             reply	other threads:[~2017-02-01  7:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170201072351epcas2p4b40fc91e204153ce57d510622ab021cc@epcas2p4.samsung.com>
2017-02-01  7:23 ` amit mahadik [this message]
2017-02-01  8:08   ` How to print CMD18 read data Jaehoon Chung
2017-02-01  8:48     ` amit mahadik
2017-02-01 11:43       ` Jaehoon Chung
2017-02-01 12:16         ` amit mahadik
2017-02-01 18:00           ` David Haworth

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=CAMGZvfKXGwmrOSD-z_4F5aM5S7TPENmPkLKQ3ArQxJ+rEruhtg@mail.gmail.com \
    --to=amitmaddy@gmail.com \
    --cc=linux-mmc@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 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.