Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
From: Stefan Roese <stefan.roese@gmail.com>
To: linux-omap <linux-omap@vger.kernel.org>
Cc: Tony Lindgren <tony@atomide.com>, Balaji T K <balajitk@ti.com>
Subject: mmc only working when used in U-Boot
Date: Tue, 17 Dec 2013 14:41:12 +0100	[thread overview]
Message-ID: <52B05478.1040606@gmail.com> (raw)

Hi!

I've noticed on a custom OMAP3530 board, that the SDcard (mmc1) is only
detected, when its previously used in U-Boot (e.g. by "mmc rescan"). So
I tested on beagleboard and it behaved identical. 

Here the boot log with U-Boot scanning mmc before Linux booting:

root@generic-armv7a:~# dmesg | grep mmc
[    2.225006] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@4809c000[0]'
[    2.234100] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@4809c000[0]'
[    2.260040] omap_hsmmc 4809c000.mmc: pins are not configured from the driver
[    2.398071] mmc0: host does not support reading read-only switch. assuming write-enable.
[    2.408416] mmc0: new high speed SD card at address 0007
[    2.419128] mmcblk0: mmc0:0007 SD02G 1.90 GiB 
[    2.426025]  mmcblk0: p1 p2
[   10.241638] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   10.256011] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

Here the boot log without U-Boot touching mmc before Linux booting:

root@generic-armv7a:~# dmesg | grep mmc
[    2.162689] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@4809c000[0]'
[    2.171936] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@4809c000[0]'
[    2.197906] omap_hsmmc 4809c000.mmc: pins are not configured from the driver

I also added the pin mux'es for the mmc to the dts and the last message
is gone. But this doesn't help with mmc detection.

BTW: This is on latest mainline Linux.

Somehow U-Boot configured/enables something that is missing in the
Linux driver. Is this a known issue? Any ideas?

Thanks,
Stefan

             reply	other threads:[~2013-12-17 13:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-17 13:41 Stefan Roese [this message]
2013-12-17 13:48 ` mmc only working when used in U-Boot Balaji T K
2013-12-17 14:01   ` Stefan Roese

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=52B05478.1040606@gmail.com \
    --to=stefan.roese@gmail.com \
    --cc=balajitk@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.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