All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xuebing Wang <xbing6@gmail.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	Shawn Guo <shawn.guo@linaro.org>,
	Sascha Hauer <kernel@pengutronix.de>,
	Ulf Hansson <ulf.hansson@linaro.org>, Felipe Balbi <balbi@ti.com>,
	niranjan Patil <Niranjan.Patil@infocus.com>,
	richard Jiang <Richard.Jiang@infocus.com>
Subject: Re: /dev/mmcblk0 (or /dev/mmcblk0p1) does not exist on Freescale iMX6SL board
Date: Fri, 01 May 2015 18:39:09 +0800	[thread overview]
Message-ID: <554357CD.4030903@gmail.com> (raw)
In-Reply-To: <CAOMZO5CTwBBzWFecaWa4dq2gnTvV6ygtU2zoNo56PgOv+yy7zQ@mail.gmail.com>


On 04/30/2015 09:06 PM, Fabio Estevam wrote:
>> Fabio,
>> >
>> >Thanks. No, I do not have access to a mx6sl-evk. But I can try to get one.
>> >
>> >There is no eMMC (only sd-card) on mx6sl-evk, right?
> That's correct. If you need eMMC with mx6sl, then you can try imx6sl-warp.
>
> I have tested both boards here recently and mmc operation is working fine.

Fabio, thanks.

I got my eMMC working on kernel v4.0.1 by:
1) In device tree, use 8 data lines (rather than 4 lines for sdhc)
2) Force ext_csd.rev to be 4
-------------------------
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 1d41e85..aa1ca6c 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -355,6 +355,7 @@ static int mmc_decode_ext_csd(struct mmc_card *card, 
u8 *ext_csd)
          * are authorized, see JEDEC JESD84-B50 section B.8.
          */
         card->ext_csd.rev = ext_csd[EXT_CSD_REV];
+       card->ext_csd.rev = 4;

         card->ext_csd.raw_sectors[0] = ext_csd[EXT_CSD_SEC_CNT + 0];
         card->ext_csd.raw_sectors[1] = ext_csd[EXT_CSD_SEC_CNT + 1];
-------------------------

eMMC on my board is Micron "MTFC4GLDDQ-4M IT", according to its 
datasheet, it is "JEDEC/MMC standard version 4.41-compliant
(JEDEC Standard No. 84-A441)", and its "Extended CSD revision" 
(EXT_CSD_REV) = 5

This seems either because kernel does not handle (ext_csd == 5) 
correctly, or there is an firmware issue in Micron "MTFC4GLDDQ-4M IT" 
(in terms of JEDEC standard compliance), what do you think?


-- 
Xuebing

  parent reply	other threads:[~2015-05-01 10:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-30  9:20 /dev/mmcblk0 (or /dev/mmcblk0p1) does not exist on Freescale iMX6SL board Xuebing Wang
2015-04-30 12:16 ` Fabio Estevam
2015-04-30 12:44   ` Xuebing Wang
2015-04-30 12:51     ` Fabio Estevam
2015-04-30 13:01       ` Xuebing Wang
2015-04-30 13:06         ` Fabio Estevam
2015-04-30 13:15           ` Xuebing Wang
2015-05-01 10:39           ` Xuebing Wang [this message]
2015-05-01 15:03             ` Fabio Estevam

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=554357CD.4030903@gmail.com \
    --to=xbing6@gmail.com \
    --cc=Niranjan.Patil@infocus.com \
    --cc=Richard.Jiang@infocus.com \
    --cc=balbi@ti.com \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-mmc@vger.kernel.org \
    --cc=shawn.guo@linaro.org \
    --cc=ulf.hansson@linaro.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.