All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Hunter <adrian.hunter@nokia.com>
To: "Ghorai, Sukumar" <s-ghorai@ti.com>
Cc: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] mmc: add device class attribute for ext_csd
Date: Tue, 27 Jul 2010 10:51:30 +0300	[thread overview]
Message-ID: <4C4E9002.5020808@nokia.com> (raw)
In-Reply-To: <2A3DCF3DA181AD40BDE86A3150B27B6B030E4177BD@dbde02.ent.ti.com>

Ghorai, Sukumar wrote:
> 
>> -----Original Message-----
>> From: Adrian Hunter [mailto:adrian.hunter@nokia.com]
>> Sent: Monday, July 26, 2010 6:13 PM
>> To: Ghorai, Sukumar
>> Cc: linux-mmc@vger.kernel.org; Andrew Morton
>> Subject: Re: [PATCH] mmc: add device class attribute for ext_csd
>>
>> Ghorai, Sukumar wrote:
>>> All,
>>> EXT_CSD is 512byte information (read using CMD8) for the MMC (eMMC)
>> device.
>>> And for the latest and upcoming specification, ext_csd are much relevant
>> then past.
>>> So please let me know your idea to add and get the same ext_csd as MMC
>> device attribute. This is the same way currently available for csd, cid,
>> src, etc.
>>> (# cat /sys/class/mmc_host/mmc1/mmc1\:0001/ext_csd)
>> Some of the values in Extended CSD can change so storing
>> it could cause incorrect values to be reported.
> [Ghorai] I was thinking to get the original value as reference, such that we know that host is capable for maximum negotiation, like 8-bit, DDR mode, voltage, etc.
> 1. Is there any other way to get the original value supported by card?
> 2. If yes, is it worth full to do?

If it is for debugging, would a debug prints do instead e.g.

diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 89f7a25..cba87b0 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -249,6 +249,9 @@ static int mmc_read_ext_csd(struct mmc_card *card)
                                        1 << ext_csd[EXT_CSD_S_A_TIMEOUT];
        }
 
+       pr_debug("%s: initial ext_csd bus width code %02x",
+                mmc_hostname(host), ext_csd[EXT_CSD_BUS_WIDTH]);
+
 out:
        kfree(ext_csd);
 


> 
>> Note that Extended CSD is available via debugfs
>> e.g. for device mmc0:0001 with debugfs mounted on /sys/kernel/debug
>>
>>     cat /sys/kernel/debug/mmc0/mmc0\:0001/ext_csd
> [Ghorai] Thanks. I got it.
> 
> <<snip>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


  reply	other threads:[~2010-07-27  7:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26 10:09 [PATCH] Fix mmc_test build order Kyungmin Park
2010-07-26 11:05 ` Adrian Hunter
2010-07-26 12:27   ` [PATCH] mmc: add device class attribute for ext_csd Ghorai, Sukumar
2010-07-26 12:42     ` Adrian Hunter
2010-07-26 15:00       ` Ghorai, Sukumar
2010-07-27  7:51         ` Adrian Hunter [this message]
2010-07-27 10:50           ` Ghorai, Sukumar

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=4C4E9002.5020808@nokia.com \
    --to=adrian.hunter@nokia.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=s-ghorai@ti.com \
    /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.