From: Tony Lindgren <tony@atomide.com>
To: Steve Sakoman <sakoman@gmail.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: mmc broken?
Date: Fri, 5 Dec 2008 16:49:43 -0800 [thread overview]
Message-ID: <20081206004942.GS9714@atomide.com> (raw)
In-Reply-To: <20081206003432.GR9714@atomide.com>
[-- Attachment #1: Type: text/plain, Size: 946 bytes --]
* Tony Lindgren <tony@atomide.com> [081205 16:34]:
> * Steve Sakoman <sakoman@gmail.com> [081205 16:31]:
> > I attempted an Overo build this afternoon with
> > fb3d15c023ff08c879155db630895f38526b95f6.
> >
> > I set bootargs for rootfs on mmc. The boot progresses normally and
> > then hangs waiting for the rootfs to mount.
> >
> > Where I previously got:
> >
> > Waiting for root device /dev/mmcblk0p2...
> > mmc0: host does not support reading read-only switch. assuming write-enable.
> > mmc0: new SD card at address ee21
> > mmcblk0: mmc0:ee21 SU02G 1.89 GiB
> > mmcblk0: p1 p2
> >
> > I now get:
> >
> > Waiting for root device /dev/mmcblk0p2...
> >
> > Has anyone else seen mmc issues with rc7?
>
> I think I did it again while cleaning up.. Can you try this patch?
> The name was conflicting with the other MMC omap driver.
Actually now it breaks for earlier omaps, it needs to be like this
patch instead.
> Tony
[-- Attachment #2: mmc-fix.patch --]
[-- Type: text/x-diff, Size: 600 bytes --]
diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c
index 25c6d10..2c3c72f 100644
--- a/arch/arm/plat-omap/devices.c
+++ b/arch/arm/plat-omap/devices.c
@@ -204,9 +204,15 @@ int __init omap_mmc_add(int id, unsigned long base, unsigned long size,
{
struct platform_device *pdev;
struct resource res[OMAP_MMC_NR_RES];
+ char *name;
int ret;
- pdev = platform_device_alloc("mmci-omap", id);
+ if (cpu_class_is_omap1() || cpu_is_omap242x())
+ name = "mmci-omap";
+ else
+ name = "mmci-omap-hs";
+
+ pdev = platform_device_alloc(name, id);
if (!pdev)
return -ENOMEM;
next prev parent reply other threads:[~2008-12-06 0:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-06 0:31 mmc broken? Steve Sakoman
2008-12-06 0:34 ` Tony Lindgren
2008-12-06 0:49 ` Tony Lindgren [this message]
2008-12-06 1:01 ` Steve Sakoman
2008-12-06 1:18 ` Tony Lindgren
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=20081206004942.GS9714@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap@vger.kernel.org \
--cc=sakoman@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox